Jump to content

how do I port forward?


mudfish
 Share

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...