Hi

I have a bit of a problem.

I have configure my ubuntu server to act as a openvpn server and all that works just fine and dandy. The only problem i have is with my ip addresses.

My network configuration is as following:

eth0 with ip x.x.x.x
eth0:1 with ip y.y.y.y
eth0:2 with ip z.z.z.z etc etc

I want all clients that connects to the server to have the y.y.y.y outgoing ip, and not the ip of eth0.

How should i proceed with this?

I tried to configure the server.conf of openvpn with "local y.y.y.y" but that didn't work, and i have tried the following iptables configuration:
iptables -t nat -A POSTROUTING -j SNAT --to-source y.y.y.y

That does not seem to work either.

Does anybody have any idea about what i might do wrong?


Cheers