Mike,

It seems to me that you forgot your FTP_DATA (port 20) DNAT rules.

A.M. Rensen



                                                                                       
                              
                    "Mike"                                                             
                              
                    <[EMAIL PROTECTED]>          To:     "Netfilter all list member" 
<[EMAIL PROTECTED]>     
                    Sent by:                     cc:                                   
                              
                    netfilter-admin@lists        Subject:     --I have problem with 
NAT FTP to unprivport ---        
                    .samba.org                                                         
                              
                                                                                       
                              
                                                                                       
                              
                    18-03-2002 14:16                                                   
                              
                                                                                       
                              
                                                                                       
                              



Hi all!
I have linux box RH7.2 with kernel 2.4.9-31 and iptables 1.2.4
I need SNAT for FTP to remote FTP server to unprivport 5761
I've defined the following rule set
$IPTABLES -P INPUT ACCEPT
$IPTABLES -P OUTPUT ACCEPT
$IPTABLES -P FORWARD ACCEPT

$IPTABLES -t nat -A POSTROUTING -o $EXT_IF -p tcp \
        -s 192.168.0.0/24 \
        -d $IPADDR_REMOTE_FTP_SERVER --dport 5761 \
        -j SNAT --to-source $REAL_EXT_IPADDR

Authentication is going done But I can't established connection
What I do wrong?

Thanks all
Mike
(Sorry for my english)





Reply via email to