Hello
I have recently set up a AC3100 with both OpenVPN client and server (using Asuswrt-Merlin FW380.65). The server is using Tun, TCP on 443.
I have the server operating correctly on the AC3100. I can connect to the VPN server with my iphone while on LTE (not wifi) and access all of my computers by their static lan IP addresses.
I have also verified the client side is working on the LAN side (ipchicken shows an IP from a different country when checking from each of my computers).
The final piece I cannot figure out, is how to direct web traffic on the iphone through the VPN provider (Newshosting) like my computers, when my iphone is connected to the OpenVPN server. I can surf the web with the iphone when on a different network outside of my home and connected to the OpenVPN server, but the IP address identified when visiting ipchicken from the iphone is my home IP address from my ISP, not the VPN providers address.
My home lan ip range is 10.169.2.0/25 and the OpenVPN subnet is the default 10.8.0.0/255.255.255.0
I am sure this is a routing issue, but I cannot figure it out. I don't know if there is something I need to do on the server, or the client config to get the web traffic that may occur when a client connects to the server to go through my VPN provider IP rather than my ISPs IP.
Any help would be much appreciated. I tried to search for this, but I am new to this, and could't come up with even the right question to ask.
Routing web traffic from a client through a vpn provider
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
-
- OpenVpn Newbie
- Posts: 2
- Joined: Mon Feb 27, 2017 1:32 am
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
Re: Routing web traffic from a client through a vpn provider
Try this in google:
Policy based routing is probably the best option.
Code: Select all
site:forums.openvpn.net policy based routing