Re: redirection with ipchains

Martin Krzywinski (martink@physics.ubc.ca)
Wed, 1 Sep 1999 08:25:15 -0700 (PDT)


> hii
> We have configurtion.
>
> Internal Gtw Internet
> 192.168.x.x --------202.53.x.x------------------
>
> our web on 192.168.x.x, i want to redirect our official web to that machine
> (192.168.x.x) with ipchains.

Use rinetd. It's a daemon. Then put in /etc/rinetd.conf

202.53.x.x 80 192.168.y.y 80

where .y.y is the local IP extension of your www server. All port 80
requests coming into your gtw will be redirected. The gatway itself can't
be listening to port 80 itself, though, so no httpd:80.

mk

------------------------------------------------------
Certain flaws are necessary for the whole. It would
seem strange if old friends lacked certain quirks.
Goethe
------------------------------------------- 426/1424 -

Martin Krzywinski
System Administrator
Genome Sequence Center
BC Cancer Research Center
601 West 10th Avenue
Vancouver, BC V5Z 1L3
tel: (604) 415-7184
fax: (604) 415-7192
http://www.cigenomics.bc.ca

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.rutgers.edu