* nat and slow ftp
@ 2005-06-12 11:47 it clown
0 siblings, 0 replies; only message in thread
From: it clown @ 2005-06-12 11:47 UTC (permalink / raw)
To: netfilter
Hi All,
I would like to know if the following is the correct way to
setup my firewall rules to browse the net:
iptables -A OUTPUT -p tcp -o ppp0 --dport 53 -j ACCEPT
iptables -A OUTPUT -p udp -o ppp0 --dport 53 -j ACCEPT
iptables -A OUTPUT -p tcp -o ppp0 --dport 80 -j ACCEPT
iptables -A OUTPUT -p tcp -o ppp0 --dport 20 -j ACCEPT
iptables -A OUTPUT -p tcp -o ppp0 --dport 21 -j ACCEPT
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j
ACCEPT
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
I am using this with squid and it is working.
Is that a good way of doing things? I am nating the ports
right?
What i find is that when i browse ftp site they take ages
to display the contents. Why is this happening and i did
load ip_nat_ftp and iptables_nat.
But when i setup a forward rule for ftp it will connect
nice and quick.
Thanks
Regards
_____________________________________________________________________
For super low premiums, click here http://www.dialdirect.co.za/quote
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-06-12 11:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-12 11:47 nat and slow ftp it clown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox