* redirect port 80 to 8080 for single PC
@ 2005-09-24 10:59 LinuxMurah.com
2005-09-24 11:34 ` Filip Sneppe
0 siblings, 1 reply; 2+ messages in thread
From: LinuxMurah.com @ 2005-09-24 10:59 UTC (permalink / raw)
To: netfilter
dear friends,
I have a LTSP server which running squid also. what I
want is all user, including root on LTSP server must
use proxy server, if not they won't be able to connect
to internet.
on my LTSP server there are 2 network cards, eth0
which connected to LTSP network and eth1 which
connected to ADSL modem.
just realize that all LTSP client actually is same as
user in LTSP server itself.
so, basicly all http request in port 80 generated by
local user not by LTSP client.
now how to redirect this port 80 request from local
user to SQUID proxy server with port 8080.
I've try transparant proxy:
iptables -t nat -A PREROUTING -i eth1 -p tcp -dport 80
-j REDIRECT --to-port 8080
but still failure, I mean all user still can access
internet without proxy.
please help me. thanks.
LinuxMurah.com
dealer distro murah & lengkap
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: redirect port 80 to 8080 for single PC
2005-09-24 10:59 redirect port 80 to 8080 for single PC LinuxMurah.com
@ 2005-09-24 11:34 ` Filip Sneppe
0 siblings, 0 replies; 2+ messages in thread
From: Filip Sneppe @ 2005-09-24 11:34 UTC (permalink / raw)
To: LinuxMurah.com; +Cc: netfilter
Hi,
On 9/24/05, LinuxMurah.com <linux_murah@yahoo.com> wrote:
>
> now how to redirect this port 80 request from local
> user to SQUID proxy server with port 8080.
>
> I've try transparant proxy:
>
> iptables -t nat -A PREROUTING -i eth1 -p tcp -dport 80
> -j REDIRECT --to-port 8080
>
> but still failure, I mean all user still can access
> internet without proxy.
>
Well, if the rule should work for local users, then
you should use "-A OUTPUT" instead of "-A PREROUTING".
Also, the input interface will not work with "-A OUTPUT",
so if you want to specify an interface, add the outgoing
interface with "-o eth0". That should do the trick.
Regards,
Filip
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-09-24 11:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-24 10:59 redirect port 80 to 8080 for single PC LinuxMurah.com
2005-09-24 11:34 ` Filip Sneppe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox