Results 1 to 6 of 6

Thread: Squid proxy on ubuntu

  1. #1
    Join Date
    Mar 2013
    Beans
    16

    Squid proxy on ubuntu

    Expert,

    DB Server <---> squid proxy server <----> Client Server

    If squid configuration has http_port 3128
    When I search something like 182.* from client app server I am getting the below error and presented with no result
    Caused by java.net.NoRouteToHostException; No to route host

    If squid configuration has http_port 3128 transparent
    When I search something like 182.* from client app server I didn't got the error and presented with result

    Please let know what is the diffrence in http_port 3128 and http_port 3128 transparent
    Why I am getting the error if squid has http_port 3128?

    Waiting for anyone to reply

    Thanks
    Last edited by hash4all; March 22nd, 2013 at 01:51 PM.

  2. #2
    Join Date
    Mar 2013
    Beans
    16

    Re: Squid proxy on ubuntu

    Hi,

    any suggestion on the above post?

    Thanks
    Hash

  3. #3
    Join Date
    Mar 2013
    Beans
    16

    Re: Squid proxy on ubuntu

    expert,

    anyone to reply

  4. #4
    Join Date
    Nov 2007
    Location
    London, England
    Beans
    5,564
    Distro
    Xubuntu 14.10 Utopic Unicorn

    Re: Squid proxy on ubuntu

    A transparent proxy is one that intercepts connections passing through it - the client simply tries to use the proxy server as a router.
    A non-transparent proxy requires that the client knows the proxy is there and sends its requests to the proxy.
    Here is a nice write-up I found:
    http://www.deckle.co.uk/squid-users-...ing-proxy.html

    I don't know what this has to do with java though. I guess you're not just using a web browser. Still, the write-up might help point you in the right direction.

  5. #5
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    9,001
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: Squid proxy on ubuntu

    If you use a transparent proxy, you need to create a method to push the outbound web traffic through Squid. The simplest method is to use an iptables rule like this (assumes eth0 points to the Internet):

    Code:
    /sbin/iptables -t nat -A PREROUTING -s your.ip.network.addr/mask -o eth0 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 3128
    Replace "your.ip.network.addr/mask" with the actual address and mask like "192.168.1.0/24". Now traffic destined for HTTP servers outside your network will be redirected to port 3128 and handed to Squid.
    Last edited by SeijiSensei; March 29th, 2013 at 05:44 PM.
    If you ask for help, please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  6. #6
    Join Date
    Mar 2013
    Beans
    16

    Re: Squid proxy on ubuntu

    Thanks to all for your help.

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
  •