Linux Netfilter discussions
 help / color / mirror / Atom feed
* NAT and anti spoofing
@ 2002-09-18 21:29 Daniel F. Chief Security Engineer -
  2002-09-19 12:33 ` Antony Stone
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel F. Chief Security Engineer - @ 2002-09-18 21:29 UTC (permalink / raw)
  To: netfilter

This may be a stupid question but the answer is eluding me right now. 

With NAT setup. 

I have a single machine with 8 global IPs NATed to 8 10.0.0.0/8 IPs. How do 
you filter the 10.0.0.0/8 network from talking to the machines behind the 
firewall. From outside the firewall on the internet.  

I used command like this to get the NAT working is this right. 
iptables -t nat -A POSTROUTING -s 10.10.10.128 -j SNAT --to 1.2.3.4
iptables -t nat -A PREROUTING -d 1.2.3.4 -j DNAT --to 10.10.10.128

This worked to make 1.2.3.4 send to a machine behind the firewall that had 
10.10.10.128 for it's IP. 


Thanks

-- 
Daniel Fairchild
C I Host | danielf@cihost.com


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-09-19 12:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-18 21:29 NAT and anti spoofing Daniel F. Chief Security Engineer -
2002-09-19 12:33 ` Antony Stone

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox