Linux Netfilter discussions
 help / color / mirror / Atom feed
* FTP and netfilter
@ 2003-04-23 17:46 Matti Luoma
  2003-04-23 18:34 ` Rob Sterenborg
  0 siblings, 1 reply; 3+ messages in thread
From: Matti Luoma @ 2003-04-23 17:46 UTC (permalink / raw)
  To: netfilter

hi!

What kinda lines i need to get FTP working from from LAN, if i use a linux
as gateway machine..

thanx!



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

* RE: FTP and netfilter
  2003-04-23 17:46 FTP and netfilter Matti Luoma
@ 2003-04-23 18:34 ` Rob Sterenborg
  2003-04-24  6:00   ` Rob Sterenborg
  0 siblings, 1 reply; 3+ messages in thread
From: Rob Sterenborg @ 2003-04-23 18:34 UTC (permalink / raw)
  To: 'Matti Luoma', netfilter

> What kinda lines i need to get FTP working from from LAN, if 
> i use a linux as gateway machine..

insmod ip_conntrack_ftp
insmod ip_nat_ftp

iptables -P FORWARD DROP
iptables -A FORWARD -I <eth_lan> -o <eth_inet> -s <net_lan> -j ACCEPT

iptables -t nat -A POSTROUTING -s <net_lan> -o <eth_inet> -j SNAT
--to-destination <ip_inet>
(Or, if you have a dynamic IP or a ppp inet nic :)
iptables -t nat -A POSTROUTING -s <net_lan> -o <eth_inet> -j MASQUERADE


Gr,
Rob



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

* RE: FTP and netfilter
  2003-04-23 18:34 ` Rob Sterenborg
@ 2003-04-24  6:00   ` Rob Sterenborg
  0 siblings, 0 replies; 3+ messages in thread
From: Rob Sterenborg @ 2003-04-24  6:00 UTC (permalink / raw)
  To: netfilter

> iptables -A FORWARD -I <eth_lan> -o <eth_inet> -s <net_lan> -j ACCEPT

Mmm.. That should obviously be -i, not -I.

R.



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

end of thread, other threads:[~2003-04-24  6:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-23 17:46 FTP and netfilter Matti Luoma
2003-04-23 18:34 ` Rob Sterenborg
2003-04-24  6:00   ` Rob Sterenborg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox