<span style='font-family:Verdana'><span style='font-size:12px'><br /> 
<br /> 
<p style="margin:0px; padding:0px;" > 
        Ā </p> 
<blockquote style="border-left: 1px solid #CCC; padding-left: 5px; margin-left: 5px; margin-bottom: 0px; margin-top: 0px; margin-right: 0px;" type="cite"> 
        <p style="margin:0px; padding:0px;" > 
                Ā </p> 
        <div> 
                <div> 
                        <pre style="word-wrap: break-word; "> 
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. 

{^_^} 
-- 
</pre> 
                </div> 
        </div> 
</blockquote> 
<p style="margin:0px; padding:0px;" > 
        I've been trying out the SNAT-ing the ips through one-to-one rules such as:<br /> 
        <br /> 
        -A POSTROUTING -i eth0 -o eth1 -s 10.0.0.2/32 -j SNAT --to-source 41.123.234.56/32<br /> 
        <br /> 
        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.<br /> 
        I'm missing something again?</p> 
</span></span>