Hello there,
I’ve setup an L2TP on the subnet 192.168.5.0, the one client I’ve setup has an IP of 192.168.5.21 and mikrotik has the IP 192.168.5.20
I can access mikrotik at 192.168.5.20 when connecting on VPN but none of the other IPs on any other LAN subnet ( at the range of 192.168.0.0/16 - i have a few subnets).
What do I need to do to allow my vpn client access the rest of the LAN subnets?
Here’s my /export hide-sensitive:
# jul/12/2022 23:11:07 by RouterOS 7.0.4
# software id = 122G-66AK
#
# model = CCR2004-16G-2S+
# serial number = HAV072JXDKM
/interface bridge
add name=bridge1-LAN
/interface ethernet
set [ find default-name=ether1 ] name=ether1-Cosmote
set [ find default-name=ether2 ] disabled=yes name=ether2-5G-Modem
set [ find default-name=ether10 ] name=ether10-udm
set [ find default-name=ether13 ] name=ether13-reolink
set [ find default-name=ether15 ] name=ether15-LAN
/interface l2tp-server
add name=l2tp-in-polas user=thanpolas-pptp
/interface pppoe-client
add add-default-route=yes allow=pap,chap disabled=no interface=ether1-Cosmote name=pppoe-out-cosmote use-peer-dns=yes user=\
ozxph6@otenet.gr
/interface list
add name=WAN
add name=LAN
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip pool
add name=dhcp_pool0 ranges=192.168.0.50-192.168.0.254
add name=pptp-clients-polas ranges=192.168.5.10-192.168.5.100
/ip dhcp-server
add address-pool=dhcp_pool0 interface=bridge1-LAN lease-time=4d4h40m39s name=dhcp1
/ppp profile
add bridge=bridge1-LAN local-address=192.168.5.20 name=polas-l2tp remote-address=pptp-clients-polas
/routing table
add disabled=no name="Cosmote Routes"
add disabled=no name="5G Routes"
add disabled=no name=to_WAN1_cosmote
add disabled=no name=to_WAN2_5G
add disabled=no name="prefer aDSL"
/interface bridge port
add bridge=bridge1-LAN interface=ether15-LAN
add bridge=bridge1-LAN interface=ether14
add bridge=bridge1-LAN interface=ether13-reolink
add bridge=bridge1-LAN interface=ether12
add bridge=bridge1-LAN interface=ether11
add bridge=bridge1-LAN interface=ether10-udm
add bridge=bridge1-LAN interface=ether9
add bridge=bridge1-LAN interface=ether8
add bridge=bridge1-LAN interface=ether7
add bridge=bridge1-LAN interface=ether6
add bridge=bridge1-LAN interface=ether5
add bridge=bridge1-LAN interface=ether4
add bridge=bridge1-LAN interface=ether16
/interface detect-internet
set detect-interface-list=all
/interface l2tp-server server
set enabled=yes use-ipsec=yes
/interface list member
add disabled=yes interface=ether1-Cosmote list=WAN
add interface=ether15-LAN list=LAN
/ip address
add address=192.168.0.1/24 comment=defconf interface=bridge1-LAN network=192.168.0.0
/ip cloud
set ddns-enabled=yes ddns-update-interval=1h
/ip dhcp-client
add add-default-route=no interface=ether2-5G-Modem use-peer-ntp=no
add add-default-route=no comment="internet detect" interface=ether1-Cosmote use-peer-ntp=no
/ip dhcp-server lease
add address=192.168.0.251 client-id=1:ec:71:db:43:89:ca mac-address=EC:71:DB:43:89:CA server=dhcp1
/ip dhcp-server network
add address=192.168.0.0/24 dns-server=1.1.1.1 gateway=192.168.0.1 netmask=24
/ip dns
set servers=1.1.1.1,8.8.8.8
/ip firewall filter
add action=drop chain=input disabled=yes dst-port=53 in-interface=ether1-Cosmote protocol=udp
add action=drop chain=input disabled=yes dst-port=53 in-interface=ether2-5G-Modem protocol=udp
add action=drop chain=input disabled=yes dst-port=53 in-interface=ether1-Cosmote protocol=tcp
add action=drop chain=input disabled=yes dst-port=53 in-interface=ether2-5G-Modem protocol=tcp
/ip firewall mangle
add action=mark-connection chain=input in-interface=pppoe-out-cosmote new-connection-mark=cosmote_connection passthrough=\
yes
add action=mark-connection chain=input in-interface=ether2-5G-Modem new-connection-mark=G5_connection passthrough=yes
add action=mark-routing chain=prerouting disabled=yes in-interface=bridge1-LAN passthrough=yes protocol=icmp
add action=mark-routing chain=output connection-mark=cosmote_connection passthrough=yes
add action=mark-routing chain=output connection-mark=G5_connection passthrough=yes
add action=accept chain=prerouting dst-address=87.203.215.225 in-interface=pppoe-out-cosmote
add action=accept chain=prerouting dst-address=192.168.88.0/24 in-interface=bridge1-LAN
add action=mark-connection chain=prerouting dst-address-type=!local in-interface=bridge1-LAN new-connection-mark=\
WAN1_cosmote passthrough=yes per-connection-classifier=both-addresses-and-ports:2/0
add action=mark-connection chain=prerouting dst-address-type=!local in-interface=bridge1-LAN new-connection-mark=WAN2_5G \
passthrough=yes per-connection-classifier=both-addresses-and-ports:2/0
add action=mark-routing chain=prerouting connection-mark=WAN1_cosmote in-interface=bridge1-LAN passthrough=yes
add action=mark-routing chain=prerouting connection-mark=WAN2_5G in-interface=bridge1-LAN passthrough=yes
/ip firewall nat
add action=masquerade chain=srcnat out-interface=pppoe-out-cosmote
add action=masquerade chain=srcnat out-interface=ether2-5G-Modem
add action=masquerade chain=srcnat out-interface=ether1-Cosmote
add action=masquerade chain=srcnat out-interface=bridge1-LAN
# no interface
add action=masquerade chain=srcnat out-interface=*F0001B
/ip route
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.88.1 pref-src="" routing-table=\
to_WAN2_5G scope=30 suppress-hw-offload=no target-scope=10
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.88.1 pref-src="" routing-table=main \
scope=30 suppress-hw-offload=no target-scope=10
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out-cosmote pref-src="" routing-table=to_WAN1_cosmote scope=\
30 suppress-hw-offload=no target-scope=10
add disabled=yes distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out-cosmote pref-src="" routing-table="prefer aDSL" scope=\
30 suppress-hw-offload=no target-scope=10
add disabled=no distance=1 dst-address=192.168.5.0/24 gateway=192.168.0.2 pref-src="" routing-table=main scope=30 \
suppress-hw-offload=no target-scope=10
add disabled=no distance=1 dst-address=192.168.20.0/24 gateway=ether10-udm pref-src="" routing-table=main scope=30 \
suppress-hw-offload=no target-scope=10
/ppp secret
add local-address=192.168.5.20 name=thanpolas-pptp profile=polas-l2tp remote-address=192.168.5.21
/system clock
set time-zone-name=Europe/Athens
/system identity
set name="Polas Core"