So here is my config.
Code: Select all
/interface bridge
add admin-mac=08:55:31:3E:74:1B auto-mac=no comment=defconf name=bridge
/interface pppoe-client
add add-default-route=yes disabled=no interface=ether1 name=pppoe-out1 \
use-peer-dns=yes user=XXXXXXXXX
/interface wireguard
add listen-port=13231 mtu=1420 name=wireguard
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/ip pool
add name=dhcp ranges=192.168.88.50-192.168.88.254
/ip dhcp-server
add address-pool=dhcp interface=bridge lease-time=23h name=defconf
/interface bridge port
add bridge=bridge comment=defconf ingress-filtering=no interface=ether2
add bridge=bridge comment=defconf ingress-filtering=no interface=ether3
add bridge=bridge comment=defconf ingress-filtering=no interface=ether4
add bridge=bridge comment=defconf ingress-filtering=no interface=ether5
add bridge=bridge comment=defconf ingress-filtering=no interface=wlan1
add bridge=bridge comment=defconf ingress-filtering=no interface=wlan2
/ip neighbor discovery-settings
set discover-interface-list=LAN
/interface list member
add comment=defconf interface=bridge list=LAN
add comment=defconf interface=ether1 list=WAN
add interface=pppoe-out1 list=WAN
/interface wireguard peers
add allowed-address=192.168.77.0/24,192.168.88.0/24 interface=wireguard \
persistent-keepalive=10s public-key=\
"XXXXXXX"
add allowed-address=192.168.77.0/24,192.168.88.0/24 interface=wireguard \
persistent-keepalive=10s public-key=\
"XXXXXXX"
/ip address
add address=192.168.88.1/24 comment=defconf interface=bridge network=\
192.168.88.0
add address=192.168.77.1/24 interface=wireguard network=192.168.77.0
/ip arp
add address=192.168.88.254 comment=broadcast interface=bridge mac-address=\
FF:FF:FF:FF:FF:FF
add address=192.168.88.222 interface=bridge mac-address=D0:50:99:4D:FC:2D
/ip dhcp-client
add comment=defconf disabled=yes interface=ether1 use-peer-dns=no
/ip dhcp-server network
add address=192.168.88.0/24 comment=defconf gateway=192.168.88.1
/ip dns
set allow-remote-requests=yes servers=8.8.8.8,8.8.4.4
/ip dns static
add address=192.168.88.1 comment=defconf name=router.lan
/ip firewall filter
add action=accept chain=input comment=WireGuard dst-port=13231 protocol=udp
add action=accept chain=input comment=\
"accept established,related,untracked DEFAULT!" connection-state=\
established,related,untracked
add action=drop chain=input comment="drop invalid" connection-state=invalid
add action=accept chain=input comment="accept ICMP" protocol=icmp
add action=drop chain=input comment="drop all not coming from LAN" \
in-interface-list=!LAN
add action=accept chain=forward comment=\
"accept established,related, untracked" connection-state=\
established,related,untracked
add action=drop chain=forward comment="drop invalid" connection-state=invalid
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=drop chain=forward comment="drop all from WAN not DSTNATed" \
connection-nat-state=!dstnat in-interface-list=WAN
/ip firewall nat
add action=masquerade chain=srcnat comment="defconf: masquerade" \
ipsec-policy=out,none out-interface=pppoe-out1
[Interface]
PrivateKey = XXXXX
Address = 192.168.77.2/32
[Peer]
PublicKey = XXXXX
AllowedIPs = 192.168.77.0/24, 192.168.88.0/24
Endpoint = XXXXX:13231
PersistentKeepalive = 10
Connection is established but I can ping only 192.168.77.1 and 192.168.88.1 from laptop. What is a problem? I've made a static route for 192.168.88.0/24 with 192.168.77.1 as gateway - no result. And tried to forward 88.0/24 to 77.0/24 and backward through firewall filter.