I'm running RH9 on a gateway connected to a small wireless lan.
(I hope to add nocat next!)
Since i'm connected to only 256k to the internet i decided to add squid with transparent proxying so things 'seem' faster....... a real murderous task for a novice like me..
Things done so for:
- the usual box with eth1(internet) and eth0(wlan)
- setup a name-caching dns server
- setup dhcp
- setup a custom firewall (can browse on wlan at this point :-))
- install xampp
- install squid ...... and this is where i grind to a halt, or so i think
I downloaded squid-2.5stable10
Installed it with ./configure --enable-linux-netfilter
Tried to configure the squid.conf as best i could
Started squid ... got the 'Ready to serve request' go ahead!
--At this point the confusion started with just the ordinary proxy activated--
I realized i could still browse the net even though i hadn't set the proxy IP
ort in the client browser, i checked the /access.log, it was empty
I set the proxy IP
ort in the browser, then boom! the /access.log came alive immediately after i browsed a few sites. The box also became erratic, with the hard drive led very busy!
hmm, ok great
--Still a little confused, here comes the transparent proxy--
Went back to the firewall and added 'iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j REDIRECT --to-port 3128' , and restarted iptables
Now i removed the proxy setting from the client browser and was browsing fine until i checked the /access.log. It wasn't updated (how come??). I emptied the file to make sure, still nothing
I also realized when i put back the proxy IP
ort in the browser the /access.log started updating again
The big question now is, doesn't the transparent proxy keep an access log???
How do i know transparent proxying is working for sure?
I need any help on what might be wrong......
Another thing: I realize i have to manually start squid everytime i reboot and 'chkconfig squid on' is giving an error, is there a custom script somewhere i can use?
Thanks!