if you dont have httpd running on your squid-box

iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128

If you have a httpd running on your squid box

iptables -t nat -A PREROUTING -p tcp -d localhost --dport 80 -j ACCEPT
iptables -t nat -A PREROUTING -p tcp -d / --dport 80 -j ACCEPT
iptables -t nat -A PREROUTING -p tcp -s eth1 --dport 80 -j REDIRECT --to-port 3128



On 12/3/2003 2:23 PM, smart penguin wrote:


Hi Guys,

Maybe you can help me with this.

Server = Redhat 9, with squid proxy,(port:3128) eth0="disabled", because it is used for my dsl connection, "im using roaring-penguin"
eth1="192.157.57.5", used for my internal network



##### My squid.conf ########


http_port 192.157.57.5:3128
visible_hostname server
icp_port 0
cache_dir ufs /var/log/squid/squid 1000 16 256

httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on

acl network1 src 192.157.57.0-192.157.57.57/24

forwarded_for off
http_access allow network1
http_access deny all

###### end squid.conf ########

And then i executed this command :

iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j REDIRECT --to-port 3128

HOWEVER, i can't seem to run the transparent proxy.



Any suggestion or solution is highly appreaciated.


jeremy



-- Philippine Linux Users' Group (PLUG) Mailing List [EMAIL PROTECTED] (#PLUG @ irc.free.net.ph) Official Website: http://plug.linux.org.ph Searchable Archives: http://marc.free.net.ph . To leave, go to http://lists.q-linux.com/mailman/listinfo/plug . Are you a Linux newbie? To join the newbie list, go to http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie

Reply via email to