- IPSec connection from MikroTik to Linux server
- EAP/PEAP wireless network (RADIUS requests over IPSec to Linux server)
- DHCP Server (RADIUS requests over IPSec to Linux server, returning Framed-IP-Address)
My wireless clients are able to connect, obtain an IP address, and access Internet. I am not able to configure wireless clients to access the Linux server (10.0.0.3) on a private address over IPSec. I can ping the Linux server from MikroTik, not from wireless clients.
Linux server address is 10.0.0.3
MikroTik IPSec network is 10.0.0.0/27 (10.0.0.3-10.0.0.30 is used for wireless clients)
Here is my MikroTik configuration. Please if you can give me any hint I would appreciate it.
Code: Select all
/interface bridge
add name="PROJECT Bridge"
add admin-mac=48:8F:5A:AC:C1:53 auto-mac=no comment=defconf name=bridge
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-b/g/n channel-width=20/40mhz-XX disabled=no distance=indoors frequency=auto installation=outdoor mode=ap-bridge \
ssid=MikroTik-ACC154 wireless-protocol=802.11
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/interface lte apn
add apn=mobile4g authentication=pap default-route-distance=1 user=XXXXX
/interface lte
set [ find ] apn-profiles=mobile4g mac-address=AC:FF:FF:00:00:00 name=mobile4g
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
add authentication-types=wpa2-eap mode=dynamic-keys name=PROJECT radius-eap-accounting=yes supplicant-identity=PROJECT tls-mode=dont-verify-certificate
/interface wireless
add disabled=no mac-address=4A:8F:5A:AC:C1:54 master-interface=wlan1 name=PROJECT security-profile=PROJECT ssid=PROJECT wds-default-bridge=bridge wps-mode=\
disabled
/ip dhcp-server
add disabled=no interface="PROJECT Bridge" name="PROJECT DHCP" use-radius=yes
/ip hotspot profile
set [ find default=yes ] html-directory=flash/hotspot
/ip ipsec mode-config
add name=PROJECT responder=no
/ip ipsec policy group
add name=PROJECT
/ip ipsec profile
add dh-group=modp1024 enc-algorithm=aes-256 name=PROJECT
/ip ipsec peer
add address=1.1.1.1/32 exchange-mode=ike2 name=PROJECT profile=PROJECT
/ip ipsec proposal
add name=PROJECT pfs-group=none
/ip pool
add name=default-dhcp ranges=192.168.88.10-192.168.88.254
/ip dhcp-server
add address-pool=default-dhcp disabled=no interface=bridge name=defconf
/interface bridge port
add bridge=bridge comment=defconf interface=ether1
add bridge=bridge interface=wlan1
add bridge="PROJECT Bridge" interface=PROJECT
/ip neighbor discovery-settings
set discover-interface-list=LAN
/interface list member
add comment=defconf interface=bridge list=LAN
add interface=mobile4g list=WAN
add interface="PROJECT Bridge" list=LAN
/ip address
add address=192.168.88.1/24 comment=defconf interface=bridge network=192.168.88.0
add address=10.0.1.1/27 comment="network /27 assigned to partner/location" interface="PROJECT Bridge" network=10.0.1.0
/ip dhcp-server network
add address=10.0.1.0/27 gateway=10.0.1.1
add address=192.168.88.0/24 comment=defconf gateway=192.168.88.1
/ip dns
set allow-remote-requests=yes
/ip dns static
add address=192.168.88.1 comment=defconf name=router.lan
/ip firewall filter
add action=accept chain=input comment="defconf: accept established,related,untracked" connection-state=established,related,untracked
add action=drop chain=input comment="defconf: drop invalid" connection-state=invalid
add action=accept chain=input comment="defconf: accept ICMP" protocol=icmp
add action=accept chain=input comment="defconf: accept to local loopback (for CAPsMAN)" dst-address=127.0.0.1
add action=drop chain=input comment="defconf: drop all not coming from LAN" in-interface-list=!LAN
add action=accept chain=forward comment="defconf: accept in ipsec policy" ipsec-policy=in,ipsec
add action=accept chain=forward comment="defconf: accept out ipsec policy" ipsec-policy=out,ipsec
add action=fasttrack-connection chain=forward comment="defconf: fasttrack" connection-state=established,related
add action=accept chain=forward comment="defconf: accept established,related, untracked" connection-state=established,related,untracked
add action=drop chain=forward comment="defconf: drop invalid" connection-state=invalid
add action=drop chain=forward comment="defconf: drop all from WAN not DSTNATed" connection-nat-state=!dstnat connection-state=new in-interface-list=WAN
add action=accept chain=input comment="defconf: accept established,related,untracked" connection-state=established,related,untracked
add action=drop chain=input comment="defconf: drop invalid" connection-state=invalid
add action=accept chain=input comment="defconf: accept ICMP" protocol=icmp
add action=accept chain=input comment="defconf: accept to local loopback (for CAPsMAN)" dst-address=127.0.0.1
add action=drop chain=input comment="defconf: drop all not coming from LAN" in-interface-list=!LAN
add action=accept chain=forward comment="defconf: accept in ipsec policy" ipsec-policy=in,ipsec
add action=accept chain=forward comment="defconf: accept out ipsec policy" ipsec-policy=out,ipsec
add action=fasttrack-connection chain=forward comment="defconf: fasttrack" connection-state=established,related
add action=accept chain=forward comment="defconf: accept established,related, untracked" connection-state=established,related,untracked
add action=drop chain=forward comment="defconf: drop invalid" connection-state=invalid
add action=drop chain=forward comment="defconf: drop all from WAN not DSTNATed" connection-nat-state=!dstnat connection-state=new in-interface-list=WAN
/ip firewall nat
add action=masquerade chain=srcnat comment="defconf: masquerade" ipsec-policy=out,none out-interface-list=WAN
/ip ipsec identity
add auth-method=eap certificate="" eap-methods=eap-peap generate-policy=port-strict mode-config=PROJECT peer=PROJECT policy-template-group=PROJECT \
username=partner00001
/ip ipsec policy
add dst-address=0.0.0.0/0 group=PROJECT proposal=PROJECT src-address=0.0.0.0/0 template=yes
/radius
add address=10.0.0.3 service=wireless,dhcp
/tool mac-server
set allowed-interface-list=LAN
/tool mac-server mac-winbox
set allowed-interface-list=LAN