All of lore.kernel.org
 help / color / mirror / Atom feed
* FORWARD question
@ 2003-11-20 20:27 Nick
  2003-11-20 20:51 ` Antony Stone
  0 siblings, 1 reply; 17+ messages in thread
From: Nick @ 2003-11-20 20:27 UTC (permalink / raw)
  To: netfilter

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/


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

end of thread, other threads:[~2003-11-21 16:44 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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-21 16:19                       ` redirect squid to other proxy(windows) hearing in port 80 Guillermo
2003-11-21 16:43                         ` Antony Stone
2003-11-21 16:44                         ` Antony Stone
2003-11-20 22:18   ` FORWARD question Nick

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.