Networking :: Iptables (and starting it)



Hi all
again with pointless question :)

now i'm setting an iptables on my dsl-n frugal installed system to block viewing some url (like "parental control"...)
i found iptables.dsl on dsl repositories
i downloaded it and put on /mydsl folder (same one where i put all .dsl extension i whanna autoload at startup)
rebooted

it says loaded iptables at startup

but
a) there is no /etc/sysconfig/iptables file
i created one by myself, from scratch (well, copying one from google :) )

b) there is no "/etc/init.d/iptables" script to start|stop|reload
so how can i start/stop/reload iptables?

c) i tried to launch
# iptables -L
but this is the answer:
Code Sample

FATAL: Module ip_tables not found.
iptables v1.2.6a: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.


someone can point me where am i wrong?
(assuming i'm not really competent with linux nor iptables :( )

ty vm

Looking at the error messages, it seems like the iptables.dsl extension contains one or more kernel modules (I say this without checking so I could be totally wrong) that are probably built for dsl (2.4.26 or 2.4.31) and so would not work with dsln (2.6.12)?
Juanito is correct. The iptables extension is kernel-specific and works only for 2.4.26.
Iptables does compile quite easily.

To start it, most prefer creating their own script and running that from bootlocal.sh, /etc/sysconfig/iptables is a distro-specific way. Or most download the nice linux firewall script courtesy of projectfiles.com and then start that from bootlocal.sh :)

You can block sites without iptables, too:
Just add the url(s) of the site to /etc/hosts with an ip of 127.0.0.1, so they all point to yourself and unless you are running a web server, no getting to those pages.

Quote (curaga @ Jan. 15 2008,07:52)
...
You can block sites without iptables, too:
Just add the url(s) of the site to /etc/hosts with an ip of 127.0.0.1, so they all point to yourself and unless you are running a web server, no getting to those pages.

My /etc/hosts has 2077 items listed.
Mostly to block ad, banner, and click servers.
It makes for a faster internet experience as I am not waiting for these other, not wanted, site connections.

Next Page...
original here.