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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Issues forwording ports, Mandrake 7.2

Status
Not open for further replies.

dr486

Programmer
Jan 9, 2002
105
AU
Ive been trying to forward port 80 from my linux box to my Win 2000 Server running IIS...ive been through pages of docs gathered at linuxorg.com and am very comfortable with the concepts...putting this into practice is another story...Ive been trying to configure it using IPChains...is this what i should be doing with Mandrake 7.2
 
It depends it on the kernel you are using. If you are using Kernel 2.2 you could try something like this:

LINUX="whatever your external ip is or the one your linux machine listens on"
WINDOWS="the internal ip of your windows machine"

ipmasqadm portfw -a -P tcp -L $LINUX 80 -R $WINDOWS 80

on the 2.4 kernel using iptables you would do it something like this:

INTERNAL_IFACE="This is the internal interface, example eth0"
iptables -t nat -A PREROUTING -s 0/0 -p tcp --dport 80 -i $INTERNAL_IFACE -j DNAT \
--to-destination $WINDOWS:80

John D. Saucier
jsauce@magicguild.com
Certified Technician
Network Administrator
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top