Results 1 to 3 of 3

Thread: SQuid Proxy Server AND IpTables

  1. #1
    Join Date
    Feb 2009
    Posts
    6

    SQuid Proxy Server AND IpTables

    Hello EVeryOne I am going to use squid and iptables on same server
    my squid work perfect without iptables
    but when i use rules in iptables it does not work

    should i change anything in config file of squid (for iptable?

    Hier is my rules

    Chain INPUT (policy DROP)
    target prot opt source destination
    ACCEPT all -- 192.168.20.0/24 anywhere
    ACCEPT all -- anywhere 192.168.20.0/24
    ACCEPT tcp -- anywhere anywhere tcp dpt:www

    Chain FORWARD (policy DROP)
    target prot opt source destination

    Chain OUTPUT (policy DROP)
    target prot opt source destination
    ACCEPT all -- 192.168.20.0/24 anywhere
    ACCEPT all -- anywhere 192.168.20.0/24
    ACCEPT tcp -- anywhere anywhere tcp spt:www


    after these rule when i surf to webside then i have timeout from proxy server(squid)
    what i should do now??

  2. #2
    Join Date
    May 2008
    Posts
    2,945

    Re: SQuid Proxy Server AND IpTables

    First try to install Squid server (use up2date squid) and configured by adding following directives to file:
    # vi /etc/squid/squid.conf
    Then with the help of the following try to modify or try to add the following squid directives:

    httpd_accel_host virtual
    httpd_accel_port 80
    httpd_accel_with_proxy on
    httpd_accel_uses_host_header on
    acl lan src 192.168.1.1 192.168.2.0/24
    http_access allow localhost
    http_access allow lan
    Here is the complete listing of squid.conf for your reference (grep will remove all comments and sed will remove all empty lines.

    # grep -v "^#" /etc/squid/squid.conf | sed -e '/^$/d'

  3. #3
    Join Date
    Oct 2008
    Posts
    161

    Re: SQuid Proxy Server AND IpTables

    I will suggest to put the proxy server ip address as a gateway then try to connect to the internet,then you need to central server to control how every browser uses proxies to a finer level. Try using a proy.pac file to execute on your proxy server.

Similar Threads

  1. How to enable squid proxy support in Logitech VID application
    By @nkit Trivedi in forum Portable Devices
    Replies: 3
    Last Post: 29-12-2011, 08:52 PM
  2. Squid Proxy Server issue
    By emvy in forum Technology & Internet
    Replies: 1
    Last Post: 24-11-2011, 12:33 AM
  3. Howto Configure SQUID Proxy Server / LINUX
    By unix.blackhat in forum Networking & Security
    Replies: 6
    Last Post: 06-10-2011, 03:51 PM
  4. Block Google Talk with Squid proxy firewall
    By LinuxeD in forum Operating Systems
    Replies: 3
    Last Post: 08-08-2009, 01:56 PM
  5. Replies: 5
    Last Post: 24-04-2009, 03:17 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,028,259.19062 seconds with 17 queries