modprobe wireguard
ip link add dev wg0 type wireguard
ip address add dev wg0 192.168.14.1/24
wg setconf wg0 /jffs/wg0.conf
ip link set up dev wg0
iptables -A INPUT -i wg0 -j ACCEPT
iptables -t nat -A POSTROUTING -j MASQUERADE
iptables -I FORWARD -s 192.168.14.0/24 -i wg0 -o br0 -j ACCEPT
Created
August 5, 2024 16:36
-
-
Save robvanoostenrijk/d52ae271e21efd786613080ec5727e9d to your computer and use it in GitHub Desktop.
Freshtomato Wireguard in AP mode
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment