Skip to contentSkip to conversation

FTP connection without NAT

DISCUSSION Ming-Ching Tiew 3 participants 4 messages Apr 10, 2008

lore
Share & tools
lore
#0 lore raw

I have a firewall/router which is setup to do connection tracking firewalling but does not do NAT. And I would like to house an FTP server inside the firewalled router.

The firewall is setup to do this :-

1. FORWARD rule policy is DROP.
2. Inside can ACCEPT NEW connection to go to outside.
3. ACCEPT established or related connections.
4. FORWARD tcp port 21 from outside to the inside FTP server is ACCEPT.

No PREROUTING DNAT and POSTROUTING SNAT,
since the box does not do NAT.

Will the connection tracking modules help in allowing passive FTP session to get through to the FTP server ?

Any comments ?

#1 lore raw
Quoted 9 lines · Ming-Ching Tiew

1. FORWARD rule policy is DROP.
2. Inside can ACCEPT NEW connection to go to outside.
3. ACCEPT established or related connections.
4. FORWARD tcp port 21 from outside to the inside FTP server is ACCEPT.

Will the connection tracking modules help in allowing passive FTP session to get through to the FTP server ?

Make sure nf_conntrack_ftp is loaded so that RELATED can do its job.

#2 lore raw
Quoted 8 lines · Jan Engelhardt
Quoted 7 lines · Ming-Ching Tiew

1. FORWARD rule policy is DROP.
2. Inside can ACCEPT NEW connection to go to outside.
3. ACCEPT established or related connections.
4. FORWARD tcp port 21 from outside to the inside FTP server is ACCEPT.

Quoted 4 lines
Quoted 2 lines

Will the connection tracking modules help in allowing passive FTP session to get through to the FTP server ?

Make sure nf_conntrack_ftp is loaded so that RELATED can do its job.

Is it necessary to specify the ftp port if it is not port 21 ?

Regards.

#3 lore raw
Quoted 10 lines · Ming-Ching Tiew
Quoted 8 lines · Jan Engelhardt
Quoted 6 lines · Ming-Ching Tiew

1. FORWARD rule policy is DROP.
2. Inside can ACCEPT NEW connection to go to outside.
3. ACCEPT established or related connections.
4. FORWARD tcp port 21 from outside to the inside FTP server is ACCEPT.

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

Will the connection tracking modules help in allowing passive FTP session to get through to the FTP server ?

Make sure nf_conntrack_ftp is loaded so that RELATED can do its job.

Is it necessary to specify the ftp port if it is not port 21 ?

Sadly, yes.

M4