Results 1 to 7 of 7

Thread: Filtering client IP address with two Squid Proxy Server(Parent and Child)

  1. #1
    Join Date
    Oct 2014
    Beans
    5

    Cool Filtering client IP address with two Squid Proxy Server(Parent and Child)

    Hi Guys,
    Good day!
    I hope that you can help me with this

    My scenario is,
    I have a Parent Proxy, we'll name it Proxy1 and I have a Child proxy, we'll name it Proxy2
    my user1 has an IP address of 10.10.9.2 and then user2 has an IP Address of 10.10.9.6


    my Proxy2 has an unlimited internet access in my Parent Parent Proxy(Proxy1),
    then my user2 is blocked in my Proxy1 only user1 and Proxy2 is allowed to access the internet in Proxy1


    My question is , can Proxy1 detects the IPAddress of user2 when it'll use Proxy2 as it's proxy?

  2. #2
    Join Date
    Oct 2014
    Beans
    5

    Cool Filtering client IP address with two Squid Proxy Server(Parent and Child)

    Hi Guys,
    Good day!
    I hope that you can help me with this

    My scenario is,
    I have a Parent Proxy, we'll name it Proxy1 and I have a Child proxy, we'll name it Proxy2
    my user1 has an IP address of 10.10.9.2 and then user2 has an IP Address of 10.10.9.6


    my Proxy2 has an unlimited internet access in my Parent Proxy(Proxy1),
    then my user2 is blocked in my Proxy1 only user1 and Proxy2 is allowed to access the internet in Proxy1


    My question is , can Proxy1 detects the IPAddress of user2 when it'll use Proxy2 as it's proxy?

  3. #3
    Join Date
    Feb 2007
    Beans
    24,961
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Filtering client IP address with two Squid Proxy Server(Parent and Child)

    Hi and welcome, please do not create multiple threads on the same issue. Threads merged

  4. #4
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: Filtering client IP address with two Squid Proxy Server(Parent and Child)

    Quote Originally Posted by IAmJ View Post
    My question is , can Proxy1 detects the IPAddress of user2 when it'll use Proxy2 as it's proxy?
    No. All connections from Proxy2 will have Proxy2's external address. Only Proxy2's logs will contain the address of the originating client.

    Remember that Squid itself acts like a web client when it sends out requests. It works exactly the same as if you opened a browser on the proxy machine and entered the URL in its address box.
    If you ask for help, do not abandon your request. 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

  5. #5
    Join Date
    Oct 2014
    Beans
    5

    Re: Filtering client IP address with two Squid Proxy Server(Parent and Child)

    Thanks SeijiSensie,
    but is there another way to filter this logs? so that this users can't thoroughly access the internet in Proxy1?

  6. #6
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: Filtering client IP address with two Squid Proxy Server(Parent and Child)

    Well, you could use an ACL in proxy 2 to block requests from that IP address. We need more specifics to understand what you are trying to accomplish. Would this user be allowed to go to other sites within your network, but not out to the Internet? That's a lot more difficult to configure than just blocking by IP address. If you add
    Code:
    acl block_me src 10.10.10.10
    http_access deny block_me
    to squid.conf on proxy2, then the user at 10.10.10.10 will be denied. Setting up rules to enable access to some locations but not others is possible, but you will need to read up on ACLs, particularly how to combine them.
    Last edited by SeijiSensei; October 17th, 2014 at 02:48 PM.
    If you ask for help, do not abandon your request. 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

  7. #7
    Join Date
    Oct 2014
    Beans
    5

    Re: Filtering client IP address with two Squid Proxy Server(Parent and Child)

    Hi SeijiSensei,
    Actually, I don't have a hold in Proxy2 server, this is a test server that the other developers used in development.

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
  •