squid transparent proxy

Posted on 2010-01-02
Last Modified: 2013-11-22
I'm currently attempt to setup a transparent proxy between my linksys router and my wifi access point.

The hardware setup like the following
Linksys Router --> Ubuntu PC (2 Network Card) --> switch --> Access Point --> Laptop
On the Ubuntu PC, eth0 is connected to the router, eth1 is connected to the switch

I've read on how to setup transparent proxy using squid and seems to done all setting properly. When I was about to test it, it realize that
1) eth1 doesn't have an IP
2) Computer connected to access point cannot obtain IP address

So as of this point, I can not test to see if my transparent proxy is working or not. So here are my questions

1) How do I make the laptop that's connected to the access point obtaining IP address from router? Do I need to setup DHCP service on Ubuntu PC and give a different IP range?
2) Do I set a static IP for eth1? If I do, should I setup the static IP in the same range as eth0? (eth0 now is, should I setup eth1 within or some other IP range like
3) On my Ubuntu box there is only Apache Server and Squid2 are installed, am I missing any applications?

Thank you all in advanced
Question by:geoffryf
    LVL 16

    Accepted Solution

    You have two options - configure normally or configure Ubuntu as a bridge:

    1) Yes you should install DHCP on Ubuntu
    2) Yes, you should set the IP. The eth1 IP should be in a different subnet.
    3) Only squid should be enough.

    Bridge - you could configure the Ubuntu box as a bridge
    1) The DHCP on Linksys will be used
    2) The same IP as on eth0 will apply to eth1 as well (the IP of the bridge br0)
    3) Only squid should be enough.


    Author Comment

    Thank you for your comments, let me give it a shot and I will get back to you.

    Wish me good luck!
    LVL 16

    Expert Comment

    I believe I gave two possible solutions to the problem and answer all the (three)questions that the asker had asked (and all three for both solutions).

    So I believe I should get the points for this question since the asker did not have any further questions.

    Author Closing Comment

    Its working properly. I am sorry for not closing this post earlier.

    LVL 7

    Expert Comment

    Sure: geoffryf just did not answer to decent proposals!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    The purpose of this Article is to provide information for a newly released variant of malware – with the assumption that many EE Members will have need of the information. According to “Computerworld”, well over one million web sites have been co…
    ​Being a Managed Services Provider (MSP) has presented you  with challenges in the past— and by meeting those challenges you’ve reaped the rewards of success.  In 2014, challenges and rewards remain; but as the Internet and business environment evol…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now