mudfish Posted March 23, 2007 Report Share Posted March 23, 2007 hello everyone.. what is the command to forward port 21(ftp) request to 192.168.x.xx(this acts as a ftp server) in my linux gateway.i am using mandrake 10.can anybody pls help me.i cannot connect to my ftp server when i try to access it outside. :unsure: Quote Link to comment Share on other sites More sharing options...
Soka Posted March 23, 2007 Report Share Posted March 23, 2007 You have to add a rule in your firewall to forward that port using DNAT. For example with iptables add the following line to your firewall script. iptables -t nat -I PREROUTING -p tcp -i eth0(external interface) --dport 21 -j DNAT --to 192.168.x.xxx:21 Quote Link to comment Share on other sites More sharing options...
mudfish Posted March 24, 2007 Author Report Share Posted March 24, 2007 soka, thank you very much for the reply.i would be testing that out soon and tell you if it is works..thanks again. :) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.