# The ftp nat module is required for non-PASV ftp support
/sbin/modprobe ip_nat_ftp

# the module for full ftp connection tracking
/sbin/modprobe ip_conntrack_ftp

iptables -A tcp_inbound -p TCP -s 0/0 --destination-port 21 -j ACCEPT
iptables -A tcp_inbound -p TCP -s 0/0 --destination-port 20 -j ACCEPT

cred :)

----- Original Message ----- 
From: "andy.rlug andy.rlug" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 28, 2003 2:26 PM
Subject: [rlug] am facut NAT si nu mai merge clientul de ftp!!!


> Hello rlug,
> 
>   am un servar linux redhat 7.2 cu iptables si am facut nat:
> 
>   iptables -F
>   iptables -t nat -F
>   iptables -t mangle -F
>    echo 1 > /proc/sys/net/ipv4/ip_forward
>   iptables -t nat -A POSTROUTING -s 192.168.0.5 -o eth0 -j SNAT --to
>   xxx.xxx.xxx.xxx
> 
>   browsing-ul pe net merge
>   dar acum daca incerc sa ma conectez la un servar de ftp(
>   ftp://ftp.linux.ro) nu merge!
>   de ce?
> 
>   
> 
> -- 
> Best regards,
>  andy.rlug                          mailto:[EMAIL PROTECTED]
> 
> 
> 
> ----
> 
> Home, no matter how far...
> http://www.home.ro
> 
> --- 
> Detalii despre listele noastre de mail: http://www.lug.ro/
> 


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.522 / Virus Database: 320 - Release Date: 29.09.2003

--- 
Detalii despre listele noastre de mail: http://www.lug.ro/


Raspunde prin e-mail lui