Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Port Forwarding

Status
Not open for further replies.

HKNinja

MIS
Nov 17, 2002
148
0
0
US
Hi,

I got a port forwarding problem here with my Linux server. Here is the setting, the Linux server is our company's Internet gateway and all other workstations are behind it. Now, I need to forward a couple of ports to one of our Mac server so users can connect to the Mac server via Internet. What is the best way to do it and how? Many thanks!

- Harry
 
Assuming you're running iptables, you'll want to append a rule like this to your firewall:

iptables -A PREROUTING -t nat -p tcp -d <IP ADDRESS OF YOUR EXTERNAL INTERFACE> --dport <EXTERNAL PORT> -j DNAT --to <IP ADDRESS OF MACHINE ON LAN>:<DESTINATION PORT>


 
No, I am not running IPtabls. I'm running a Mandrake 7.2 Linux and I suspected that I should be using the ipchains to do that. Any more suggestion?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top