[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] NAT with specific ip-address


I'm having a minor problem with my NAT.
My machine has two public ips, which are bound to eth0 and eth0:1.
If I'm using the first iptables rule, everything is working fine, but
the outgoing ip address used is the one of eth0. But I want the address
of eth0:1 to be used as the outgoing ip.

This is working, but wrong outgoing ip.
iptables -t nat -A POSTROUTING -s -o eth0 -j MASQUERADE

NAT doesn't work with this rule.
iptables -t nat -A POSTROUTING -o eth0 -s -j SNAT --to-source

Any suggestions?

Best regards
Hendrik Juergens


mailto: hendrik.juergens@xxxxxxxxx
PGP Public Key: http://www.dncornholio.de/pubkey.asc

Attachment: signature.asc
Description: OpenPGP digital signature

Xen-users mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.