Posted: Sun Jul 04, 2021 19:25 Post subject: Route the traffic of all repeater bridge clients through VPN
Hi, I have an Asus 87U router configured to run in repeater bridge with the same subnetwork as my main router. It's connected through a 2.4Ghz wlan to my first router. Also I have one Virtual vlan for 2.4Ghz and a wlan on 5Ghz. And finally I have wireguard setup and connected to a wireguard server. The question is how do I route all the traffic from all the clients on the wlan and lan through wireguard. Also note that internet access is coming from the first router through the 2.4ghz wlan and I have access to all my resources from the main and secondary routers and a stable connection for wireguard. I am pretty sure that it should be done through IP tables but have no clue how to configure it.
My current bridge assignment is: br0-> eth01, vlan1, vlan2, wl0.1
All I need is the configuration to reroute all my clients' traffic from zone B(see the attachment) through VPN
Joined: 18 Mar 2014 Posts: 12450 Location: Netherlands
Posted: Sun Jul 04, 2021 20:35 Post subject:
You have to point your clients to the repeater as gateway.
So your clients shoud have 192.168.54.2 as gateway.
You can use dnsmasq on your primary router to hand out alternate gateways for different clients
In my signature see the WireGuard documenation, in the Advanced setup guide is a paragraph about setting up a WG client on a WAP this is comparable as setting up on a bridge
Unfortunately when I change the gateway on clients to point to repeater I end up with no internet connection and tracert shows that I stop on repeater.
Joined: 08 May 2018 Posts: 13883 Location: Texas, USA
Posted: Mon Jul 05, 2021 12:44 Post subject:
And you are going by the information on the router database. Please do not rely on the router database, it is *not* updated. Click on the image below and read:
Please take a moment to read the forum rules and guidelines as well as all the Announcements and Stickies here and in the Broadcom forum to start. You are not done reading, you never will be done reading and learning when it comes to Linux or DD-WRT.
Joined: 08 May 2018 Posts: 13883 Location: Texas, USA
Posted: Mon Jul 05, 2021 13:08 Post subject:
Something like this is probably why:
root@TL-WR1043NDv2:~# nvram get_wanface
root@TL-WR1043NDv2:~# $(get_wanface)
-sh: wlan0: not found
root@TL-WR1043NDv2:~#
@egc will have to probably look into this and add amplifying information for non-standard situations such as yours. I don't have an RT-AC87U to tinker with. _________________ "Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT Pogo - A minimal level of ability is expected and needed... DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)
----------------------
Linux User #377467 counter.li.org / linuxcounter.net
still no luck. Completely reconfigured and still as soon as I enable the WG on router the internet disappears. can't ping my WG server cant ping google ...