iptables nat on raspbian pi with squid and dansguardian
I am a bit stuck on the configuration of iptables. I am trying to filter the traffic on port 80, which should go through Squid and Dansguardian. The server I am using is set up with Raspbian and iptables is configured as a NAT.
I have added 2 rules for Squid and Dansguardian. But when I enable them, they do not give me the wanted result. Actually I cannot load any page on port 80. When I disable these rules, the normal rules apply for port 80 and I am able to load pages. However now they are not filtered. Code:
*mangle TIA |
Is your Squid and Dansguardian services on the same box as the firewall or another one?
|
Everything is on the same box. Is that even possible?
|
i) Yes possible, but possibly slow.
ii) I don't know anything about dansguardan, but have a link: Link I think that you need to tell us more about how the system is structured; what happens to eth0 and eth1, for example, and what is set as the 'listen on' port for squid (and probably stuff about dansguardian, but, as I implied earlier, I don't even know what questions to ask). I think that there is also a potential problem with the handling of port 53, but that isn't this problem. |
I already found it myself, although triggered by your replies...
I was missing the following line: Code:
-A INPUT -i eth0 -p tcp -m tcp --dport 8080 -m state --state NEW -j ACCEPT |
All times are GMT -5. The time now is 09:31 AM. |