How do I NAT http requests to my FW?

Ron Peterson rpeterson at yellowbank.com
Thu May 25 10:37:50 EDT 2000


linuxguy at ici.net wrote:
> 
> greetings,
> 
> I want to temporarily allow http traffic to my cable-modem firewall from
> the internet so I can demo a new PHP applet of mine.
> 
> I don't want to run waste any effort installing & configuring Apache
> on the FW, so I want to forward the requests to an internal web server...
> 
> I'm using RH 6.1/Sparc with ipchains on the FW.

I have no Sparc experience, but I believe this should do the trick:

/usr/sbin/ipmasqadm portfw -a -P tcp -L <external ip address> 80 -R
<internal ip address> 80

Do same thing for port 443 if you need https.

Of course you'll need to allow http traffic through your firewall as
well, which I assume you probably already do, unless you never use the
Internet.

-Ron-
-
Subcription/unsubscription/info requests: send e-mail with
"subscribe", "unsubscribe", or "info" on the first line of the
message body to discuss-request at blu.org (Subject line is ignored).



More information about the Discuss mailing list