1837257 Members
2426 Online
110115 Solutions
New Discussion

FTP

 
SOLVED
Go to solution
Nobody's Hero
Valued Contributor

FTP

Is there any way to force ftp to use port 80?
UNIX IS GOOD
2 REPLIES 2
Steven E. Protter
Exalted Contributor

Re: FTP

I believe with ipfilters you could forward all incoming port 21(ftp) connections to port 80. You'd also have to do something to the ftpd server, and that depends on which server you are using.

This might interfere with correct operation of your httpd server.

http://software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B9901AA

Port forwarding is easy with iptables for Linux. I WISH HP would port it.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Sridhar Bhaskarla
Honored Contributor
Solution

Re: FTP

Hi,

Yes. Change /etc/services file. Comment out http that is listed with 80 (only to avoid duplicate entries) and change ftp from 21 to 80. Restart inetd with inetd -c. You should see ftp (control) listening at port 80. Try

#ftp localhost

However, you will need to change the service lookup file on the client to point ftp to 80 there too. Otherwise the client will try to connect at port 21 and will get a connection refused message.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try