SLUG Mailing List Archives
Re: [SLUG] blocking port 80 on firewall.
- To: slug@xxxxxxxxxxx
- Subject: Re: [SLUG] blocking port 80 on firewall.
- From: Grant Parnell <gripz@xxxxxxxxxxx>
- Date: Wed, 12 May 2004 18:45:58 +1000 (EST)
On Sun, 2 May 2004, Mary Gardiner wrote:
> On Sun, May 02, 2004, Keith Hopkins wrote:
> > Instead of blocking port 80, you could also consider redirecting it
> > to the port used by squid.
> Or possibly put up a minimal web-page using one of the minimalist
> servers, that explains how to turn the proxy on. That's halfway between
That's a cool idea... here's an extension of that. Basically if they
haven't got their proxy setup it flips them to a web page that tells them
how to do so. Also... it's scary but you might be able to automatically
I've missed the thread a bit here so I'll just define what I don't know.
Server's LAN IP=192.168.1.1
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 \
-j DNAT --to-destination 192.168.1.1:81
Apache virtual host
Redirect / http://intranet_web_server/setup/proxy_howto.php
if (preg_match ("/mozilla/i", $_SERVER["HTTP_USER_AGENT"))
# how to setup mozilla page
elsif (preg_match ("/IE5/i", $_SERVER["HTTP_USER_AGENT"))
# how to setup IE5
# generic browser howto
Electronic Hobbyist, Former Arcadia BBS nut, Occasional nudist,
Linux Guru, SLUG Secretary, AUUG and Linux Australia member, Sydney
Flashmobber, Tenpin Bowler, BMX rider, Walker, Raver & rave music
lover, Big kid that refuses to grow up. I'd make a good family pet,
take me home today!
Some people actually read these things it seems.