All of lore.kernel.org
 help / color / mirror / Atom feed
* Portfowarding not working while SNATing,
@ 2003-07-15  6:33 Ilo
  0 siblings, 0 replies; 3+ messages in thread
From: Ilo @ 2003-07-15  6:33 UTC (permalink / raw)
  To: netfilter

[-- Attachment #1: Type: text/plain, Size: 595 bytes --]

If have the following set for some port forwarding that I need done, which works well...

/sbin/iptables -t nat -A PREROUTING -p tcp -i eth0 -d 196.11.11.11 --dport 80 -j DNAT --to 10.0.0.2:80
/sbin/iptables -t nat -A PREROUTING -p tcp -i eth0 -d 196.11.11.11 --dport 389 -j DNAT --to 10.0.0.2:389

then once I set the following for SNAT so my local machines can get internet access my port forwarding 
stops working.

/sbin/iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to 196.11.11.11


Is there something im not doing right? can someone point me in the right direction.

tx.

[-- Attachment #2: Type: text/html, Size: 1373 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread
* RE: Portfowarding not working while SNATing,
@ 2003-07-15  6:45 George Vieira
  0 siblings, 0 replies; 3+ messages in thread
From: George Vieira @ 2003-07-15  6:45 UTC (permalink / raw)
  To: Ilo, netfilter

[-- Attachment #1: Type: text/plain, Size: 1312 bytes --]

How about telling us what the problem is and what you've done to eliminate/test it.. ie. tcpdumping, -j LOG, etc..
 
I would've used -j MASQUERADE instead of SNAT personally......
 

Thanks,

 
____________________________________________
George Vieira
Citadel Computer Systems Pty Ltd Systems Manager georgev AT citadelcomputer DOT com DOT au 
Citadel Computer Systems Pty Ltd
Phone : +61 2 9955 2644 HelpDesk: +61 2 9955 2698  <http://www.citadelcomputer.com.au/> http://www.citadelcomputer.com.au
 
 
-----Original Message-----
From: Ilo [mailto:sneak@gmsg.co.za]
Sent: Tuesday, July 15, 2003 4:33 PM
To: netfilter@lists.netfilter.org
Subject: Portfowarding not working while SNATing,


If have the following set for some port forwarding that I need done, which works well...
 
/sbin/iptables -t nat -A PREROUTING -p tcp -i eth0 -d 196.11.11.11 --dport 80 -j DNAT --to 10.0.0.2:80
/sbin/iptables -t nat -A PREROUTING -p tcp -i eth0 -d 196.11.11.11 --dport 389 -j DNAT --to 10.0.0.2:389

then once I set the following for SNAT so my local machines can get internet access my port forwarding 
stops working.
 
/sbin/iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to 196.11.11.11
 
 
Is there something im not doing right? can someone point me in the right direction.
 
tx.

[-- Attachment #2: Type: text/html, Size: 4926 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread
* Portfowarding not working while SNATing,
@ 2003-07-15  6:30 Ilo Lorusso
  0 siblings, 0 replies; 3+ messages in thread
From: Ilo Lorusso @ 2003-07-15  6:30 UTC (permalink / raw)
  To: netfilter

[-- Attachment #1: Type: text/plain, Size: 595 bytes --]

If have the following set for some port forwarding that I need done, which works well...

/sbin/iptables -t nat -A PREROUTING -p tcp -i eth0 -d 196.11.11.11 --dport 80 -j DNAT --to 10.0.0.2:80
/sbin/iptables -t nat -A PREROUTING -p tcp -i eth0 -d 196.11.11.11 --dport 389 -j DNAT --to 10.0.0.2:389

then once I set the following for SNAT so my local machines can get internet access my port forwarding 
stops working.

/sbin/iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to 196.11.11.11


Is there something im not doing right? can someone point me in the right direction.

tx.

[-- Attachment #2: Type: text/html, Size: 1329 bytes --]

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

end of thread, other threads:[~2003-07-15  6:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-15  6:33 Portfowarding not working while SNATing, Ilo
  -- strict thread matches above, loose matches on Subject: below --
2003-07-15  6:45 George Vieira
2003-07-15  6:30 Ilo Lorusso

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.