Template:Netoworking rutxxx configuration example mikrotik l2tp ipsec: Difference between revisions
Template:Netoworking rutxxx configuration example mikrotik l2tp ipsec (view source)
Revision as of 18:03, 28 February 2020
, 28 February 2020no edit summary
No edit summary |
No edit summary |
||
Line 51: | Line 51: | ||
/ip firewall filter add chain=input action=accept protocol=ipsec-esp | /ip firewall filter add chain=input action=accept protocol=ipsec-esp | ||
Now go to '''IP > Firewall''' and change positions of the 2 Firewall rules you just created (drag it to the top like in the example) in order to move them, press # sign. | Now go to '''IP > Firewall''' and change positions of the 2 Firewall rules you just created (drag it to the top like in the example) in order to move them, press '''#''' sign. | ||
[[File:]] | [[File:]] | ||
==RUT configuration== | ==RUT configuration== | ||
Access RUTxxx WebUI and go to '''Services > VPN > L2TP'''. There create a new configuration by selecting role '''Client'', writing '''New configuration name''' (anything you want) and pressing '''Add New''' button. It should appear after a few seconds. Then press '''Edit'''. | |||
[[File:]] | |||
Then apply the following configuration. | |||
[[File:]] | |||
# '''Enable''' instance. | |||
# Write '''Server''' IP address (MikroTik public IP address). | |||
# Write '''Username''' (write the username which you created with this command /ppp secret add name="username" password="password" service=l2tp profile=ipsec_vpn remote-address=192.168.102.2). | |||
# Write '''Password''' (write the password which you created with this command /ppp secret add name="username" password="password" service=l2tp profile=ipsec_vpn remote-address=192.168.102.2). | |||
# Set '''Keep alive''' (30). | |||
# Press '''Save'''. |