@Odkrys, is there an easy way to check which version of the kernel or tools is currently installed on my router? I see that you recently updated the kernel to v.20201221 but I wasn't sure if I was already running that version or not.
Some googling suggested running this command:
Code:sudo modprobe wireguard
Unfortunately that command didn't work for me.
opkg list-installed
Missing a lot of information - like which vpn provider for starthi, been googling and tried the guide so many times. i had it working once but i cant remember what i did. wireguard is running and receiving very small amounts of data but thats it. I get no download or internet at all. as soon as i stop wireguard i get internet again. i can see in my routing table wg0 has been created but theres no gateway?
i think its something to do with my ip tables but its going beyond my knowledge now.
i am using an asus ax88u with diversion installed. the local ip for router is 192.168.50.1 and ips for devices start from 5.
any help appreciated! thanks
Hi thanks for fast reply!Missing a lot of information - like which vpn provider for start
gb15-wg.socks5.mullvad.net:1080The step in the first page working well with the AX88u.
Which server you using for mullvad ?
gb15-wg.socks5.mullvad.net:1080
Everything I have done including any routing is in the previous post. Are there additional steps? Forwarding?
Thanks for your help so far! I've been at it for a couple of days. It was working at one point but I must of messed my notes up! I'm pretty sure it's an iptable rule or a forward in the router but I don't have a clue what to do
For those using wireguard with PIA, did you simply used the instructions on the 1st page? I'm trying to setup but an earlier post stated only a few locations work. I only use the east coast DNS servers. Can you provide any additional steps you did to get this working with PIA? Appreciated.
well i feel like an idiot, just tried again this time using the generator. i had to block the dns and address it connects up fine. ive been trying for stupid amount of hours i was following the guideDo you have generated config from mullvad web site ? is an easy step to do that, and do you have respect the correct syntax from first page ?
I have using the first page instructions with PIA too, Actually with PIA is unsupported to use wireguard but some location working well like USA East. I have try Montreal and not working. So just be patient when PIA confirm is supported i think or use USA East...
just checked and it is the reason.
Cheers! Now the problem is rebooting router messes everything up and it doesn't restart! I have set NAT start script up but doesn't seem to be starting it on bootGood news have fun
still struggling to get it started and to check its running. are there any changes i need to make for the nat start script? or is it just copy and paste?
dos2unix /jffs/scripts/nat-start
ls -lah /jffs/scripts/nat*
/jffs/scripts/nat-start
ls -lah /opt/etc/init.d/
ls -lah /opt/etc/wireguard/
bb@RT-AX88U-97F8:/tmp/home/root# dos2unix /jffs/scripts/nat-startTry the following commands and post the output
Code:dos2unix /jffs/scripts/nat-start ls -lah /jffs/scripts/nat* /jffs/scripts/nat-start ls -lah /opt/etc/init.d/ ls -lah /opt/etc/wireguard/
Code:bb@RT-AX88U-97F8:/tmp/home/root# dos2unix /jffs/scripts/nat-start [/QUOTE] [QUOTE="borris, post: 656709, member: 74286"] jamesborrisfern@RT-AX88U-97F8:/tmp/home/root# ls -lah /jffs/scripts/nat* -rwxr-xr-x 1 bb root 313 Jan 29 11:53 /jffs/scripts/nat-start [/QUOTE] [QUOTE="borris, post: 656709, member: 74286"] bb@RT-AX88U-97F8:/tmp/home/root# /jffs/scripts/nat-start (nat-start): 2980 Checking if WireGuard is UP....0.0.0.0/1 dev wg0 scope link 128.0.0.0/1 dev wg0 scope link (nat-start): 2980 **Warning WireGuard is UP.... restarting WireGuard Done. [/QUOTE] [QUOTE="borris, post: 656709, member: 74286"] bb@RT-AX88U-97F8:/tmp/home/root# ls -lah /opt/etc/init.d/ [/QUOTE] [QUOTE="borris, post: 656709, member: 74286"] drwxr-xr-x 2 bb root 4.0K Jul 19 2020 . drwxr-xr-x 6 bb root 4.0K Jan 28 12:22 .. -rwxr-xr-x 1 bb root 1.5K Jan 28 12:18 S80pixelserv-tls -rw-r--r-- 1 bb root 2.8K Oct 26 17:59 rc.func -rw-r--r-- 1 bb root 2.5K Jan 28 12:18 rc.func.div -rwxr-xr-x 1 bb root 966 Oct 26 17:59 rc.unslung [/QUOTE] [QUOTE="borris, post: 656709, member: 74286"] bb@RT-AX88U-97F8:/tmp/home/root# ls -lah /opt/etc/wireguard/ [/QUOTE] [QUOTE="borris, post: 656709, member: 74286"] drwxr-xr-x 2 bb root 4.0K Jan 28 12:22 . drwxr-xr-x 6 bb root 4.0K Jan 28 12:22 .. -rwxr-xr-x 1 bb root 1.0K Jan 28 12:34 S50wireguard -rwxr-xr-x 1 bb root 1.8K Jul 19 2020 wg-down -rwxr-xr-x 1 bb root 2.3K Jul 19 2020 wg-policy -rwxr-xr-x 1 bb root 1.6K Jul 19 2020 wg-server -rwxr-xr-x 1 bb root 1.7K Jul 19 2020 wg-up -rw-rw-rw- 1 bb root 303 Jan 28 12:33 wg0.conf bb@RT-AX88U-97F8:/tmp/home/root#
thanks for your help!
Wireguard
request,, and the User Space Tool nat-start
script to work...iptables -t filter -D FORWARD -i br1 -o wg0 -j ACCEPT 2>/dev/null
iptables -t filter -D FORWARD -i br2 -o wg0 -j ACCEPT 2>/dev/null
iptables -t filter -I FORWARD -i br1 -o wg0 -j ACCEPT
iptables -t filter -I FORWARD -i br2 -o wg0 -j ACCEPT
iptables -t nat -D POSTROUTING -s $(nvram get lan_ipaddr)/24 -o wg0 -j MASQUERADE 2>/dev/null
iptables -t nat -I POSTROUTING -s $(nvram get lan_ipaddr)/24 -o wg0 -j MASQUERADE
iptables -t nat -D POSTROUTING -s $(nvram get lan_ipaddr)/16 -o wg0 -j MASQUERADE 2>/dev/null
iptables -t nat -I POSTROUTING -s $(nvram get lan_ipaddr)/16 -o wg0 -j MASQUERADE
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!