Hi All,
I have managed to configure VPN client with my another location where I have OpenVPN server configured. All works fine on multiple device including my OpenWRT router.
I have used Wiki article:
https://openwrt.org/docs/guide-user/services/vpn/openvpn/client-luci
I have not configured kill switch option.
The problem is that all my traffic including internet now goes via that remote site.
What I am trying to achieve is to access just LAN devices on remote location. I don't want my internet traffic go via remote location.
How can I configure my OpenWRT router that way?
Thanks for any clues.
Remove default route option: redirect-gateway def1
1 Like
Insert the following into the openvpn client configuration file:
route-nopull
route 192.168.1.0 255.255.255.0 # Remote network here
Edit:
Or in the server configuration file:
#push "redirect-gateway def1" # Comment this
push "route 192.168.1.0 255.255.255.0" # Local network here
1 Like
Thanks a lot guys!
Client config file option works like a charm.
tmomas
August 24, 2022, 7:41pm
5
If your problem is solved, please consider marking this topic as [Solved]. See How to mark a topic as [Solved] for a short how-to.
If you need 'reverse' route from server to client, see 'iroute' option.
system
Closed
September 3, 2022, 8:46pm
7
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.