Hi, Daniel... > I have found a nice "HOSTS" list for windows (similar to the /etc/hosts file > in linux) which matches some bad sites to localhost, so your pc won't access > them! With windows this works very nice, but how can I do this with Debian?
This works only when resolving names from the local machine. > I already thought about just using it just like the usual hosts file in > linux, but my pc is also running as a router. > All packages from pc's behind are routed with iptables. Are packages from > them also filtered, if matching the hosts-file? Not all all. iptables know IP addresses - not host names. > I want all pc's, including > router and all pc'c connecting through the router to the internet not to be > able to access the files in this list. Enter the IP addresses. However it depends on the kind of access. If you want to block access to specific web sites you will likely block a web hosting service which serves a few thousand domains per IP. You better use application level firewalls like a Squid proxy or whatever. > begin 666 HOSTS.dat > M,3(W+C N,"XQ(" @;&]C86QH;W-T#0H-"B,@2V%:84$@<F5L871E9#H-"@T* > [...] Argh! You don't mean that, do you? Christoph -- ~ ~ ".signature" [Modified] 3 lines --100%-- 3,41 All