Good morning, i’ve joined in the hope I can get some help please with trying to get routing working on an RB3011 working as an L2TP client to get around CGNat.
This is the first Mikrotik device I have ever come across and although I have some network knowledge having dabbled with both Cisco and Zyxel previsouly, I have no Mikrotik experience i’m afraid.
The topology is a 5G ZTE CPE pro modem in bridge mode connected to the RB3011 eth1, eth2 is connected to a firewall device which deals with the firewalling and other stuff.
I have set eth1 to get a dhcp address from the ZTE, that works fine, eth2 has a fixed ip address 10.0.1.254.
By following several guides on the internet, I have got the L2TP tunnel working fine, if I plug the eth2 port into a layer 2 switch I can connect the laptop to a spare port and browse the web and the ip address shown is the one the L2TP tunnel issues and not the one the 5G ISP provides, so the tunnel works and traffic is being routed through it.
The only issue I have is that I am unable to ping the RB3011 from the eth2 network (10.0.1.0/24), I think this is because the guide I followed adds in a route for 0.0.0.0/0 over the L2TP tunnel, but I cannot see how to adjust it so I am able to route traffic across the L2TP tunnel and also configure the RB3011 via it’s webconfig.
A similar issue is how to access the ZTE config page, which is at 192.168.8.1, even though bridge mode is active, the page is still accessible, again, all traffic seems to go over the tunnel so I cannot acces or ping 192.168.8.1, again I think I need another route / nat for that.
If anyone would be able to give me some idea on how to correctly set the routing so I can send web traffic across the L2TP tunnel but still access the RB3011 for configuration etc, that would be really helpful,
I will post the config this afternoon once I figure out how to get it from the RB3011 in text format!
edit: attached the config with sensitive data replaced with XXX and I can do a diagram if that helps.
2025-12-17 11:57:43 by RouterOS 7.21rc1
software id = xxxx-xxxx
model = RB3011UiAS
serial number = xxxxxxxxxxxx
/interface list
add name=WAN
add name=LAN
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/interface l2tp-client
add allow-fast-path=yes comment="L2TP-Provider" connect-to=
l2tp.xx.xxxx.xxx dial-on-demand=yes disabled=no name=xxx-l2tp-out1 profile=
default user=xxxxxxxxx
/routing table
add fib name=XX_L2TP
/ip neighbor discovery-settings
set discover-interface-list=!dynamic
/interface list member
add interface=ether1 list=WAN
add interface=ether2 list=LAN
add interface=ether3 list=LAN
add interface=ether4 list=LAN
add interface=ether5 list=LAN
add interface=ether6 list=LAN
add interface=ether7 list=LAN
add interface=ether8 list=LAN
add interface=ether9 list=LAN
add interface=ether10 list=LAN
add interface=sfp1 list=LAN
/ip address
add address=10.0.1.254/24 interface=ether2 network=10.0.1.0
/ip dhcp-client
add interface=ether1
/ip dns
set allow-remote-requests=yes servers=1.1.1.1,8.8.8.8
/ip firewall mangle
add action=mark-routing chain=prerouting new-routing-mark=XX_L2TP
passthrough=no src-address=10.0.1.0/24
/ip firewall nat
add action=masquerade chain=srcnat out-interface-list=WAN
add action=masquerade chain=srcnat out-interface=xxx-l2tp-out1
/ip route
add disabled=yes distance=1 dst-address=0.0.0.0/0 gateway=10.0.0.254
routing-table=main scope=30 target-scope=10
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=xxx-l2tp-out1
routing-table=XX_L2TP scope=30 target-scope=10
/lcd
set backlight-timeout=never default-screen=stats read-only-mode=yes
touch-screen=disabled
/lcd interface
set ether2 disabled=yes
set ether3 disabled=yes
set ether4 disabled=yes
set ether5 disabled=yes
set sfp1 disabled=yes
set ether6 disabled=yes
set ether7 disabled=yes
set ether8 disabled=yes
set ether9 disabled=yes
set ether10 disabled=yes
/lcd interface pages
set 0 interfaces=ether1
/system clock
set time-zone-name=Europe/London
BR
Tony.
