How to configure portforwarding ?

Please help me in configuring port forwarding :

what is the information is required for configuring port forwarding ?
how it should be configured under unix?
jaisonshereenAsked:
Who is Participating?
 
ahoffmannCommented:
man iptables

then you can do something like:
iptables -t nat -A PREROUTING  -d 11.22.33.44 --dport 55 -j DNAT --to-destination 42.42.42.42:42
0
 
rslqldCommented:
What sort of port forwarding?

There is SSH port redirection, as above, or is the box a network gateway running ipfw/etc and performing NAT?
0
Network Scalability - Handle Complex Environments

Monitor your entire network from a single platform. Free 30 Day Trial Now!

 
jaisonshereenAuthor Commented:
i dont know anything about port forwarding.....
only thing that i know is to list iptables -L
 
0
 
jaisonshereenAuthor Commented:
what this will do ?
0
 
rslqldCommented:
That will forward port 55 to internal IP 42.42.42.42.42 (5 octet IP, woot...)

Just substitute IPs and ports as needed.
0
 
ahoffmannCommented:
> .. 5 octet IP, woot...
hey rslqld, if you mean my suggestion then either use glasses or a better font ;-)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.