Bu yazımda Adım Adım Mikrotik üzerinde L2TP / IPSEC VPN Sunucu kurulumunu anlatacağım.
1 |
/ppp profile add name=ipsec_vpn local-address=192.168.111.1 dns-server=8.8.8.8 |
1 |
/interface l2tp-server server set enabled=yes default-profile=ipsec_vpn authentication=mschap1,mschap2 |
1 |
/ip ipsec policy set [ find default=yes ] src-address=0.0.0.0/0 dst-address=0.0.0.0/0 protocol=all proposal=default template=yes |
1 2 |
/ip ipsec peer add exchange-mode=main passive=yes name=l2tpserver /ip ipsec identity add generate-policy=port-override auth-method=pre-shared-key secret="GİZLİ ANAHTARIMIZ" peer=l2tpserver |
1 |
/ip ipsec proposal set default auth-algorithms=sha1 enc-algorithms=3des pfs-group=modp1024 |
1 |
/ppp secret add name="KULLANICI ADI" password="ŞİFRE" service=l2tp profile=ipsec_vpn remote-address=192.168.111.5 |
1 2 |
/ip firewall filter add chain=input action=accept protocol=udp port=1701,500,4500 /ip firewall filter add chain=input action=accept protocol=ipsec-esp |