Www redirect in Open VPN tunel
-
Experts,
I have two pfsense boxes connected OpenVpn tunnel. Is there any way to redirect specific www page to use other gateway?
pfsense1 –------OpenVpn----------------pfsense2
lets say that I want to open www.whatismyip.com from behind pfsense1 but I want to to only that www be redirected and go through pfsesne2
Please advice
-
First of all, find out the IP address(es) that the hostname in question resolves to.
Then on pfSense1 create a static route for those IP addresses that routes through the OpenVPN tunnel. You'll need to ensure that both pfSense hosts know how to route to the LAN on the other side.