route all client's traffic via single client ip

This forum is for admins who are looking to build or expand their OpenVPN setup.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
droid111
OpenVpn Newbie
Posts: 1
Joined: Sun Feb 20, 2011 11:08 am

route all client's traffic via single client ip

Post by droid111 » Sun Feb 20, 2011 11:17 am

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?

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

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

Post by janjust » Mon Feb 21, 2011 7:28 am

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"

Post Reply