Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am trying to set up a transparent squid proxy but i think i am over thinking the problem. Here is the setup.

So vlan 1 will be the main one that connects to the internet and lets say anything on this is tagged vlan id 1 and has a ip of and netmask

So my other vlan will be say vlan 2 and anything connected to this will be on the following and netmask

I want my transparent proxy to filter only vlan 2's traffic.

Do i set my 12.04 server to act as a bridge so that traffic can travel across to the gateway (router) for internet after going through my proxy?

Hopefully all this makes sense.

Any help or guides would be much appreciated.

share|improve this question
Welcome to Ask Ubuntu! You should set this up at the gateway (router) as that's where clients will be sending traffic to. It has nothing to do with the bridge setup you're making here. Are you using Ubuntu as a router? –  gertvdijk Jun 19 '13 at 11:25
no i am not using ubuntu as a router. –  Fireball Jun 19 '13 at 14:27
surely i have to link the two ip ranges with a bridge as anything in vlan 2 wont be able to communicate with anything on vlan 1 which is where the internet connection is. –  Fireball Jun 19 '13 at 14:33
No, you should not connect the two VLANs on a bridge. That would defeat the whole purpose of a VLAN in the first place! Use routing instead... that's where routers are for. Your router can access both VLANs (I assume, otherwise you have an even bigger network design issue), and should be able to forward the HTTP requests transparently. –  gertvdijk Jun 19 '13 at 14:37
Ok i understand that bit, but i am still not sure about the ip ranges one range will be in the vlan1 and vlan2 will be would the router still be able to handle the requests? and will the transparent proxy still work –  Fireball Jun 19 '13 at 14:57
show 2 more comments

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.