Evening Everyone,
I’m trying to setup SITE to Site VPN, HO with 4 remote sites and a user connecting with a Laptop.
I have used the instructions from https://wiki.mikrotik.com/wiki/PPTP_VPN_-_multiple_ADSL_remote_locations_to_Cental_Office and https://wiki.mikrotik.com/wiki/Manual:Interface/L2TP but to no success. The client side dials out but from the client log it states:
19:17:25 l2tp,ppp,info l2tp-out1: initializing…
19:17:25 l2tp,ppp,info l2tp-out1: connecting…
19:17:49 l2tp,ppp,info l2tp-out1: terminating… - session closed
19:17:49 l2tp,ppp,info l2tp-out1: disconnected
At first I thought is was firewall rules on my ISP router, but eliminated that by testing the scenario with 2 Mikrotik Routers in a “Test” enviroment.
HO Mikrotik Config:
jun/24/2019 19:20:39 by RouterOS 6.44.3
software id = 2IIS-GC0D
model = 750GL
serial number = 2E1A01A34BBC
/interface bridge
add admin-mac=00:0C:42:7E:13:0C auto-mac=no comment=“created from master port” name=bridge1 protocol-mode=none
/interface ethernet
set [ find default-name=ether1 ] name=ether1-gateway speed=100Mbps
set [ find default-name=ether2 ] name=ether2-local-master speed=100Mbps
set [ find default-name=ether3 ] name=ether3-local-slave speed=100Mbps
set [ find default-name=ether4 ] name=ether4-local-slave speed=100Mbps
set [ find default-name=ether5 ] name=ether5-local-slave speed=100Mbps
/interface list
add exclude=dynamic name=discover
add name=mactel
add name=mac-winbox
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip pool
add name=default-dhcp ranges=192.168.15.100-192.168.15.150
/ip dhcp-server
add address-pool=default-dhcp authoritative=after-2sec-delay disabled=no interface=bridge1 lease-time=3d name=default
/queue interface
set ether1-gateway queue=ethernet-default
set ether2-local-master queue=ethernet-default
set ether3-local-slave queue=ethernet-default
set ether4-local-slave queue=ethernet-default
set ether5-local-slave queue=ethernet-default
/system logging action
set 0 memory-lines=100
set 1 disk-lines-per-file=100
/tool user-manager customer
set admin access=own-routers,own-users,own-profiles,own-limits,config-payment-gw
/interface bridge port
add bridge=bridge1 interface=ether3-local-slave
add bridge=bridge1 interface=ether4-local-slave
add bridge=bridge1 interface=ether5-local-slave
add bridge=bridge1 interface=ether2-local-master
/ip neighbor discovery-settings
set discover-interface-list=discover
/interface detect-internet
set detect-interface-list=all
/interface l2tp-server server
set enabled=yes max-mru=1460 max-mtu=1460
/interface list member
add interface=ether1-gateway list=discover
add interface=bridge1 list=discover
add interface=ether3-local-slave list=discover
add interface=ether4-local-slave list=discover
add interface=ether5-local-slave list=discover
add interface=bridge1 list=mactel
add interface=ether3-local-slave list=mactel
add interface=bridge1 list=mac-winbox
add interface=ether4-local-slave list=mactel
add interface=ether3-local-slave list=mac-winbox
add interface=ether5-local-slave list=mactel
add interface=ether4-local-slave list=mac-winbox
add interface=ether5-local-slave list=mac-winbox
/ip address
add address=192.168.15.1/24 comment=“Port 2-5 Bridged” interface=bridge1 network=192.168.15.0
add address=172.16.0.1/24 interface=ether1-gateway network=172.16.0.0
/ip dhcp-client
add comment=“default configuration” dhcp-options=hostname,clientid disabled=no interface=ether1-gateway
/ip dhcp-server network
add address=192.168.15.0/24 comment=“default configuration” dns-server=8.8.8.8 gateway=192.168.15.1
/ip dns
set allow-remote-requests=yes max-udp-packet-size=512 servers=8.8.8.8
/ip dns static
add address=192.168.88.1 name=router
/ip firewall filter
add action=accept chain=input comment=“default configuration” protocol=icmp
add action=accept chain=input comment=“default configuration” connection-state=established in-interface=ether1-gateway
add action=accept chain=input comment=“default configuration” connection-state=related in-interface=ether1-gateway
add action=drop chain=input comment=“default configuration” in-interface=ether1-gateway
/ip firewall nat
add action=masquerade chain=srcnat comment=“default configuration” out-interface=ether1-gateway
add action=dst-nat chain=dstnat comment=“Synology DiskStation” dst-port=15151 in-interface=ether1-gateway protocol=tcp to-addresses=192.168.15.5 to-ports=15151
add action=dst-nat chain=dstnat dst-port=5000 in-interface=ether1-gateway protocol=tcp to-addresses=192.168.15.5 to-ports=5000
add action=dst-nat chain=dstnat dst-port=55539 in-interface=ether1-gateway protocol=tcp to-addresses=192.168.15.5 to-ports=55539
add action=dst-nat chain=dstnat dst-port=3690 in-interface=ether1-gateway protocol=tcp to-addresses=192.168.15.5 to-ports=3690
add action=dst-nat chain=dstnat comment=UBNT-Server dst-port=80 in-interface=ether1-gateway protocol=tcp to-addresses=192.168.15.8 to-ports=80
add action=dst-nat chain=dstnat dst-port=443 in-interface=ether1-gateway protocol=tcp to-addresses=192.168.15.8 to-ports=443
add action=dst-nat chain=dstnat dst-port=9080 in-interface=ether1-gateway protocol=tcp to-addresses=192.168.15.8 to-ports=9080
add action=dst-nat chain=dstnat dst-port=9443 in-interface=ether1-gateway protocol=tcp to-addresses=192.168.15.8 to-ports=9443
add action=dst-nat chain=dstnat comment=Rpi-VPN dst-port=15152 in-interface=ether1-gateway protocol=tcp to-addresses=192.168.15.6 to-ports=15152
add action=dst-nat chain=dstnat dst-port=15155 in-interface=ether1-gateway protocol=tcp to-addresses=192.168.15.6 to-ports=15155
/ip route
add comment=“Routing for Internet” distance=1 gateway=172.16.0.254
/ip service
set api disabled=yes
/ip ssh
set allow-none-crypto=yes forwarding-enabled=remote
/ppp secret
add local-address=172.16.1.1 name=chinacity password=password remote-address=172.16.1.2 routes=“10.0.1.0/24 172.16.1.2 1” service=l2tp
add local-address=172.16.1.1 name=karel password=passwprd remote-address=172.16.1.3 routes=“10.0.1.0/24 172.16.1.3 1” service=l2tp
/system clock
set time-zone-name=Africa/Johannesburg
/system identity
set name=MikroTik-KarelHouse
/tool mac-server
set allowed-interface-list=mactel
/tool mac-server mac-winbox
set allowed-interface-list=mac-winbox
/tool user-manager database
set db-path=user-manager
Remote Office Mikrotik:
jun/24/2019 19:26:41 by RouterOS 6.42.10
software id = RTL3-VR03
model = RB941-2nD
serial number = 9D740AAE1BBE
/interface bridge
add admin-mac=74:4D:28:31:68:61 auto-mac=no comment=defconf name=bridge
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-b/g/n channel-width=20/40mhz-Ce disabled=no distance=indoors frequency=auto mode=ap-bridge ssid=MikroTik-316865 wireless-protocol=802.11
/interface l2tp-client
add connect-to=172.16.0.1 name=l2tp-out1 password=password user=karel
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/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=ether2
add bridge=bridge comment=defconf interface=ether3
add bridge=bridge comment=defconf interface=ether4
add bridge=bridge comment=defconf interface=wlan1
/ip neighbor discovery-settings
set discover-interface-list=LAN
/interface list member
add comment=defconf interface=bridge list=LAN
add comment=defconf interface=ether1 list=WAN
/ip address
add address=192.168.88.1/24 comment=defconf interface=bridge network=192.168.88.0
add address=172.16.0.5/24 interface=ether1 network=172.16.0.0
/ip dhcp-client
add comment=defconf dhcp-options=hostname,clientid disabled=no interface=ether1
/ip dhcp-server network
add address=192.168.88.0/24 comment=defconf gateway=192.168.88.1
/ip dns
set allow-remote-requests=yes servers=8.8.8.8
/ip dns static
add address=192.168.88.1 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=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 route
add distance=1 gateway=ether1
/system identity
set name=TestROUTER
/system routerboard settings
set silent-boot=no
/tool mac-server
set allowed-interface-list=LAN
/tool mac-server mac-winbox
set allowed-interface-list=LAN
Thanx in Advance.
Karel