I’m trying to set up a mobile VPN for cell phones and laptops for traveling, to eliminate the VNC and HTTP ports that were open in a previous router by another IT services provider. I’ve slowly started working with Mikrotiks and while I have some basics down I seem unable to make this one work. I followed 2 different guides, 1 from the forum and one from a link I found on here http://www.nasa-security.net/mikrotik/mikrotik-l2tp-with-ipsec/
Everything has been a struggle learning with Mikrotik so far, but I’m getting there! Previously I’ve used Sonicwall, Watchguard, Ubiquiti Edgerouters and Cisco. I’d love to just learn to use the CLI but it’s taking time to wrap my head around the commands. Even showing the log was a struggle.
I have included my configuration below. The clients will be various Windows versions, Mac OS X, and Apple and Android phones. I did set up a separate pool for mobile devices to use. In my logs, I get things about proposals while testing from a Mac. Here is the log information when I attempt to connect:
xxx.xxx.xxx.xxx phase 1 negotiation failed
xxx.xxx.xxx.xxx failed to pre-process ph1 packet (side 1, status 1)
xxx.xxx.xxx.xxx failed to get valid proposal.
xxx.xxx.xxx.xxx no suitable proposal found
I get that the connection is attempting, but I’m still so green with all of the options and commands that I don’t even know where to begin to look.
Cleansed config
[admin@R1] > export
# may/30/2017 23:54:52 by RouterOS 6.38.5
# software id = ****-****
#
/interface bridge
add admin-mac=6C:3B:6B:63:30:81 auto-mac=no comment=defconf name=bridge
/interface ethernet
set [ find default-name=ether2 ] name=ether2-master
set [ find default-name=ether3 ] master-port=ether2-master
set [ find default-name=ether4 ] master-port=ether2-master
set [ find default-name=ether5 ] master-port=ether2-master
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-b/g/n channel-width=20/40mhz-Ce country="united states" \
disabled=no distance=indoors frequency=auto mode=ap-bridge ssid=wifi \
wireless-protocol=802.11
set [ find default-name=wlan2 ] band=5ghz-a/n/ac channel-width=20/40mhz-Ce country="united states" \
disabled=no distance=indoors frequency=auto mode=ap-bridge ssid=wifi5Ghz \
wireless-protocol=802.11
/ip neighbor discovery
set ether1 discover=no
/interface wireless security-profiles
set [ find default=yes ] authentication-types=wpa-psk,wpa2-psk mode=dynamic-keys \
supplicant-identity=MikroTik wpa-pre-shared-key=1234567890 wpa2-pre-shared-key= 1234567890
/ip hotspot profile
set [ find default=yes ] html-directory=flash/hotspot
/ip ipsec proposal
set [ find default=yes ] pfs-group=none
add enc-algorithms=aes-128-cbc name=L2TP-Proposal pfs-group=none
/ip pool
add name=dhcp ranges=10.1.0.101-10.1.0.254
add name=vpn-pool ranges=172.16.31.101-172.16.31.150
/ip dhcp-server
add address-pool=dhcp disabled=no interface=bridge name=defconf
/ppp profile
add change-tcp-mss=yes comment="L2TP VPN" dns-server=172.16.31.1 local-address=172.31.16.1 name=\
"L2TP vpn" remote-address=vpn-pool
set *FFFFFFFE dns-server=4.2.2.1,4.2.2.2 local-address=172.16.31.1 remote-address=\
vpn-pool
/interface bridge port
add bridge=bridge comment=defconf interface=ether2-master
add bridge=bridge comment=defconf interface=wlan1
add bridge=bridge comment=defconf interface=wlan2
/interface l2tp-server server
set authentication=mschap2 default-profile="L2TP vpn" enabled=yes ipsec-secret= 1234567890 \
use-ipsec=yes
/ip address
add address=10.1.0.90/24 comment=defconf interface=ether2-master network=10.1.0.0
/ip dhcp-client
add comment=defconf dhcp-options=hostname,clientid disabled=no interface=ether1
/ip dhcp-server network
add address=10.1.0.0/24 comment=defconf gateway=10.1.0.90 netmask=24
/ip dns
set allow-remote-requests=yes servers=4.2.2.1
/ip dns static
add address=10.1.0.90 name=router
/ip firewall filter
add action=accept chain=input comment="L2TP VPN" connection-state=new dst-port=500,1701,4500 \
in-interface=ether1 protocol=udp
add action=accept chain=input comment="Allow HTC http" dst-port=4433 protocol=tcp src-address=\
office1IP-http
add action=accept chain=input dst-port=22 protocol=tcp src-address=office1IP_ssh
add action=accept chain=input dst-port=4433 protocol=tcp src-address=office2IP_http
add action=accept chain=input dst-port=22 log=yes protocol=tcp src-address=office2IP_ssh
add action=accept chain=input comment="defconf: accept ICMP" protocol=icmp
add action=accept chain=input comment="defconf: accept established,related" connection-state=\
established,related
add action=drop chain=input comment="defconf: drop all from WAN" in-interface=ether1
add action=fasttrack-connection chain=forward comment="defconf: fasttrack" connection-state=\
established,related
add action=accept chain=forward comment="defconf: accept established,related" connection-state=\
established,related
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=ether1
/ip firewall nat
add action=dst-nat chain=dstnat comment="VNC 5800 to 10.1.0.91" dst-port=5800 in-interface=ether1 \
protocol=tcp to-addresses=10.1.0.91 to-ports=5800
add action=dst-nat chain=dstnat comment="VNC 5900 to 10.1.0.91" dst-port=5900 in-interface=ether1 \
protocol=tcp to-addresses=10.1.0.91 to-ports=5900
add action=dst-nat chain=dstnat comment="Port 80 to 10.1.0.20" dst-port=80 in-interface=ether1 \
protocol=tcp to-addresses=10.1.0.20 to-ports=80
add action=masquerade chain=srcnat comment="defconf: masquerade" out-interface=ether1
/ip ipsec peer
add address=0.0.0.0/0 comment=L2TP-IPSec dh-group=modp8192 enc-algorithm=aes-128 exchange-mode=\
main-l2tp generate-policy=port-strict secret= 1234567890
/ip ipsec policy
set 0 comment=L2TP-Proposal
/ip service
set www port=4433
set www-ssl disabled=no
/ppp secret
add name=test1 password= 1234567890 profile="L2TP vpn" service=l2tp
/system clock
set time-zone-name=America/New_York
/system identity
set name=R1
/system routerboard settings
set init-delay=0s
/tool mac-server
set [ find default=yes ] disabled=yes
add interface=bridge
/tool mac-server mac-winbox
set [ find default=yes ] disabled=yes
add interface=bridge