Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 272
  • Last Modified:

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?
0
jaisonshereen
Asked:
jaisonshereen
  • 2
  • 2
  • 2
  • +1
4 Solutions
 
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
 
jaisonshereenAuthor Commented:
i dont know anything about port forwarding.....
only thing that i know is to list iptables -L
 
0
Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

 
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
 
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.

Join & Write a Comment

Featured Post

What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

  • 2
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now