VPN Routing

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
Alex1978
Posts: 7
Joined: Fri Oct 21, 2016 11:41 am

VPN Routing

Post by Alex1978 » Fri Oct 21, 2016 11:44 am

I am sure this is answered in the support docs but I can't seem to find the answer :|

We setup the Softether VPN server works great. Took a while to get the configuration just right but this is the setup.

The VPN Server is using the DHCP function, so each machine connecting to it receives a local IP 192.168.100.x - now, the challenge is that ALL traffic is being routed through that server. This is setup on Linux and Windows machines.

We only want 192.168.100.x traffic routed through the VPN. I imagine it's a function of the local routing tables but can't seem to find the setup configuration in the docs. Basically, if a windows machine is connected to the VPN, only traffic that request 192.168.100.x IP's should be routed through the VPN, nothing more. Where is the support page on this setup?

Thank you.

moatazelmasry
Posts: 336
Joined: Sat Aug 15, 2015 7:41 pm

Re: VPN Routing

Post by moatazelmasry » Sun Oct 23, 2016 5:32 pm

If you are using OpenVPN, as per protocol, the server sends routing recommendations to change the default gateway, which the client respects and apply these rules to the routing table.

If you want to ignore these rules and/or define your own routes, see this openVPN guide:
https://community.openvpn.net/openvpn/w ... ectGateway

After that you can push any route to any gateway using the --route directive:
https://openvpn.net/index.php/open-sour ... npage.html

Cheers

Alex1978
Posts: 7
Joined: Fri Oct 21, 2016 11:41 am

Re: VPN Routing

Post by Alex1978 » Sun Oct 23, 2016 11:59 pm

moatazelmasry wrote:
> If you are using OpenVPN, as per protocol, the server sends routing
> recommendations to change the default gateway, which the client respects
> and apply these rules to the routing table.
>
> If you want to ignore these rules and/or define your own routes, see this
> openVPN guide:
> https://community.openvpn.net/openvpn/w ... ectGateway
>
> After that you can push any route to any gateway using the --route
> directive:
>
> https://openvpn.net/index.php/open-sour ... npage.html
>
> Cheers

Thank you. I did find the answer after, was the easiest change, just remove the default gateway and everything worked. Such a simple change to such a complex problem. Thank you!

Post Reply