Hi there,
After a recent update at FritzBox, wireguard seems now to work (both sides are at state "running" and no errors so far).
I also switched back using VLAN instead of a specific ether port, because I do want to dynamically enable/disable the VPN for specific ports
Now the traffic requests seems to get routed correctly, but there is no response from the other side - at least my client doesn't get any responses.
Do you see any issues? EVERY traffic should get routed through the VPN (not only 192.168.0.0/24)
The logs:
998 2024-09-22 02:01:31 memory firewall, info V30T forward: in:vlan300 out:wireguard1, connection-state:new,snat src-mac ec:74:8c:6c:e7:c6, proto TCP (SYN), 192.168.90.252:60140->95.101.75.144:443, NAT (192.168.90.252:60140->188.22.45.15:60140)->95.101.75.144:443, len 60
999 2024-09-22 02:01:31 memory firewall, info V30T forward: in:vlan300 out:wireguard1, connection-state:new,snat src-mac ec:74:8c:6c:e7:c6, proto TCP (SYN), 192.168.90.252:59168->92.123.37.200:443, NAT (192.168.90.252:59168->188.22.45.15:59168)->92.123.37.200:443, len 60
996 2024-09-22 02:01:27 memory firewall, info V30T forward: in:vlan300 out:wireguard1, connection-state:new,snat src-mac ec:74:8c:6c:e7:c6, proto TCP (SYN), 192.168.90.252:60140->95.101.75.144:443, NAT (192.168.90.252:60140->188.22.45.15:60140)->95.101.75.144:443, len 60
997 2024-09-22 02:01:27 memory firewall, info V30T forward: in:vlan300 out:wireguard1, connection-state:new,snat src-mac ec:74:8c:6c:e7:c6, proto TCP (SYN), 192.168.90.252:59168->92.123.37.200:443, NAT (192.168.90.252:59168->188.22.45.15:59168)->92.123.37.200:443, len 60
995 2024-09-22 02:01:25 memory firewall, info V30T forward: in:vlan300 out:wireguard1, connection-state:new,snat src-mac ec:74:8c:6c:e7:c6, proto TCP (SYN), 192.168.90.252:59168->92.123.37.200:443, NAT (192.168.90.252:59168->188.22.45.15:59168)->92.123.37.200:443, len 60
994 2024-09-22 02:01:24 memory firewall, info V30T forward: in:vlan300 out:wireguard1, connection-state:new,snat src-mac ec:74:8c:6c:e7:c6, proto TCP (SYN), 192.168.90.252:60140->95.101.75.144:443, NAT (192.168.90.252:60140->188.22.45.15:60140)->95.101.75.144:443, len 60
993 2024-09-22 02:01:23 memory firewall, info V30T forward: in:vlan300 out:wireguard1, connection-state:new,snat src-mac ec:74:8c:6c:e7:c6, proto TCP (SYN), 192.168.90.252:59168->92.123.37.200:443, NAT (192.168.90.252:59168->188.22.45.15:59168)->92.123.37.200:443, len 60
991 2024-09-22 02:01:22 memory firewall, info V30T forward: in:vlan300 out:wireguard1, connection-state:new,snat src-mac ec:74:8c:6c:e7:c6, proto TCP (SYN), 192.168.90.252:59168->92.123.37.200:443, NAT (192.168.90.252:59168->188.22.45.15:59168)->92.123.37.200:443, len 60
992 2024-09-22 02:01:22 memory firewall, info V30T forward: in:vlan300 out:wireguard1, connection-state:new,snat src-mac ec:74:8c:6c:e7:c6, proto TCP (SYN), 192.168.90.252:60140->95.101.75.144:443, NAT (192.168.90.252:60140->188.22.45.15:60140)->95.101.75.144:443, len 60
This is my current setup
# 2024-09-22 01:57:05 by RouterOS 7.15.2
# software id = MRVG-J4JI
#
# model = C52iG-5HaxD2HaxD
# serial number = *****
/interface bridge
add admin-mac=48:A9:8A:DA:A7:5E auto-mac=no comment=defconf name=bridge \
vlan-filtering=yes
/interface wireguard
add listen-port=405** mtu=1420 name=wireguard1
/interface vlan
add interface=ether1 name=ether1.1 vlan-id=2
add comment=wg-VLAN interface=bridge name=vlan300 vlan-id=300
/interface pppoe-client
add add-default-route=yes disabled=no interface=ether1.1 name=pppoe-out1 \
use-peer-dns=yes user=**
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/interface wifi datapath
add bridge=bridge comment=defconf disabled=no name=capdp
/interface wifi
set [ find default-name=wifi1 ] channel.band=5ghz-ax .reselect-interval=\
1h..1h20m .skip-dfs-channels=10min-cac .width=20/40/80mhz \
configuration.country=Austria .mode=ap .ssid=P-Wave datapath=capdp \
disabled=no security.authentication-types=wpa2-psk,wpa3-psk \
.connect-priority=0 .ft=yes .ft-over-ds=yes
set [ find default-name=wifi2 ] channel.band=2ghz-ax .reselect-interval=\
1h..1h10m .skip-dfs-channels=10min-cac .width=20/40mhz \
configuration.country=Austria .mode=ap .ssid=P-Wave datapath=capdp \
disabled=no security.authentication-types=wpa2-psk,wpa3-psk \
.connect-priority=0 .ft=yes .ft-over-ds=yes
/ip pool
add name=default-dhcp ranges=192.168.88.10-192.168.88.254
add name=dhcp_vlan300 ranges=192.168.90.2-192.168.90.254
/ip dhcp-server
add address-pool=default-dhcp interface=bridge name=defconf
add address-pool=dhcp_vlan300 interface=vlan300 name=dhcp_vlan3
/routing table
add disabled=no fib name=to-Fritz
/disk settings
set auto-media-interface=bridge
/interface bridge port
add bridge=bridge comment=defconf interface=ether2
add bridge=bridge comment=defconf interface=ether4
add bridge=bridge comment=defconf interface=ether5
add bridge=bridge comment=defconf interface=wifi1
add bridge=bridge comment=defconf interface=wifi2
add bridge=bridge comment=defconf frame-types=\
admit-only-untagged-and-priority-tagged interface=ether3 pvid=300
/ip neighbor discovery-settings
set discover-interface-list=LAN
/interface bridge vlan
add bridge=bridge tagged=bridge vlan-ids=300
/interface list member
add comment=defconf interface=bridge list=LAN
add comment=defconf interface=ether1 list=WAN
add interface=pppoe-out1 list=WAN
add interface=wireguard1 list=WAN
add interface=vlan300 list=LAN
/interface wifi cap
set discovery-interfaces=bridge enabled=yes slaves-datapath=capdp
/interface wireguard peers
add allowed-address=0.0.0.0/0 endpoint-address=\
***.myfritz.net endpoint-port=57925 interface=wireguard1 \
name=peer5 persistent-keepalive=25s preshared-key=\
"***" public-key=\
"****"
/ip address
add address=192.168.88.1/24 comment=defconf interface=bridge network=\
192.168.88.0
add address=192.168.90.1/24 interface=vlan300 network=192.168.90.0
/ip dhcp-client
add comment=defconf disabled=yes interface=ether1
/ip dhcp-server network
add address=192.168.88.0/24 comment=defconf dns-server=192.168.88.1 gateway=\
192.168.88.1
add address=192.168.90.0/24 gateway=192.168.90.1
/ip dns
set allow-remote-requests=yes
/ip firewall filter
add action=accept chain=input comment=\
"defconf: accept established,related,untracked" connection-state=\
established,related,untracked
add action=drop chain=input comment="defconf: drop invalid" connection-state=\
invalid
add action=accept chain=input comment="defconf: accept ICMP" protocol=icmp
add action=accept chain=input comment=\
"defconf: accept to local loopback (for CAPsMAN)" dst-address=127.0.0.1
add action=accept chain=forward comment="defconf: accept in ipsec policy" \
ipsec-policy=in,ipsec
add action=accept chain=forward comment="defconf: accept out ipsec policy" \
ipsec-policy=out,ipsec
add action=accept chain=forward comment="allow V30 to tunnel" log=yes \
log-prefix=V30T out-interface=wireguard1 src-address=192.168.90.0/24
add action=drop chain=input comment="defconf: drop all not coming from LAN" \
in-interface-list=!LAN log=yes log-prefix=NLAN
add action=fasttrack-connection chain=forward comment="defconf: fasttrack" \
connection-state=established,related hw-offload=yes
add action=accept chain=forward comment=\
"defconf: accept established,related, untracked" connection-state=\
established,related,untracked
add action=drop chain=forward comment="defconf: drop invalid" \
connection-state=invalid log=yes log-prefix=INV
add action=accept chain=forward comment="internet traffic" in-interface-list=\
LAN out-interface-list=WAN
add action=accept chain=forward comment="port forwarding" \
connection-nat-state=dstnat
add action=drop chain=forward comment="drop all else" log=yes log-prefix=ELSE
/ip firewall mangle
add action=change-mss chain=forward new-mss=1420 out-interface=pppoe-out1 \
passthrough=yes protocol=tcp tcp-flags=syn
add action=change-mss chain=forward comment=\
"Clamp MSS to PMTU for Outgoing packets" new-mss=clamp-to-pmtu \
out-interface=wireguard1 passthrough=yes protocol=tcp tcp-flags=syn
/ip firewall nat
add action=masquerade chain=srcnat out-interface-list=WAN
/ip ipsec profile
set [ find default=yes ] dh-group=modp1024 enc-algorithm=\
aes-256,aes-192,aes-128
/ip route
add disabled=no dst-address=0.0.0.0/0 gateway=wireguard1 routing-table=\
to-Fritz suppress-hw-offload=no
/ip service
set ftp disabled=yes
set api disabled=yes
set api-ssl disabled=yes
/ipv6 firewall address-list
add address=::/128 comment="defconf: unspecified address" list=bad_ipv6
add address=::1/128 comment="defconf: lo" list=bad_ipv6
add address=fec0::/10 comment="defconf: site-local" list=bad_ipv6
add address=::ffff:0.0.0.0/96 comment="defconf: ipv4-mapped" list=bad_ipv6
add address=::/96 comment="defconf: ipv4 compat" list=bad_ipv6
add address=100::/64 comment="defconf: discard only " list=bad_ipv6
add address=2001:db8::/32 comment="defconf: documentation" list=bad_ipv6
add address=2001:10::/28 comment="defconf: ORCHID" list=bad_ipv6
add address=3ffe::/16 comment="defconf: 6bone" list=bad_ipv6
/ipv6 firewall filter
add action=accept chain=input comment=\
"defconf: accept established,related,untracked" connection-state=\
established,related,untracked
add action=drop chain=input comment="defconf: drop invalid" connection-state=\
invalid
add action=accept chain=input comment="defconf: accept ICMPv6" protocol=\
icmpv6
add action=accept chain=input comment="defconf: accept UDP traceroute" \
dst-port=33434-33534 protocol=udp
add action=accept chain=input comment=\
"defconf: accept DHCPv6-Client prefix delegation." dst-port=546 protocol=\
udp src-address=fe80::/10
add action=accept chain=input comment="defconf: accept IKE" dst-port=500,4500 \
protocol=udp
add action=accept chain=input comment="defconf: accept ipsec AH" protocol=\
ipsec-ah
add action=accept chain=input comment="defconf: accept ipsec ESP" protocol=\
ipsec-esp
add action=accept chain=input comment=\
"defconf: accept all that matches ipsec policy" ipsec-policy=in,ipsec
add action=drop chain=input comment=\
"defconf: drop everything else not coming from LAN" in-interface-list=\
!LAN
add action=accept chain=forward comment=\
"defconf: accept established,related,untracked" connection-state=\
established,related,untracked
add action=drop chain=forward comment="defconf: drop invalid" \
connection-state=invalid
add action=drop chain=forward comment=\
"defconf: drop packets with bad src ipv6" src-address-list=bad_ipv6
add action=drop chain=forward comment=\
"defconf: drop packets with bad dst ipv6" dst-address-list=bad_ipv6
add action=drop chain=forward comment="defconf: rfc4890 drop hop-limit=1" \
hop-limit=equal:1 protocol=icmpv6
add action=accept chain=forward comment="defconf: accept ICMPv6" protocol=\
icmpv6
add action=accept chain=forward comment="defconf: accept HIP" protocol=139
add action=accept chain=forward comment="defconf: accept IKE" dst-port=\
500,4500 protocol=udp
add action=accept chain=forward comment="defconf: accept ipsec AH" protocol=\
ipsec-ah
add action=accept chain=forward comment="defconf: accept ipsec ESP" protocol=\
ipsec-esp
add action=accept chain=forward comment=\
"defconf: accept all that matches ipsec policy" ipsec-policy=in,ipsec
add action=drop chain=forward comment=\
"defconf: drop everything else not coming from LAN" in-interface-list=\
!LAN
/routing rule
add action=lookup-only-in-table disabled=no src-address=192.168.90.0/24 \
table=to-Fritz
add action=lookup-only-in-table comment="allow local traffic when required" \
min-prefix=0 table=main
/system clock
set time-zone-name=Europe/Vienna
/tool mac-server
set allowed-interface-list=none
/tool mac-server mac-winbox
set allowed-interface-list=LAN