Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Nick <fenderflames@yahoo.com>
To: netfilter@lists.netfilter.org
Subject: FORWARD question
Date: Thu, 20 Nov 2003 12:01:25 -0800 (PST)	[thread overview]
Message-ID: <20031120200125.90105.qmail@web40806.mail.yahoo.com> (raw)

Hi everyone,

I have a question about PREROUTING and FORWARD.

I use those rules(amongst others) to reach the FTP
server on the LAN:

 $IPTABLES -t nat -A PREROUTING -p tcp -d $INET_IP -i
ppp0 --dport 21 -j DNAT --to $FTPSRVIP 

 $IPTABLES -A FORWARD -i ppp0 -o $LAN_IFACE -p tcp -d
$FTPSRVIP--dport 21 -m state --state NEW -j ACCEPT
$IPTABLES -A FORWARD -i ppp0 -o $LAN_IFACE -p tcp -d
$FTPSRVIP--dport 20 -j ACCEPT
$IPTABLES -A FORWARD -i ppp0 -o $LAN_IFACE -p tcp -d
$FTPSRVIP--dport 1024:65535 --sport 1024:65535 -j
ACCEPT 

Does this mean that all traffic coming from the
internet for ports 1024:65535 will be forwarded
towards the FTP server ports 1024:65535 ? 

What about traffic for ports 1024:65535 that should go
to other clients on the LAN ? Is it going to be
forwarded to the FTP server as well ? If yes, how
could I forward only FTP traffic to the FTP server ? 

I hope I make sense. Thanks for any help

__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/


             reply	other threads:[~2003-11-20 20:01 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-20 20:01 Nick [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-11-20 20:27 FORWARD question Nick
2003-11-20 20:51 ` Antony Stone
2003-11-20 21:51   ` Nick
2003-11-20 23:12     ` Antony Stone
2003-11-21 10:42       ` Nick
2003-11-21 11:34         ` Antony Stone
2003-11-21 11:59           ` Nick
2003-11-21 12:38             ` Antony Stone
2003-11-21 13:08               ` Antony Stone
2003-11-21 13:24                 ` Nick
2003-11-21 13:50                   ` Jeffrey Laramie
2003-11-21 14:06                     ` Nick
2003-11-21 14:11                     ` Antony Stone
2003-11-20 22:18   ` Nick

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=20031120200125.90105.qmail@web40806.mail.yahoo.com \
    --to=fenderflames@yahoo.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