iptables? issue

nullv at gmx.com nullv at gmx.com
Fri Feb 17 13:15:52 UTC 2012


I was reading this thread and when I hit nullv's message the coin dropped about routers if he wants to use one of his Internet addresses as a gateway for the internal network. If he wants access to his 10.x.y.z network, though, that db0 machine will have to come in through one of his computers using port forwarding, not necessarily NAT. And if he wants db0 to be exposed on the Internet he'd have to play the aliasing tricks. It's not clear to me just what he was trying to do. Using one of his machines as a router/gateway/firewall makes a lot of sense from a security standpoint. For the 10.x.y.z he'd want to use NAT, though. That would hide the db0 machine from the Internet quite nicely while other machines showed cleanly. {^_^} -- 
 I've been trying out the SNAT-ing the ips through one-to-one rules such as:

 -A POSTROUTING -i eth0 -o eth1 -s 10.0.0.2/32 -j SNAT --to-source 41.123.234.56/32

 but i doesn't seem to work as expected. If i MASQUERADE the wan ip evertything seems to work but for SNAT i can't seem to get a direct from inside my lan to the outside.
 I'm missing something again?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/users/attachments/20120217/0dd99e88/attachment.html>


More information about the users mailing list