ifconfig eth0
It is working!!!never really got what wg21 ipv6 prefix you were planning to use, so maybee you could fill in the wg21 address and the wg21Device Address (usually wg21 address +1):
Code:1) Add/check in /opt/etc/wireguard.d/wg21.conf (the PreUp must be with a #, it will be executed anyway): AllowedIps = 10.50.1.2/32, <DeviceIpv6>/128 #PreUp = ip -6 address add dev wg21 <wg21Ipv6>/64 2) Check /opt/etc/wireguard.d/device.conf (YourDeviceName.conf): Address = 10.50.1.2/32, <DeviceIpv6>/128 3) Restart wg21 and import new device config to client (i.e. Android phone or similar known working device). 4) Check with ifconfig that wg21 has both ipv4 and ipv6 address 5) Execute from the router shell (one by one): ip6tables -t mangle -I FORWARD -o wg21 -p tcp -m tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu -m comment --comment "WireGuard 'server'" ip6tables -t mangle -I FORWARD -i wg21 -p tcp -m tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu -m comment --comment "WireGuard 'server'" ip6tables -t mangle -I FORWARD -o wg21 -j MARK --set-xmark 0x01/0x7 -m comment --comment "WireGuard 'server'" ip6tables -t mangle -I PREROUTING -i wg21 -j MARK --set-xmark 0x01/0x7 -m comment --comment "WireGuard 'server'" ip6tables -I INPUT -i wg21 -j ACCEPT -m comment --comment "WireGuard 'server'" ip6tables -I FORWARD -i wg21 -j ACCEPT -m comment --comment "WireGuard 'server'" ip6tables -I FORWARD -i br0 -o wg21 -j ACCEPT -m comment --comment "LAN to WireGuard 'server clients'" ip6tables -I OUTPUT -o wg21 -j ACCEPT -m comment --comment "WireGuard 'server'" 6) Check IPv4/IPv6 connection to Client (On Android use i.e. PingTools): Ping wg21 ipv4 Ping wg21 ipv6 Ping internet client 2600:: 7) If all good, put the ip6tables commands in userscript /jffs/addons/wireguard/Scripts/wg21-up.sh (don’t forget the shebang and make it executable) also remove the rules (Replace -I with -D) in userscript /jffs/addons/wireguard/Scripts/wg21-down.sh (don’t forget the shebang and make it executable)
You're my hero
Please remind me how to make scripts executable.