Results 1 to 4 of 4

Thread: Make proxy automatic?

  1. #1
    Join Date
    Nov 2012
    Location
    Miami, FL
    Beans
    30
    Distro
    Ubuntu

    Make proxy automatic?

    Hi everyone,

    I have setp up SQUID3 PROXY on my server with a ISC-DHCP-SERVER and it works great when I hook up a client to the server eth1.

    The issue that I am having is that I am hooking up my server to a switch that will be for my company of 80-85 clients and I want to make the proxy turn on automatically because I have do it manually for the client I am using right now.

    Is there a way to do this?

    Thanks for all the help in advance guys. If I figure it out I will let you all know how I got this to work.

    Party on!

  2. #2
    Join Date
    Nov 2012
    Location
    Miami, FL
    Beans
    30
    Distro
    Ubuntu

    Re: Make proxy automatic?

    If I made the squid transparent would it make a difference?

  3. #3
    Join Date
    Nov 2012
    Location
    Miami, FL
    Beans
    30
    Distro
    Ubuntu

    Re: Make proxy automatic?

    So I have done some researching and found out that by making the proxy transparent it will give clients proxy automatically but cannot seem to quite figure out the correct setting. I added the word "transparent" to my squid.conf int the network option area to the port section...
    http_port 3128 transparent
    I also added
    iptables -t nat -A POSTROUTING -s 192.168.2.0/24 –o eth0 -j MASQUERADE

    to the /etc/rc.local file and still nothing when testing a client to eth1. Any help would be highly appreciated. Thanks everyone.

  4. #4
    Join Date
    Jul 2009
    Beans
    516
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Make proxy automatic?

    You probably won't be able to use a transparent proxy with your current setup as it works at the network layer.

    To find out how it works take a look at:
    http://en.wikipedia.org/wiki/Proxy_s...nsparent_proxy
    http://tldp.org/HOWTO/TransparentProxy-2.html

    You would either need to use your Linux box as the gateway on your network to force all traffic through it, redirecting the required ports through SQUID, or have your current gateway/firewall configured to redirect all HTTP(S) traffic via your Linux box but allow your Linux box direct access to the internet.
    Mark your thread as [SOLVED], use Thread Tools on forum page.

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
  •