Page 1 of 1

route all client's traffic via single client ip

Posted: Sun Feb 20, 2011 11:17 am
by droid111
Hello, i have close to ootb configuration of openvpn server - server ip is 10.8.0.1 and all clients are able to reach each other with

Code: Select all

client-to-client
config directive.
I need to route traffic of all clients via one single client machine, which has permanently assigned vpn ip = 10.8.0.3.
I know that directive

Code: Select all

push "redirect-gateway def1"
will push all traffic through server itself, but how to configure server.conf to push all client's traffic to 10.8.0.3?

Re: route all client's traffic via single client ip

Posted: Mon Feb 21, 2011 7:28 am
by janjust
redirecting all traffic via a client will be extremely inefficient, as it will pass through the server first.
However, you might be able to achieve this using
push "route 0.0.0.0 128.0.0.0 10.8.0.3"
push "route 128.0.0.0 128.0.0.0 10.8.0.3"