Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (3) </ [1] 2 3 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Iptables (and starting it)< Next Oldest | Next Newest >
Divago Offline





Group: Members
Posts: 83
Joined: April 2007
Posted: Jan. 15 2008,15:11 QUOTE

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
Back to top
Profile PM 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Jan. 15 2008,15:18 QUOTE

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)?
Back to top
Profile PM 
lucky13 Offline





Group: Members
Posts: 1478
Joined: Feb. 2007
Posted: Jan. 15 2008,15:31 QUOTE

Juanito is correct. The iptables extension is kernel-specific and works only for 2.4.26.

--------------
"It felt kind of like having a pitbull terrier on my rear end."
-- meo (copyright(c)2008, all rights reserved)
Back to top
Profile PM WEB 
curaga Offline





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: Jan. 15 2008,15:52 QUOTE

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.


--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Jan. 15 2008,16:21 QUOTE

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.
Back to top
Profile PM WEB 
13 replies since Jan. 15 2008,15:11 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (3) </ [1] 2 3 >/
reply to topic new topic new poll
Quick Reply: Iptables (and starting it)

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code