Repeater with VPN connection

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Author Message
Cosmos
DD-WRT Novice


Joined: 05 Jul 2015
Posts: 3

PostPosted: Sun Jul 05, 2015 14:38    Post subject: Repeater with VPN connection Reply with quote
My current setup:
- Router 1 directly conntected with WAN to the internet
- Router 2 (TP-Link TL-WR1043ND) using DD-WRT in repeater mode, connected to Router 1 and running OpenVPN to tunnel all traffic of connected clients

I can connect through Router 2 to the internet (so repeater mode works) and the OpenVPN Status shows connected (my VPN provider AirVPN confirms this on their webpage). However, when surfing my real IP address is used. So the VPN connection is established, but it's not being used as a tunnel for my traffic.
I'm pretty sure it's a simple routing problem.. but my networking knowledge is really limited and I couldn't find a solution for that problem yet.

VPN Status: http://privatepaste.com/b4bab07768
Basic setup page:
OpenVPN settings:
Repeater bridge: http://dl1.joxi.net/drive/0011/3355/740635/150705/7eb83c2873.png
Routing information:

If any more information is needed to fix that problem, please let me know!
Sponsor
Per Yngve Berg
DD-WRT Guru


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

PostPosted: Sun Jul 05, 2015 20:54    Post subject: Reply with quote
Running VPN on a Repeater does not make any sense.
Can the routers be connected by a cable?

The packets will be transmitted over the wireless several times making bad throughput.
Cosmos
DD-WRT Novice


Joined: 05 Jul 2015
Posts: 3

PostPosted: Sun Jul 05, 2015 22:28    Post subject: Reply with quote
Per Yngve Berg wrote:
Running VPN on a Repeater does not make any sense.
Can the routers be connected by a cable?

The packets will be transmitted over the wireless several times making bad throughput.

I think I could also connect them by cable, but wireless in this setup would be better.
I know that the performance through wireless is worse than directly with cable.
Is it possible with a wireless setup or do I need to change it to cable?
And if so, which options needs to change?
Per Yngve Berg
DD-WRT Guru


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

PostPosted: Mon Jul 06, 2015 6:26    Post subject: Reply with quote
Router1 needs a static route for 0.0.0.0 through the VPN.
Clients can have an advantage by having router2 as their gateway.
netguru76
DD-WRT User


Joined: 14 Sep 2014
Posts: 52

PostPosted: Mon Jul 06, 2015 8:19    Post subject: Reply with quote
use the DD-Wrt Router in Router Mode with own DHCP.
All connected clients need to use this router as gateway to use the vpn...
thats all ...
Cosmos
DD-WRT Novice


Joined: 05 Jul 2015
Posts: 3

PostPosted: Mon Jul 06, 2015 20:03    Post subject: Reply with quote
netguru76 wrote:
use the DD-Wrt Router in Router Mode with own DHCP.
All connected clients need to use this router as gateway to use the vpn...
thats all ...

Thanks, I finally made it Very Happy
First I reset everything to default. Then used the client mode to connect to router 1, and everything works now perfectly, even with VPN.
I didn't think/know about repeater mode/bridging would make this problem before.
taltal13
DD-WRT Novice


Joined: 03 Oct 2011
Posts: 5

PostPosted: Wed Apr 27, 2016 20:12    Post subject: Reply with quote
I hope this is not hijacking the the thread, my apologies if yes.

I have OpenVPN set up in my residence. I manage an apartment building at a different location. I want to connect a DD-WRT wirelessly to my tenant's WiFi and have only my DD-WRT connect to my residence's VPN. I want this so that I can have a WiFi enabled IP surveillance camera connect to the DD-WRT and be on my local network.

Would I set the DD-WRT as a repeater and then configure it to connect to my VPN?
evostic
DD-WRT Novice


Joined: 07 Dec 2016
Posts: 1

PostPosted: Wed Dec 07, 2016 15:43    Post subject: Reply with quote
Cosmos wrote:
netguru76 wrote:
use the DD-Wrt Router in Router Mode with own DHCP.
All connected clients need to use this router as gateway to use the vpn...
thats all ...

Thanks, I finally made it Very Happy
First I reset everything to default. Then used the client mode to connect to router 1, and everything works now perfectly, even with VPN.
I didn't think/know about repeater mode/bridging would make this problem before.


Hi there, great that you found a solution! I was wondering if there was any chance of a posting of the updated screenshots of the updated DD-WRT configs ? Been struggling with the same issue for 2 days now, and does not appear that so many configs need to be changed after all?

My most recent attempt was placing the Wireless settings into Client mode, changing from Gateway to Router mode, but still the VPN does not work, and I don't know how to get Router2 SSID to broadcast (since not using in Repeater mode with the virtual SSID any more).

So I can currently get through to the Internet using a cable in Router2 wirelessly linked to Router1, but I need to be able to do that wirelessly and using the VPN !
Thanks! Smile
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