Results 1 to 2 of 2
Thread: Port forwarding, any easy way ?
-
01-31-2003, 07:48 PM #1Newbie
- Join Date
- Dec 2002
- Posts
- 21
Port forwarding, any easy way ?
I've had a search on here & a couple of other forums and have basically come to the conclusion the IPTables are the way to forward ports. I'm not an admin and basically I'm now confused
I want to forward port 115 on the source machine to a remote machine by executing a command on the source machine. And then execute a command to remove the forward (but no others). Tis cpanel/whm redhat & it's for newsgroup gathering.
If somebody knows how to do this, can they let me know.
Thanks in advance.
-
02-01-2003, 02:57 PM #2Web Hosting Guru
- Join Date
- Jan 2003
- Posts
- 261
Port forwarding with IPTables... this is from my fw.sh which you can grab at www.sekure.us
#MASQ FOR INET SHARING
#iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
#PORT FORWARDING to laptop for DCC CHAT/DCC SEND on IRC
#iptables -t nat -A PREROUTING -d 0/0 -p tcp --destination-port 9500:9600 -j DNAT --to 192.168.1.150