mudfish Posted March 23, 2007 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: Link to comment Share on other sites More sharing options...
Soka Posted March 23, 2007 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 Link to comment Share on other sites More sharing options...
mudfish Posted March 24, 2007 Author 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. :) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now