I excluded wireless to cut down on config.
I did notice some “left overs” on remote site, like under ppp profile *default-encryption had some “unknown” interface… removed that. Or under /ip dns static had some invalid dns… removed that. Or under BR1 had ether1 (wan) member, which should not be there… removed that. I think these were left over from previous EoIP config. Cleared that up. Restarted l2tp tunnel, but still no love.
central site:
# mar/04/2021 14:24:29 by RouterOS 6.48
# software id = VIVR-KH3V
#
# model = RB4011iGS+5HacQ2HnD
/interface bridge
add name=BR1 protocol-mode=none vlan-filtering=yes
add name=BR20 protocol-mode=none
/interface vlan
add interface=BR1 name=PC-VLAN vlan-id=10
add interface=BR1 name=VOIP-VLAN vlan-id=20
/interface list
add name=WAN
add name=VLAN
add name=BASE
/ip pool
add name=PC-POOL ranges=172.31.1.50-172.31.1.99
add name=L2TP-POOL ranges=10.10.10.50-10.10.10.99
/ip dhcp-server
add address-pool=PC-POOL disabled=no interface=PC-VLAN name=PC-DHCP
/ppp profile
add bridge=BR20 comment="bcp bridged voip network" name=L2TP-VOIP-BCP use-encryption=required
/interface bridge port
add bridge=BR1 comment="trunk/uplink: V10, V20" interface=ether2
add bridge=BR1 comment="ingress/hybrid: access V10, trunk V20" ingress-filtering=yes interface=ether3 pvid=10
add bridge=BR1 comment="ingress/hybrid: access V10, trunk V20" ingress-filtering=yes interface=ether4 pvid=10
add bridge=BR1 comment="ingress/hybrid: access V10, trunk V20" ingress-filtering=yes interface=ether5 pvid=10
add bridge=BR1 comment="ingress/hybrid: access V10, trunk V20" ingress-filtering=yes interface=ether6 pvid=10
add bridge=BR1 comment="ingress/hybrid: access V10, trunk V20" ingress-filtering=yes interface=ether7 pvid=10
add bridge=BR1 comment="ingress/hybrid: access V10, trunk V20" ingress-filtering=yes interface=ether8 pvid=10
add bridge=BR1 comment="ingress/hybrid: access V10, trunk V20" ingress-filtering=yes interface=ether9 pvid=10
add bridge=BR1 comment="ingress/PBX: access V20" frame-types=admit-only-untagged-and-priority-tagged interface=ether10 pvid=20
add bridge=BR20 comment="V20 (voip) over BR20 (L2TP/BCP)" interface=VOIP-VLAN
/ip neighbor discovery-settings
set discover-interface-list=BASE
/interface bridge vlan
add bridge=BR1 comment="Egress/Hybrid: tagged BR1, ether2; untagged ether3-9" tagged=BR1,ether2 untagged=ether3,ether4,ether5,ether6,ether7,ether8,ether9 vlan-ids=10
add bridge=BR1 comment="Egress/PBX: tagged BR1, ether2-9; untagged ether10" tagged=ether2,ether3,ether4,ether5,ether6,ether7,ether8,ether9,BR1 untagged=ether10 vlan-ids=20
/interface l2tp-server server
set authentication=mschap2 default-profile=L2TP-DEFAULT enabled=yes ipsec-secret=**** mrru=1600 use-ipsec=required
/interface list member
add interface=ether1 list=WAN
add interface=VOIP-VLAN list=VLAN
add interface=PC-VLAN list=VLAN
add interface=PC-VLAN list=BASE
/ip address
add address=172.31.1.254/24 interface=PC-VLAN network=172.31.1.0
/ip dhcp-client
add disabled=no interface=ether1
/ip dhcp-server network
add address=172.31.1.0/24 dns-server=172.31.1.1 gateway=172.31.1.254
/ip dns
set allow-remote-requests=yes
/ip firewall filter
add action=accept chain=input comment="accept established,related" connection-state=established,related
add action=drop chain=input comment="drop invalid" connection-state=invalid
add action=accept chain=input comment="accept ICMP" protocol=icmp
add action=accept chain=input comment="accept IPsec ESP" protocol=ipsec-esp
add action=accept chain=input comment="accept IPsec NAT" dst-port=4500 protocol=udp
add action=accept chain=input comment="accept IKE" dst-port=500 protocol=udp
add action=accept chain=input comment="accept L2TP ipsec encapsulated" dst-port=1701 ipsec-policy=in,ipsec protocol=udp
add action=accept chain=input comment="accept PC_VLAN (base)" in-interface=PC-VLAN
add action=drop chain=input comment="drop all not comming from BASE" in-interface-list=!BASE
add action=drop chain=input comment="drop all"
add action=accept chain=forward comment="accept in ipsec policy" ipsec-policy=in,ipsec
add action=accept chain=forward comment="accept out ipsec policy" ipsec-policy=out,ipsec
add action=fasttrack-connection chain=forward comment=fasttrack connection-state=established,related
add action=accept chain=forward comment="accept established,related" connection-state=established,related
add action=accept chain=forward comment="accept PC_VLAN internet access" connection-state=new in-interface=PC-VLAN out-interface-list=WAN
add action=drop chain=forward comment="drop invalid" connection-state=invalid
add action=drop chain=forward comment="drop all from WAN not DSTNATed" connection-nat-state=!dstnat connection-state=new in-interface-list=WAN
/ip firewall nat
add action=masquerade chain=srcnat comment="Default masquerade" out-interface-list=WAN
/ip service
set telnet disabled=yes
set ftp disabled=yes
set www disabled=yes
set ssh disabled=yes
/ppp secret
add comment="routed network" local-address=10.10.10.1 name=STUDENCI profile=L2TP-VOIP-BCP remote-address=10.10.10.2 routes="172.31.2.0/24 10.10.10.2 1" service=l2tp
remote site:
# mar/04/2021 14:25:13 by RouterOS 6.48
# software id = YDGE-MDDX
#
# model = RB4011iGS+5HacQ2HnD
/interface bridge
add name=BR1 protocol-mode=none vlan-filtering=yes
add name=BR10 protocol-mode=none
add name=BR20 protocol-mode=none
/interface vlan
add interface=BR1 name=PC-VLAN vlan-id=10
add interface=BR1 name=VOIP-VLAN vlan-id=20
/interface list
add name=WAN
add name=VLAN
add name=BASE
/ip pool
add name=PR-POOL ranges=192.168.1.10-192.168.1.254
add name=PC-POOL ranges=172.31.2.50-172.31.2.99
/ip dhcp-server
add address-pool=PR-POOL disabled=no interface=BR10 name=PR-DHCP
add address-pool=PC-POOL disabled=no interface=PC-VLAN name=PC-DHCP
/ppp profile
add bridge=BR20 interface-list=BASE name=L2TP-VOIP-BCP use-encryption=required
/interface l2tp-client
add allow=mschap2 connect-to=******* disabled=no ipsec-secret=***** mrru=1600 name=L2TP-CENTER password=**** profile=L2TP-VOIP-BCP use-ipsec=yes user=STUDENCI
/interface bridge port
add bridge=BR1 comment="ingress/hybrid: access V10, trunk V20" ingress-filtering=yes interface=ether2 pvid=10
add bridge=BR1 comment="ingress/hybrid: access V10, trunk V20" ingress-filtering=yes interface=ether3 pvid=10
add bridge=BR1 comment="ingress/hybrid: access V10, trunk V20" ingress-filtering=yes interface=ether4 pvid=10
add bridge=BR1 comment="ingress/hybrid: access V10, trunk V20" ingress-filtering=yes interface=ether5 pvid=10
add bridge=BR1 comment="ingress/hybrid: access V10, trunk V20" ingress-filtering=yes interface=ether6 pvid=10
add bridge=BR1 comment="ingress/hybrid: access V10, trunk V20" ingress-filtering=yes interface=ether7 pvid=10
add bridge=BR1 interface=ether8
add bridge=BR1 comment="ingress: access V10" ingress-filtering=yes interface=wlan1 pvid=10
add bridge=BR1 comment="ingress: access V10" ingress-filtering=yes interface=wlan2 pvid=10
add bridge=BR10 comment=home interface=ether10
add bridge=BR20 comment="V20 (voip) over BR20 (L2TP/BCP)" interface=VOIP-VLAN
/ip neighbor discovery-settings
set discover-interface-list=BASE
/interface bridge vlan
add bridge=BR1 comment="egress/hybrid: tagged BR1, untagged e2-e9" tagged=BR1 untagged=ether2,ether3,ether4,ether5,ether6,ether7 vlan-ids=10
add bridge=BR1 comment="egress/hybrid: tagged BR1, e2-e9" tagged=BR1,ether2,ether3,ether4,ether5,ether6,ether7 vlan-ids=20
/interface list member
add interface=ether1 list=WAN
add interface=PC-VLAN list=BASE
add interface=VOIP-VLAN list=VLAN
add interface=PC-VLAN list=VLAN
/ip address
add address=192.168.1.1/24 interface=BR10 network=192.168.1.0
add address=172.31.2.1/24 interface=PC-VLAN network=172.31.2.0
/ip dhcp-client
add disabled=no interface=ether1
/ip dhcp-server network
add address=172.31.2.0/24 comment="studenci network" dns-server=172.31.1.1 gateway=172.31.2.1
add address=192.168.1.0/24 comment="home network" dns-server=77.111.1.1,77.111.1.77,8.8.8.8,8.8.4.4 gateway=192.168.1.1
/ip dns
set allow-remote-requests=yes
/ip firewall filter
add action=accept chain=input comment="accept established,related" connection-state=established,related
add action=drop chain=input comment="drop invalid" connection-state=invalid
add action=accept chain=input comment="accept ICMP" protocol=icmp
add action=accept chain=input comment="accept IPsec ESP" protocol=ipsec-esp
add action=accept chain=input comment="accept IPsec NAT" dst-port=4500 protocol=udp
add action=accept chain=input comment="accept IKE" dst-port=500 protocol=udp
add action=accept chain=input comment="accept L2TP ipsec encapsulated" dst-port=1701 ipsec-policy=in,ipsec protocol=udp
add action=accept chain=input comment="accept PC_VLAN (base)" in-interface=PC-VLAN
add action=accept chain=input comment="winbox wan port" dst-port=8291 in-interface-list=WAN protocol=tcp src-address=82.149.19.89
add action=drop chain=input comment="drop all not comming from BASE" in-interface-list=!BASE
add action=drop chain=input comment="drop all"
add action=accept chain=forward comment="accept in ipsec policy" ipsec-policy=in,ipsec
add action=accept chain=forward comment="accept out ipsec policy" ipsec-policy=out,ipsec
add action=fasttrack-connection chain=forward comment=fasttrack connection-state=established,related
add action=accept chain=forward comment="accept established,related" connection-state=established,related
add action=accept chain=forward comment="accept PC_VLAN internet access" in-interface=PC-VLAN out-interface-list=WAN
add action=drop chain=forward comment="drop invalid" connection-state=invalid
add action=drop chain=forward comment="drop all from WAN not DSTNATed" connection-nat-state=!dstnat connection-state=new in-interface-list=WAN
add action=drop chain=forward comment="drop all from BR10 (home) to BR1 (company)" in-interface=BR10 out-interface=BR1
/ip firewall nat
add action=masquerade chain=srcnat comment="defconf: masquerade" ipsec-policy=out,none out-interface-list=WAN
/ip route
add distance=1 dst-address=172.31.1.0/24 gateway=10.10.10.1
/ip service
set telnet disabled=yes
set ftp disabled=yes
set www disabled=yes
set ssh disabled=yes
set api disabled=yes
set api-ssl disabled=yes