Joined: 14 Oct 2016 Posts: 109 Location: United States
Posted: Fri Aug 27, 2021 5:28 Post subject: How to allow OpenVPN client internet access not thru VPN?
Hello,
So I am currently running an OpenVPN server on my EA8500 DD-WRT router with the latest August 25, 2021 build and I recently have some trouble trying to have client devices that connect to the OpenVPN server on the router not have it's internet rerouted through the VPN. Client device is a n iPhone with iOS 14.
Currently, when I connect to the VPN, I only do that to access the local devices on the network and have no need to use the VPN internet. However, it seems that the VPN server is trying to reroute my internet requests through the VPN when I want it to just bypass that and use the cellular network only. I'm not sure if I need to do some special configuration but this wasn't a problem before until several months back so I'm not sure.
Would anyone here have an idea what's going on exactly?
Thanks in advance! _________________ DD-WRT Router Arsenal:
Joined: 18 Mar 2014 Posts: 12917 Location: Netherlands
Posted: Fri Aug 27, 2021 5:46 Post subject:
On the OpenVPN server do not enable Redirect Default Gateway.
Instead only push the local route to the client.
i.e if the local subnet of your router is 192.168.1.0/24 then add in the OpenVPN server additional config:
Joined: 14 Oct 2016 Posts: 109 Location: United States
Posted: Sat Aug 28, 2021 17:10 Post subject:
Thank you, egc!
So the settings I had configured was basically what you mentioned though I did not have word vpn_gateway included (worked without it in the past) so I added that. After reading page 19, I realized I had the push dhcp-option for my local router DNS in the configuration so I removed that and that seemed to fix my issue. Interesting that I was able to get it working previously with that incorrect configuration. _________________ DD-WRT Router Arsenal: