LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-26-2009, 10:25 AM   #1
wizcrack.fedora
LQ Newbie
 
Registered: Feb 2009
Posts: 20

Rep: Reputation: 0
Question Transparent http proxy config


i am trying to configure a transparent reverse http proxy driven by an IDS and using squid as the proxy server. im new with squid configuration. what are the changes i have to make to the squid.config file?

the proxy has to

1. reroute possible attacks to a given web location
2. give service to authenticated requests.
3. log ip address of the computer that attacks the website.

i am creating a shopping cart website in php but launchin it only on the local LAN and i'm using the mysql database with apache as the web server and snort as the IDS.

here is my squid.conf file... what changes must i do?



http_port 3128
http_port 80 defaultsite=192.168.4.50
cache_peer 192.168.4.1 parent 80 0 no-query originserver
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 # https
acl SSL_ports port 563 # snews
acl SSL_ports port 873 # rsync
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
acl Safe_ports port 631 # cups
acl Safe_ports port 873 # rsync
acl Safe_ports port 901 # SWAT
acl web dstdomain 192.168.4.50
acl purge method PURGE
acl CONNECT method CONNECT
http_access allow web
http_access allow localhost
forwarded_for off
visible_hostname www.project.com
icp_port 3130
icp_query_timeout 2000
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
ipcache_size 1024
ipcache_low 90
ipcache_high 95
access_log /var/log/squid/access.log squid
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
strip_query_terms on
ignore_unknown_nameservers on
digest_swapout_chunk_size 4096 bytes
digest_rebuild_chunk_percentage 10
detect_broken_pconn on
pipeline_prefetch off
request_entities off
high_response_time_warning 0
high_memory_warning 0
minimum_expiry_time 60 seconds
relaxed_header_parser warn

Last edited by wizcrack.fedora; 02-26-2009 at 10:29 AM.
 
  


Reply



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
transparent http tunneling goillini Linux - Server 3 08-11-2008 06:45 AM
transparent proxy gigaloo15801 Linux - Networking 1 10-02-2007 03:03 PM
transparent proxy? ikinnu Linux - Software 1 07-27-2007 06:55 AM
Transparent Proxy ilnli Linux - Networking 3 10-18-2004 06:01 PM
Transparent Proxy vinhhv Linux - Networking 0 07-23-2003 01:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:34 AM.

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