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!

ftp server port blocked

Status
Not open for further replies.

keak

Programmer
Sep 12, 2005
247
CA
Hi there,

I am trying to set up a ftp server. I've installed vsftpd, and started the service. When I do a quick scan for ports, it does look like the port is opened:

PORT STATE SERVICE
21/tcp open ftp
22/tcp open ssh
25/tcp open smtp

However, when I try to ping port 21 or 22 from an external host, I am getting timeouts (same goes for ftp client program/IE). The ftp works fine for local machines, so I am pretty sure its blocking the ports somewhere .....


My question is, does anyone know where firewall settings are usually configured on a linux system? and how I can see which ports are blocked by this ....

Thanks

 
How are you "pinging" a port?

Is your network private, or public addressed? If it is privately addressed, do you have a port forwarding rule defined that will allow you to connect to you Linux box?

Firewall configuration depends on your Linux distro. What distro are you running?


pansophic
 
execute
iptables -L
iptables -t nat -L

and post the result.


Cheers

QatQat

Life is what happens when you are making other plans.
 
Typically IPTAbles firewalls need the

ip_conntrack_ftp

for use with NAT and PASV connections.

You may want to "insmod ip_conntrack_ftp" and see if that helps.

D.E.R. Management - IT Project Management Consulting
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top