[CentOS] IP forwarding and OpenVPN

Thu Nov 4 14:56:58 UTC 2010
Emmett Culley <emmett at webengineer.com>

On 11/04/2010 07:50 AM, Bart Schaefer wrote:
> On Thu, Nov 4, 2010 at 5:49 AM, Les Mikesell<lesmikesell at gmail.com>  wrote:
>> Quick check is a traceroute from the remote server to a 192.168.144.x address.
>> If it doesn't go into the tunnel interface you need to add a route for the range
>> via the remote tunnel ip.
> 
> Hrm.  When I try to add such a route on one of the machines I want to
> reach, I get "SIOCADDRT: Network is unreachable".
> 
> Maybe the simplest thing is to change the question:  How can I cause
> packets forwarded from my LAN to avoid the VPN and go out via the
> regular default route?
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
> 
> 
You can ad a line like:

push "route 192.168.144.0 255.255.255.0"

to the server's configuration file.

This will cause a route to be entered into the clients routing table upon connection.