running vsftpd on a different port other than default 21? unable to get it working?
Hello all,
I am trying to change the default port on my vsftpd configuration. I tried changing the port but it does not seem to connect to my server. For some reason it is not working. I have added the port in my IPtables. and port forwarded on my ROUTER. Everthing is done correctly. Still, my server is unable to connect using different port, here is my vsftpd.conf file, I am not sure where to change the port? Code:
# Example config file /etc/vsftpd/vsftpd.conf Any help is greatly appreciated. |
How did you change listening port for vsftpd?
can't figure-out the following line in your configuration. Quote:
|
Quote:
# port configure listen_port=port-number but still when I type in the different port number and try to connect via FTP program. I get error message. |
Ok. Can you post the error here? and check vsftpd listening on which port?
Quote:
|
1 Attachment(s)
Quote:
when I run the default port 21, everything works perfectly fine. output of the command, Code:
netstat -pnl | grep vsftpd Code:
timout detected, |
Quote:
|
I assume that you restarted the server once you added the listen_port=1980 in the configuration file.
Can you connect on the server itself? ftp localhost port_number If that does not work is selinux active? You can add the port via the command semanage port -a -t ftp_port_t -p tcp 1980 If you can connect on the PC itself then are you trying to connect using your WAN IP address or the LAN IP address of your server? If using the WAN then try the LAN. If that does not work then you could still have a firewall problem. |
Quote:
|
Ouch... I completely missed that..
|
Quote:
how can I run vsftpd as IPv4? |
Quote:
Yes, I restarted the server. and I have SELinux disabled. I tried using command ftp localhost port number , it tells me command not found. On my windows machine, I am typing in the WINSCP client the LAN IP. 192.168.1.2 --> port 1980 , then I get the error. I have not tried the WAN IP or domain name yet. |
Ftp client is not installed by default. I would install it to make sure you can connect on the computer itself.
|
Quote:
ftp localhost 1980 works perefectly locally on my server machine. Only when I am trying to connect from my windows machine. I am getting error message. |
As unSpawn noticed the server appears to be only listening on ipv6. However according to the documentation it should listen on both since listen_ipv6=YES option is enabled.
However I just checked and with IPV6 enabled I could not connect from a remote PC. So try disabling listen_ipv6 and enable ipv4 i.e. listen=yes. |
If you enable IPv6, there should be two configuration files one for IPv4 and other one for IPv6.
|
All times are GMT -5. The time now is 10:10 PM. |