nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Hotmail/gmail login problem - Squid Transparent Proxy

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 ...


Go Back   nixCraft Linux Forum > Linux Distribution > CentOS / RHEL / Fedora

Linux answers from nixCraft.


CentOS / RHEL / Fedora Discussion about Redhat Enterprise Linux or CentOS or Fedora Linux related problems.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-03-2009, 09:43 PM
Junior Member
User
 
Join Date: Feb 2009
OS: CentOS
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Cyborg_sa is on a distinguished road
Send a message via MSN to Cyborg_sa
Default Hotmail/gmail login problem - Squid Transparent Proxy

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 script
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
I m having problem accessing hotmail, gmail, yahoo mail as well as any other https based site.

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
A few days ago, I tried the same setup at a school and the same problem occurred but the problem was solved by allowing !Safe_ports and CONNECT !SSL_ports.

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?
Reply With Quote
  #2 (permalink)  
Old 04-03-2009, 03:42 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 245 Times in 184 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Do you see any error or warning message in squid log files?
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
  #3 (permalink)  
Old 04-03-2009, 06:16 PM
Junior Member
User
 
Join Date: Feb 2009
OS: CentOS
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Cyborg_sa is on a distinguished road
Send a message via MSN to Cyborg_sa
Default

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.
Reply With Quote
  #4 (permalink)  
Old 03-04-2009, 01:16 AM
Junior Member
User
 
Join Date: Apr 2009
OS: PCLinux2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
yoda is on a distinguished road
Default

#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.
Reply With Quote
  #5 (permalink)  
Old 03-04-2009, 01:26 AM
Junior Member
User
 
Join Date: Apr 2009
OS: PCLinux2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
yoda is on a distinguished road
Default

#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 !
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

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


All times are GMT +5.5. The time now is 09:37 PM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38