From: Amos Jeffries <squid3@treenet.co.nz>
To: netfilter@vger.kernel.org
Subject: Re: Redirect outgoing traffic
Date: Sat, 22 Sep 2007 13:59:11 +1200 [thread overview]
Message-ID: <46F476EF.9070909@treenet.co.nz> (raw)
In-Reply-To: <1108.24.71.32.203.1190422248.squirrel@webmail.sd73.bc.ca>
Dean Montgomery wrote:
> We have a program for that allows teachers to turn off the Internet their
> school classrooms. Thea script shells into each workstations and blocks
> outgoing traffic to any computer port 80, 8080, etc.
>
> This works great. However we would like something more end-user friendly.
>
> I would like to change this so that the outgoing web traffic gets redirected
> to a small web daemon that displays a message "The teacher has turned off the
> internet".
>
> Setting up the web daemon was easy.
>
> However I do not know how to write an iptables firewall rule to redirect all
> outgoing web traffic from the local workstation to a different ip and port.
>
> e.g.
> redirect any outgoing traffic to any ip on port 80,443,3128,8080 -to-
> 192.168.0.1 port 55580
>
> Any ideas?
>
I think you will find it much easier to pass at least each classrooms
traffic through a control point where all the 'fancy' configuration happens.
I'll admit to some bias being a Squid proxy developer. But take a good
look at proxy software in general. They can do so much more for web
traffic control based on many criteria than simple allow/deny at the
firewall.
Amos Jeffries
next prev parent reply other threads:[~2007-09-22 1:59 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-22 0:50 Redirect outgoing traffic Dean Montgomery
2007-09-22 1:59 ` Amos Jeffries [this message]
2007-09-24 22:32 ` Dean Montgomery
2007-09-25 0:01 ` Martijn Lievaart
2007-09-26 23:46 ` Dean Montgomery
2007-09-27 7:40 ` Gáspár Lajos
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46F476EF.9070909@treenet.co.nz \
--to=squid3@treenet.co.nz \
--cc=netfilter@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.