From: Mark Anacker <manacker@lot66.com>
To: Todd Landfried <tlandfried@hotmail.com>
Cc: netfilter@lists.netfilter.org
Subject: Re: How to redirect browsers with static proxy settings in iptables?
Date: Thu, 22 Jul 2004 16:05:04 -0700 [thread overview]
Message-ID: <41004820.9010807@lot66.com> (raw)
In-Reply-To: <BAY2-F17K8rBKXGA7zy0000775f@hotmail.com>
How about:
iptables -t nat -A PREROUTING -i eth1 -p tcp -d 68.152.65.65 --dport 80
-j REDIRECT --to-port 80
You might need to change the "--to-port 80" to "--to-port 8080" if you
have Squid on that port.
Todd Landfried wrote:
> I'm new to this firewall stuff, so any assistance would be greatly
> appreciated. I've RTFM as much as I can, but nothing seems to fit this
> situation exactly. Maybe I'm not asking the questions correctly in Google.
>
> I have a Linux 7.3 (2.4.20-28) server with two NICs. One is eth0 and
> connects to the router. The other is eth1 and connects to the switch
> that connect the computers in the house. We have a couple of laptops
> that have to have static proxy settings in the browser for work, but
> it's a royal pain to have to go and unclick the "use proxy" settings all
> the time. I'm being pressured to find a solution--if you know what I mean.
>
> Let's say the proxy settings are:
>
> IP: 68.152.65.65
> Port: 80
>
> Let's say the internal network is 10.1.0.x. I've also installed squid
> (2.4.stable6) and I think I have that correct, but it's not working. I
> may be missing some component, but I'm not sure.
>
> How do I create a rule that will route the browser traffic through the
> linux box without having to uncheck the silly checkbox everytime she
> comes home?
>
> Any solution or guidance would be appreciated.
>
> Thnks
>
> Todd
>
--
Mark Anacker
Chameleon Technology, Inc.
next prev parent reply other threads:[~2004-07-22 23:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-22 21:48 How to redirect browsers with static proxy settings in iptables? Todd Landfried
2004-07-22 23:05 ` Mark Anacker [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-07-25 13:00 Todd Landfried
2004-07-25 13:24 ` Antony Stone
2004-07-25 17:35 ` Todd Landfried
2004-07-25 17:47 ` Antony Stone
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=41004820.9010807@lot66.com \
--to=manacker@lot66.com \
--cc=netfilter@lists.netfilter.org \
--cc=tlandfried@hotmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox