From: "Mike" Subject: Fw: 1:1 NAT/Not working Date: Tue, 28 Jan 2003 11:10:06 -0500 Sender: netfilter-admin@lists.netfilter.org Message-ID: <001601c2c6e7$ba456410$1e01a8c0@win2k.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii" To: netfilter@lists.netfilter.org can anyone give me a hand with this? or do I have to alias the interface? ----- Original Message ----- From: "Mike" To: Sent: Monday, January 27, 2003 1:38 PM Subject: Re: 1:1 NAT/Not working > I tried the examples that were shown and I cannot contact the servers. do I > need to alias the IPs on a ethernet card? i.e eth0:1? > > from outside to inside: > > iptables -t nat -A PREROUTING -d 208.15.232.12 -j DNAT --to 192.168.1.167 > > the other way around: > > iptables -t nat -A POSTROUTING -s 192.168.1.167 -j SNAT --to 208.15.131.12 > > ----- Original Message ----- > From: "Mike" > To: > Sent: Tuesday, January 21, 2003 11:00 AM > Subject: 1:1 NAT > > > > Can anyone point me to some docs on setting up 1:1 NAT on netfilter? > > > > What I am trying to do is like how its done on cisco PIX i.e > > "static (inside,outside) 208.15.232.12 192.168.1.167 netmask > 255.255.255.255 > > 0 0" > > > > That way I don't have to do IP alias on my ethernet card. > > > > Thanks, > > > > Mike > > > > > > > > >