Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Ilo" <sneak@gmsg.co.za>
To: netfilter@lists.netfilter.org
Subject: Portfowarding not working while SNATing,
Date: Tue, 15 Jul 2003 08:33:00 +0200	[thread overview]
Message-ID: <006501c34a9a$efc8d040$4c00000a@sneak> (raw)

[-- 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 --]

             reply	other threads:[~2003-07-15  6:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-15  6:33 Ilo [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-07-15  6:45 Portfowarding not working while SNATing, George Vieira
2003-07-15  6:30 Ilo Lorusso

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='006501c34a9a$efc8d040$4c00000a@sneak' \
    --to=sneak@gmsg.co.za \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox