Community discussions

MikroTik App
 
Marcus79
just joined
Topic Author
Posts: 1
Joined: Thu Mar 25, 2021 2:52 pm

VPN L2TP IPCEC RB951G-2HnD and B818S

Thu Mar 25, 2021 3:06 pm

Sorry to my bad English.
HUAWEI B818S edge router, public IP address. You need to set up a VPN tunnel, preferably L2TP IPSEC. I have the RB951G-2HnD at my disposal.
Redirect ports: 500, 4500, 50, 51.

/interface bridge
add arp=proxy-arp name=bridge1
/ip pool
add name=vpn ranges=192.168.0.6-192.168.0.10
/ppp profile
add bridge=bridge1 local-address=vpn name=vpn remote-address=vpn
/interface bridge port
add bridge=bridge1 interface=all
/interface bridge settings
set use-ip-firewall=yes
/ip neighbor discovery-settings
set discover-interface-list=!dynamic
/interface l2tp-server server
set default-profile=vpn enabled=yes ipsec-secret=vpn use-ipsec=required
/ip address
add address=192.168.0.5/24 interface=bridge1 network=192.168.0.0
/ip dns
set servers=8.8.8.8,8.8.4.4
/ip firewall nat
add action=masquerade chain=srcnat
/ip route
add distance=1 gateway=192.168.0.1
/ppp secret
add name=vpn password=vpn profile=default-encryption service=l2tp

Who is online

Users browsing this forum: BioMax, Farid0085 and 42 guests