Archives for: September 2010, 05

09/05/10

  12:06:00 pm, by The Dreamer   , 493 words  
Categories: Software, Computer, Networking, Cox HSI, AT&T DSL, Broadband

doing the transparent proxy thing

In the morning, I will open like 50 tabs in firefox...for the sites I check out every morning. And, going through my caching proxy helps. But, there are things that I can't get to using the proxy, so I will toggle off the use of proxy in firefox.

But, then I don't remember to switch it back on later....

Additionally, there are devices on my home network that I think could benefit from going through squid, but they don't offer easy ways to make that go.

So, the answer was to investigate transparent proxy. Which I finally got around to doing this weekend.

I added two new ports to my squid.conf

http_port coxtport transparent
http_port dsltport transparent

went with new ports for transparent separate from the existing ones, and two so that one squid cache handling either gateway....

I did a lot of googling around to figure out the iptables to add to my Sveasoft Alchemy running WRT54GS routers.

This is what I've settled on (for cox gateway):

iptables -t nat -A PREROUTING -i br0 -s ! box.lhaven.homeip.net -p tcp --dport 80 -j DNAT \
     --to box.lhaven.homeip.net:coxtport
iptables -t nat -A POSTROUTING -o br0 -s lhaven.homeip.net/24 -d box.lhaven.homeip.net -j SNAT \
     --to coxgateway
iptables -A FORWARD -s lhaven.homeip.net/24 -d box.lhaven.homeip.net -i br0 -o br0 -m state \
     --state NEW,ESTABLISHED,RELATED -p tcp --dport coxtport -j ACCEPT
iptables -A FORWARD -d lhaven.homeip.net/24 -s box.lhaven.homeip.net -i br0 -o br0 -m state \
     --state ESTABLISHED,RELATED -p tcp --sport coxtport -j ACCEPT

Full story »

Now instead of subjecting some poor random forum to a long rambling thought, I will try to consolidate those things into this blog where they can be more easily ignored profess to be collected thoughts from my mind.

Latest Poopli Updaters -- http://lkc.me/poop

bloglovin

There are 20 years 3 months 17 hours 7 minutes and 54 seconds until the end of time.
And, it has been 4 years 9 months 27 days 20 hours 55 minutes and 2 seconds since The Doctor saved us all from the end of the World!

Search

September 2010
Mon Tue Wed Thu Fri Sat Sun
 << < Current> >>
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30      
Google

Linkblog

  XML Feeds

Who's Online?

  • Guest Users: 0
This seal is issued to lawrencechen.net by StopTheHacker Inc.
powered by b2evolution

hosted by
Green Web Hosting! This site hosted by DreamHost.

monitored by
Monitored by eXternalTest
SiteUptime Web Site Monitoring Service
website uptime