Perfect Privacy escreveu:
But let's come to the basics first: How would I change the IP that is
assigned to the Primary Interface, or NIC address on CentOS? This
should, as a result mean, that every client who connects to my OpenVPN
gets assigned a different external IP, e.g. 216.xx.xx.170, instead of
the current one, e.g. 216.xx.xx.164?
You dont need to change the 'main IP' of your interface. If your
system is using the main IP, it's probably because you're doing nat
POSTROUTING with MASQUERADE target. If you change MASQUERADE and use
SNAT, you can specify which would be the translated address.
iptables -t nat -A POSTROUTING [your options here] -j MASQUERADE
iptables -t nat -A POSTROUTING [your options here] -j SNAT --to-source
But this is a iptables problem, not related to OpenVPN at all !
Atenciosamente / Sincerily,
Minha armadilha de SPAM, NÃO mandem email
My SPAMTRAP, do not email it
Description: S/MIME Cryptographic Signature