Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Daniel Chemko <dchemko@smgtec.com>
To: dalive@flashmail.com
Cc: netfilter@lists.netfilter.org
Subject: Re: IPTABLES Nightmare - Save Me
Date: Mon, 04 Aug 2003 17:22:12 -0700	[thread overview]
Message-ID: <3F2EF8B4.9090303@smgtec.com> (raw)
In-Reply-To: <3F2EEFA2.4040208@flashmail.com>

The input chain is only used for packets destined for the firewall 
itself. If the NAT tells the firewall that the packets are going to pass 
through the machine to another conputer, the FORWARD chain is thn passed 
through, NOT the INPUT.


Option 1.

Change:
$IPTABLES -A tcp_packets -p TCP -s 0/0 --dport 8080 -j ACCEPT

To:
$IPTABLES -A FORWARD -p TCP -s 0/0 --dport 8080 -j ACCEPT

Option 2.
What you are really looking for is to direct traffic from the FORWARD 
chain to the tcp_packets chain:

$IPTABLES -A FORWARD -p tcp -j tcp_packets




  reply	other threads:[~2003-08-05  0:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-04 23:43 IPTABLES Nightmare - Save Me DALive Editor
2003-08-05  0:22 ` Daniel Chemko [this message]
2003-08-05  6:13 ` Eric Leblond
  -- strict thread matches above, loose matches on Subject: below --
2003-08-05 15:23 DALive Editor

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=3F2EF8B4.9090303@smgtec.com \
    --to=dchemko@smgtec.com \
    --cc=dalive@flashmail.com \
    --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