Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Allow ftp connection

Status
Not open for further replies.

warrenliang

IS-IT--Management
May 3, 2004
117
US
Good afternoon:

On a Redhat Enterprise AS 3 server, firewall is up and running. How to open the firewall up to allow ftp connections from clients to this server?

Thanks.
Warren
 
Don't know if this applies to RHEL, but on FC, you can run setup as root from a console. In the setup menu, go to Firewall Configuration and allow FTP traffic from there.


--== Anything can go wrong. It's just a matter of how far wrong it will go till people think its right. ==--
 
Barring some odd configuration of your existing rules:
Code:
iptables -I INPUT -p tcp -m tcp --dport 21 -j ACCEPT
iptables -I INPUT -p tcp -m tcp --sport 20 --dport 1024:65535 -j ACCEPT
service iptables save

The second line is required for passive ftp transactions.
 
Most redhat implementations also require loadinng the ftp_conntrack module to allow through a firewall, though may only apply to NAT... it's been a while.

D.E.R. Management - IT Project Management Consulting
 
Might need to modify the file in /etc/vsftpd


also run the file /etc/init.d/vsftpd

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top