LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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
 
LinkBack Search this Thread
Old 08-09-2007, 08:14 PM   #1
aswinkillua_z
LQ Newbie
 
Registered: May 2007
Location: jakarta
Distribution: OpenSuse 10.1
Posts: 8

Rep: Reputation: 0
Transparent proxy on opensuse


i have problem in configuring Transparent Proxy on OpenSuse 10.2. i have input the script
but there is nothing happen ...................
my manual proxy is working but ....... the transparent still dead .........

this the example :

http_port 3128
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
httpd_accel_host virtual #### This The Script of transparent
httpd_accel_port 80 #### Proxy
httpd_accel_with_proxy on ####
httpd_accel_uses_host_header on ####
ipcache_size 2048
ipcache_low 98
ipcache_high 99
cache_mem 32 MB
cache_dir aufs /var/cache/squid/ 6000 14 256
cache_access_log /var/log/squid/access.log
cache_store_log /var/log/squid/store.log
cache_log /var/log/squid/cache.log
cache_replacement_policy GDSF
cache_swap_high 100%
cache_swap_low 80%
negative_ttl 2 minutes
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 smkn26 src 192.168.0.0/32
acl SERVER src 192.168.0.1-192.168.0.4/32
acl KKPI src 192.168.0.20-192.168.0.23/32
acl userKKPI src 192.168.0.240-192.168.0.250/32
acl kantor src 192.168.0.30-192.168.0.35/32
acl MO src 192.168.0.51/32
acl ELEKTRO src 192.168.0.10-192.168.0.19/32
acl E4 src 192.168.0.110-192.168.0.120/32
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
http_access allow manager
http_access allow localhost
http_access deny smkn26
http_access allow KKPI
http_access allow userKKPI
http_access allow kantor
http_access allow MO
http_access allow ELEKTRO
http_access allow E4
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny all
http_access_reply allow all
icp_access allow all
reply_body_max_size 0 allow KKPI
reply_body_max_size 0 allow MO
reply_body_max_size 0 allow smkn26
reply_body_max_size 0 allow kantor
reply_body_max_size 0 allow ELEKTRO
reply_body_max_size 0 allow userKKPI


and for the iptables this the script:

IPTABLES -t nat -A PREROUTING -s 192.168.0.0/32 -d 0/0 -p tcp --dport 80 -j REDIRECT --to-port 3128
IPTABLES -t nat -A PREROUTING -s 192.168.0.0/32 -d 0/0 -p udp --dport 80 -j REDIRECT --to-port 3128


but i still can't use the transparent proxy :

if i restart the service the problem will occur :

Shutting down WWW-proxy squid 2007/08/10 08:12:27| parseConfigFile: line 5 unrecognized: 'httpd_accel_host virtual'
2007/08/10 08:12:27| parseConfigFile: line 6 unrecognized: 'httpd_accel_port 80'
2007/08/10 08:12:27| parseConfigFile: line 7 unrecognized: 'httpd_accel_with_proxy on'
2007/08/10 08:12:27| parseConfigFile: line 8 unrecognized: 'httpd_accel_uses_host_header on'
2007/08/10 08:12:27| parseConfigFile: line 59 unrecognized: 'http_access_reply allow all'

May i have the answer from you ALL

please for your guidance
 
Old 08-11-2007, 09:02 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 9,603

Rep: Reputation: 1000Reputation: 1000Reputation: 1000Reputation: 1000Reputation: 1000Reputation: 1000Reputation: 1000Reputation: 1000
In newer versions of squid the various "httpd_accel_*" are not longer used for configuring a transparent proxy. Instead you should use just:
Code:
http_port 3128 transparent
 
Old 09-03-2007, 08:27 PM   #3
gr8scot
Member
 
Registered: Jun 2007
Distribution: Debian
Posts: 73

Rep: Reputation: 16
Red face I have the same problem, 'transparent' doesn't solve it

Quote:
Originally Posted by bathory View Post
In newer versions of squid the various "httpd_accel_*" are not longer used for configuring a transparent proxy. Instead you should use just:
Code:
http_port 3128 transparent
I have one machine that is running both squid & iptables. On that machine, I can browse the web, either setting browsers to 'direct connection' or using proxy, lan.ip.0.0:3128. But, other computers connected to lan.ip.0.0:80 cannot establish internet connections. I'm using the same iptables syntax exactly, and squid does not seem to be doing any work for computers networked to it. I have added the 'transparent' line to squid.conf and even added a second line that also doesn't help,

http_port 80 transparent

So far, the only way I've gotten internet connectivity on the LAN is by using FORWARD rules in iptables, which really defeats the purpose I intended for squid/squidGuard, which is content filtering by URI.

Thanks in advance.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
transparent proxy? ikinnu Linux - Software 1 07-27-2007 06:55 AM
Transparent Proxy csdhiman Linux - Server 4 07-18-2007 07:34 AM
About Transparent proxy shipon_97 Linux - Networking 1 04-19-2006 02:29 PM
transparent proxy tsaravan Linux - Newbie 3 01-11-2006 01:15 PM
transparent proxy mattsthe2 Linux - Networking 9 10-26-2005 08:44 AM


All times are GMT -5. The time now is 10:02 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration