Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How do I NAT http requests to my FW?

linuxguy at 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

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

BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!

Boston Linux & Unix /