Linux / UNIX Tech Support Forum
This is a discussion on Hotmail/gmail login problem - Squid Transparent Proxy within the CentOS / RHEL / Fedora forums, part of the Linux Distribution category; I have configured transparent proxy using the following guide Code: http://www.cyberciti.biz/tips/linux-setup-transparent-proxy-squid-howto.html and added only the rules below to a startup ...
|
|||||||
| CentOS / RHEL / Fedora Discussion about Redhat Enterprise Linux or CentOS or Fedora Linux related problems. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I have configured transparent proxy using the following guide
Code:
http://www.cyberciti.biz/tips/linux-setup-transparent-proxy-squid-howto.html Code:
iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j DNAT --to 192.168.15.3:3128 iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128 here is my squid configuration: Code:
http_port 3128 transparent acl all src 0.0.0.0/0.0.0.0 acl manager proto cache_object acl localhost src 127.0.0.1/255.255.255.255 acl to_localhost dst 127.0.0.0/8 acl vmware-network src 192.168.15.3 192.168.85.0/24 acl SSL_ports port 443 acl Safe_ports port 80 # http acl Safe_ports port 21 # ftp acl Safe_ports port 443 # https acl Safe_ports port 70 # gopher acl Safe_ports port 210 # wais acl Safe_ports port 1025-65535 # unregistered ports acl Safe_ports port 280 # http-mgmt acl Safe_ports port 488 # gss-http acl Safe_ports port 591 # filemaker acl Safe_ports port 777 # multiling http http_access allow manager localhost http_access deny manager http_access allow vmware-network http_access deny !Safe_ports http_access deny CONNECT !SSL_ports http_access allow localhost http_access deny all I tried this on my network but it does not work however, When I configure my browsers (IE 7 and Firefox) to use the proxy server, the problem does not occur at all. Is there a mistake in my configuration or the iptables rules? |
| Sponsored Links | ||
|
|
|
||||
|
Do you see any error or warning message in squid log files?
__________________
Vivek Gite Linux Evangelist |
|
|||
|
Nothing, no error in squid log files. But when I set the proxy address and port in the browser everything works fine, no problem in accessing hotmail, gmail, yahoo mail etc.
[EDIT] 1 more thing, I have installed DHCP service and webmin on that server and use it as a gateway. I cannot access webmin through the proxy on that server. Last edited by Cyborg_sa; 04-03-2009 at 06:22 PM. |
|
|||
|
#open webmin port
iptables -A INPUT -p tcp -m tcp --dport 10000 -j ACCEPT #or, if rule above doesn't work # Unlimited access to loop back iptables -A INPUT -i lo -j ACCEPT iptables -A OUTPUT -o lo -j ACCEPT #and, finally # unlimited access to LAN iptables -A INPUT -i $LAN_IN -j ACCEPT iptables -A OUTPUT -o $LAN_IN -j ACCEPT Second , remember that you cannot access any https pages via transparent proxy because squid cannot cache secure pages If you don't have content filtering and/or bandwidth limiters in squid i sugest to use as "transparent proxy" a simple gateway with NAT: # set this system as a router for Rest of LAN iptables --table nat --append POSTROUTING --out-interface $INTERNET -j MASQUERADE iptables --append FORWARD --in-interface $LAN_IN -j ACCEPT hope it helps ! Last edited by yoda; 03-04-2009 at 01:22 AM. |
|
|||
|
#open webmin port
iptables -A INPUT -p tcp -m tcp --dport 10000 -j ACCEPT #or, if rule above doesn't work # Unlimited access to loop back iptables -A INPUT -i lo -j ACCEPT iptables -A OUTPUT -o lo -j ACCEPT #and, finally # unlimited access to LAN iptables -A INPUT -i $LAN_IN -j ACCEPT iptables -A OUTPUT -o $LAN_IN -j ACCEPT Second , remember that you cannot access any https pages via transparent proxy because squid can not cache secure pages If you don't have content filtering and/or bandwidth limiters in squid i sugest to use as "transparent proxy" a simple gateway with NAT: # set this system as a router for Rest of LAN iptables --table nat --append POSTROUTING --out-interface $INTERNET -j MASQUERADE iptables --append FORWARD --in-interface $LAN_IN -j ACCEPT hope it helps ! |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Hotmail email problem with Squid on RHEL-4 | ifti | Proxy Servers | 5 | 04-12-2009 10:46 PM |
| Squid proxy transparent | xoroz | Linux software | 1 | 02-12-2008 07:51 PM |
| How to Squid 2.6 transparent proxy? | alex.inoa | Networking, Firewalls and Security | 5 | 30-10-2007 03:41 AM |
| Outlook with Squid transparent Proxy | bubloob_13 | Networking, Firewalls and Security | 0 | 16-09-2007 02:37 PM |
| Problem blocking file ext downloads from Gmail in squid | Roshu | Networking, Firewalls and Security | 1 | 24-08-2007 11:21 PM |