wireguard routing oet1

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Author Message
liverpoolatnight
DD-WRT User


Joined: 29 May 2008
Posts: 243
Location: United Kingdom

PostPosted: Wed Jul 18, 2018 16:39    Post subject: wireguard routing oet1 Reply with quote
I am having issues trying to connect my devices using the wireguard tunnel (setup > tunnels) via oet1, The problem is im double NATed behind an VDSL2 router on 192.168.1.0/24 and my DD-WRT router is on 192.168.9.0/24 i can acess the internet fine but the traffic is going though the WAN interface so my case vlan2.

I have tryed iptables with and just without the DROP rule

iptables -I FORWARD -s 192.168.9.0/24 -o `nvram get wan_ifname` -j DROP
iptables -I FORWARD -s 192.168.9.0/24 -o oet1 -j ACCEPT
iptables -t nat -A POSTROUTING -o oet1 -j MASQUERADE

but im clueless on ip route and rule. So if anyone is willing to help me out would be much appreciated.

I can also traceroute fine if i SSH into the router using traceroute -i oet1 forum.dd-wrt.com

_________________
TP-Link TL-WDR3600 v1 [EU]: r36330 (07/16/18 )
D-Link DIR-615 D2 [EU]: r36330 (07/16/18 )
Mikrotik RB750r2 (OpenWrt 17.01.4)
EE BrightBox 1 aka A4001N (OpenWrt 17.01.4)
Sagemcom FAST@5364 (VDSL2,FTTC (Fibre to the Cabinet) Synced 65/17

Twitter: @francisuk1989
---------------------------------
Found a bug? Report it http://svn.dd-wrt.com
DD-WRT Official FB Group: https://www.facebook.com/groups/493762527744455
Sponsor
Per Yngve Berg
DD-WRT Guru


Joined: 13 Aug 2013
Posts: 6870
Location: Romerike, Norway

PostPosted: Wed Jul 18, 2018 18:18    Post subject: Reply with quote
Change the Default Route (0.0.0.0) from vlan2 to oet0
liverpoolatnight
DD-WRT User


Joined: 29 May 2008
Posts: 243
Location: United Kingdom

PostPosted: Thu Jul 19, 2018 2:35    Post subject: Reply with quote
By default DD-WRT is missing the endpoint IP 1.2.3.4 for example and a UGH flag, 192.168.1.1 is my WAN IP as im double NATed

If anyone knows how to get it working under DD-WRT with this, Ill be grateful

Code:
root@router2:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         *               0.0.0.0         U     0      0        0 VPN
10.20.0.0       *               255.255.224.0   U     0      0        0 VPN
1.2.3.4         192.168.1.1     255.255.255.255 UGH   0      0        0 br-WAN
192.168.1.0     *               255.255.255.0   U     0      0        0 br-WAN
192.168.8.0     *               255.255.255.0   U     0      0        0 br-lan

_________________
TP-Link TL-WDR3600 v1 [EU]: r36330 (07/16/18 )
D-Link DIR-615 D2 [EU]: r36330 (07/16/18 )
Mikrotik RB750r2 (OpenWrt 17.01.4)
EE BrightBox 1 aka A4001N (OpenWrt 17.01.4)
Sagemcom FAST@5364 (VDSL2,FTTC (Fibre to the Cabinet) Synced 65/17

Twitter: @francisuk1989
---------------------------------
Found a bug? Report it http://svn.dd-wrt.com
DD-WRT Official FB Group: https://www.facebook.com/groups/493762527744455
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14248
Location: Texas, USA

PostPosted: Thu Jul 19, 2018 8:27    Post subject: Reply with quote
route add -host 1.2.3.4 netmask 255.255.255.255 gw 192.168.1.1 br-WAN (or whichever interface value matches in DD-WRT) ... that would seem to be the right way to do it via command line. I'm guessing you can add it under the webUI in the Setup -> Advanced Routing tab, but reading your ticket https://svn.dd-wrt.com/ticket/6362#comment:7 seems to indicate that adding that via the webUI doesn't work properly.
liverpoolatnight
DD-WRT User


Joined: 29 May 2008
Posts: 243
Location: United Kingdom

PostPosted: Thu Jul 19, 2018 12:58    Post subject: Reply with quote
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=318134
Fixed, See post 2

_________________
TP-Link TL-WDR3600 v1 [EU]: r36330 (07/16/18 )
D-Link DIR-615 D2 [EU]: r36330 (07/16/18 )
Mikrotik RB750r2 (OpenWrt 17.01.4)
EE BrightBox 1 aka A4001N (OpenWrt 17.01.4)
Sagemcom FAST@5364 (VDSL2,FTTC (Fibre to the Cabinet) Synced 65/17

Twitter: @francisuk1989
---------------------------------
Found a bug? Report it http://svn.dd-wrt.com
DD-WRT Official FB Group: https://www.facebook.com/groups/493762527744455


Last edited by liverpoolatnight on Wed Sep 19, 2018 1:20; edited 2 times in total
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum