Current time: 11-25-2024, 06:59 PM Hello There, Guest! (LoginRegister)


Post Reply 
[Solved] Changigng Filemanager's FTP port?
Author Message
csacsa62 Offline
Newbie
*

Posts: 5
Joined: May 2010
Reputation: 0
Post: #3
RE: Changigng Filemanager's FTP port?
Thank you, Ephigenie!

Might I'm partially blind grep'd through filemanager's includes dir but missed the settings* files under my nose. Smile

I needed a quick 'n dirty solution, and put these lines in /etc/rc.local (supposed high ftp port is 12345):

iptables -t nat -I PREROUTING -p tcp --dport 21 -j REDIRECT --to-ports 12345
iptables -t nat -I OUTPUT -p tcp -d 127.0.0.1 --dport 21 -j REDIRECT --to-ports 12345

It's more secure (for one who is a paranoid like me Smile ) because net2ftp talks with ftp server transparently on localhost port 21 but ftp on all IPs is silently listen on high port.

Cheers,
|:csa:|
05-26-2012 06:56 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Changigng Filemanager's FTP port? - csacsa62 - 05-26-2012 06:56 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)