[CentOS] control outgoing IP address?
lists at brimer.org
Tue Jun 17 23:53:19 UTC 2008
> I'd like to consolidate some services that have been assigned by IP (dns,
> syslog etc.) onto one machine by giving it IP aliases to accept connections
> for the old addresses until all the references are fixed. However, I'd like
> to have it use it's original IP as the source for outbound connections.
> Where do you control that?
There may be settings in each application that control that, but in case
there are not .. you should be able to do something like :
iptables -t nat -A POSTROUTING -p tcp --sport 334 -j SNAT --to 188.8.131.52
More information about the CentOS