LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-21-2007, 10:56 AM   #1
ginda
Member
 
Registered: Mar 2004
Distribution: SUSE8.2, 9.2, Knoppix
Posts: 323

Rep: Reputation: 31
Squid not accepting users from a VPN dial subnet


I am running a red hat es3 server which is running Squid Cache: Version 2.5.STABLE6

I have a group of users who are dialing into our vpn server and are given an ip of 10.16.96* these users can ping the proxy server and get prompted for the password but the proxy server does not accept their passwords.

Our config is:

hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
cache_dir ufs /logs/squidora 7168 16 256
cache_access_log /var/log/squidora/access.log
cache_log /var/log/squidora/cache.log
pid_filename /var/run/squidora.pid
cache_store_log none
auth_param basic children 5
auth_param basic realm squid-home2
auth_param basic credentialsttl 2 hour
auth_param basic casesensitive off
auth_param basic program //usr/lib/squid/ncsa_auth /etc/squid.passwd
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
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 SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
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
acl CONNECT method CONNECT
acl Oracle url_regex .oracle.com .oracleoutsourcing.com
acl cporacleps src 10.15.2.36/255.255.255.255
acl Clients src 10.16.90.0-10.16.90.255/255.255.255.255 10.16.91.0-10.16.91.255/255.255.255.255 10.16.92.0-10.16.92.255/255.255.255.255 10.16.96.0-10.16.96.255/255.255.255.255
acl vpnusers src 10.16.96.0-10.16.96.255/255.255.255.255
acl Admin src 10.16.91.101/255.255.255.255 10.16.91.99/255.255.255.255 10.16.90.122/255.255.255.255
acl Users proxy_auth "/etc/squid.passwd"
acl Safe_ports port # multiling cups 631
acl UnBlock url_regex "/etc/squid/unblock.txt"
acl PublicAccess url_regex "/etc/squid/public_access.txt"
acl Block url_regex "/etc/squid/block_less.txt"
acl Safe_ports port 25 110
acl group1 src 172.16.0.0-172.16.254.254/255.255.255.0
no_cache deny QUERY
http_access allow Admin
http_access allow PublicAccess
http_access deny Block !UnBlock
http_access allow Users
http_access allow vpnusers
http_access allow cporacleps
http_access allow Clients
http_access allow washrooms
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access deny all
http_reply_access allow all
icp_access allow all
cache_effective_user squid
cache_effective_group squid
visible_hostname blah.blah.com
http_port 80
http_port 127.0.0.1:80
coredump_dir /var/spool/squid
deny_info ERR_ACCESS_DENIED Oracle
deny_info ERR_ACCESS_DENIED Clients
deny_info ERR_ACCESS_DENIED vpnusers
deny_info ERR_ACCESS_DENIED Users
deny_info ERR_ACCESS_DENIED UnBlock
deny_info ERR_ACCESS_DENIED PublicAccess
deny_info ERR_ACCESS_DENIED Admin
deny_info ERR_ACCESS_DENIED Block


Any ideas why they cant login.

Thanks in advance.
 
Old 05-22-2007, 03:39 AM   #2
ginda
Member
 
Registered: Mar 2004
Distribution: SUSE8.2, 9.2, Knoppix
Posts: 323

Original Poster
Rep: Reputation: 31
getting this in access.log


1179823107.054 4 10.16.96.93 TCP_DENIED/407 1404 GET http://www.go.com/ - NONE/- text/html
 
Old 05-22-2007, 05:12 AM   #3
yongitz
Member
 
Registered: Nov 2005
Location: Davao City, Philippines
Distribution: RHEL, CentOS, Ubuntu, Mint
Posts: 139

Rep: Reputation: 20
Hi! I guess it's a subnet issue. I guess your local machines(same subnet with your proxy) do get same error when using the proxy server.

The line below as well as the others stated above is not valid
acl vpnusers src 10.16.96.0-10.16.96.255/255.255.255.255

What type of network class is that? The mask 255.255.255.255 makes it invalid as far as I know.. Correct me people if I am wrong..
 
Old 05-24-2007, 03:32 AM   #4
p_s_shah
Member
 
Registered: Mar 2005
Location: India
Distribution: RHEL 3/4, Solaris 8/9/10, Fedora 4/8, Redhat Linux 9
Posts: 237
Blog Entries: 1

Rep: Reputation: 34
Agreed with yongitz....

I am using mostly same configuration. Just my VPN network is 192.168.0.0/24, means Total 255 Ips [ 192.168.0.1-192.168.0.255 ].

Snipplet from squid.conf :
-----------------------------------------
# acl aclname src ip-address/netmask ... (clients IP address)
# acl aclname src addr1-addr2/netmask ... (range of addresses)
acl our_networks src 192.168.0.0/24
http_access allow our_networks

-----------------------------------------

Its working perfectly fine for me.

Please check subnet mask option again.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
no outgoing ssh connection in subnet with shorewall/squid linux_marine Linux - Networking 2 11-21-2006 02:30 PM
VPN Firewall with multiple subnet masks CJ_Grobler Linux - Security 1 05-26-2005 03:47 PM
squid and dial up------ pal Linux - Networking 2 05-08-2005 08:32 AM
squid feeding 2 subnet varun_saa Mandriva 1 02-07-2005 06:48 PM
vpn only when destination matches given subnet colin.mca Linux - Networking 0 03-18-2004 03:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration