Niklas Gustavsson wrote:
On Fri, Jan 16, 2009 at 9:10 AM, Niklas Therning <[email protected]> wrote:
Fred Moore wrote:
This is what I do
iptables -t nat -A PREROUTING -p tcp -m tcp --dport 21 -j REDIRECT
--to-ports 60021
This simply fowards all traffic on port 21 to port 60021. No need for my
Java app to run as root or setuid or anything like that.
Would you be able to add this to our wiki, I think it would be
valuable to a lot of users. I can also do it myself but I'm not much
of an iptables expert :-)
/niklas
I've added a page to the Wiki here:
http://cwiki.apache.org/confluence/display/FTPSERVER/FtpServer+and+port+21+on+Linux
I've also added a link to it to the Documentation page.
Please beware that I'm not much of an iptables expert either. So it
would be nice if you guys could have a look and tell me what you think.
--
Niklas Therning
www.spamdrain.net