dziky
Hi Guys,
I'm trying to run "private lan" on hosted vps.
I can't get it working 🙁 it look's simple but not on my sklils
Maybe You guys are beeter than me in networking so please advice how to do it right.
I have OpenVPN server with two NIC WAN and LAN.
Clients are conectin on WAN int with tun0 10.8.0.0 LAN is 192.168.1.10
In the same LAN i have pfSense for accessing diffrent vpn tunels (projects). LAN IP of pfSense is 192.168.1.1
I have some others servers in that LAN for example GIT or ownCloud and they should be accessible as well.
I want to route all trafic from vpn clients to default gateway 192.168.1.1 (pfSense)
In an ideal scenario i'm connecting to VPN on WAN IP X.X.X.X i have access to all lan resources but all "internet trafic" is going thrue WAN Y.Y.Y.Y (pfSense)
Hope all is clear and thanks in advanced for You're help.
zxun
The routing secret is the router has to be always in the same net with the host.
You can ask Clients to route its traffic to the VPN server at 10.8.0.1 then ask the vpnserver (if in 192.168.1.0/24 as well) to route its traffic to 192.168.1.1
And also ask the 192.168.1.1 to route any traffic back to net 10.8.0.0/24 back to the vpnserver.
Routing policy is a complete loop, not as simple as a node.