Hi,
Try,
$IPTABLES -t nat -A PREROUTING -i $LAN_IFACE -p tcp --dport 80 -j
REDIRECT --to-port 3128
Hope that helps.
On Sat, 2002-11-23 at 04:04, Ina Patricia Lopez wrote:
> hi!
> im want to enable transparent proxy using squid-2.5.STABLE1 on redhat
> 7.2. I got ipchains and masquerading working fine but if i redirect
> http traffic to port 3128, its not working. if i manually set proxy
> settings on the browser, its working also.
>
> thanks,
> ina
>
> rc.firewall:
> /sbin/ipchains -P forward DENY
> /sbin/ipchains -A forward -i eth0 -j MASQ
> /sbin/ipchains -A input -j ACCEPT -s localhost/32 -d localhost/32
> /sbin/ipchains -A input -p tcp -d 0/0 80 -j REDIRECT 3128
>
> squid.conf:
> http_port 3128
> httpd_accel_host virtual
> httpd_accel_port 80
> httpd_accel_with_proxy on
> httpd_accel_uses_host_header on
>
>
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus � Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
> _
> Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
> To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]
>
> Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph
>
> To subscribe to the Linux Newbies' List: send "subscribe" in the body to
>[EMAIL PROTECTED]
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]
Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph
To subscribe to the Linux Newbies' List: send "subscribe" in the body to
[EMAIL PROTECTED]