moving the ftp port
M.W. Chang
mwchang
Mon May 17 12:00:57 PDT 2004
> Normally, the daemon determines the port numbers
> by looking in /etc/services for "ftp" and "ftp-data". If
> there is no /etc/services entry for "ftp-data" and the
> P option is not specified, the daemon uses the port just
> prior to the control connection port. The p option is
> only available if running as a standalone daemon.
This is waht I got if I tried `ftp localhost 5052` at localhost:
tcp 0 0 0.0.0.0:5052 0.0.0.0:*
LISTEN -
tcp 0 0 127.0.0.1:6542 127.0.0.1:5052
ESTABLISHED 8815/ftp
tcp 0 0 127.0.0.1:5051 127.0.0.1:6543
TIME_WAIT -
tcp 0 0 127.0.0.1:5052 127.0.0.1:6542
ESTABLISHED -
tcp 36 0 192.168.2.1:5050 192.168.2.2:1037
ESTABLISHED -
I supposed proftpd was smart enough to always use 5052-1 as the data
port if the control port was set at 5052. hmm... but it failed when I
tried it at remote hosts as Kurt proved. I will modify the 2 entries in
/etc/services....
--
.~. http://toylet.homeip.net
/ v \ Linux 2.4.22-xfs
/( _ )\ 7:52pm up 4 days 12:06
^ ^ load average: 1.01 0.99 0.91
More information about the Linux-users
mailing list