Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Failed to load iptables
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
romalong
Guru
Guru


Joined: 08 Jun 2005
Posts: 488
Location: Kiev

PostPosted: Thu Oct 27, 2005 3:50 pm    Post subject: Failed to load iptables Reply with quote

i've just compiled iptables as modules, then i run:

# make && make modules_install
# echo "iptables" >> /etc/modules.autoload.d/kernel-2.6 && modules-update.
# modprobe ip_tables

finally, i'm having an error during bootup:

* loading module iptables
* Failed to load iptables

what's my fault?
Back to top
View user's profile Send private message
Codo
Apprentice
Apprentice


Joined: 17 May 2004
Posts: 271

PostPosted: Thu Oct 27, 2005 3:56 pm    Post subject: Reply with quote

Code:
emerge iptables
/etc/init.d/iptables start
Back to top
View user's profile Send private message
romalong
Guru
Guru


Joined: 08 Jun 2005
Posts: 488
Location: Kiev

PostPosted: Thu Oct 27, 2005 4:28 pm    Post subject: Reply with quote

Codo wrote:
Code:
emerge iptables
/etc/init.d/iptables start



Code:
dev ~ # /etc/init.d/iptables start
 * Not starting iptables.  First create some rules then run:
 * /etc/init.d/iptables save


i've not set any rules yet as i'm having an error on bootup and need to get rid of it:

Code:
Using /etc/modules.autoload.d/kernel-2.6 as config:
* loading module iptables
* Failed to load iptables
Back to top
View user's profile Send private message
Codo
Apprentice
Apprentice


Joined: 17 May 2004
Posts: 271

PostPosted: Fri Oct 28, 2005 9:53 am    Post subject: Reply with quote

Well, there you are, you have to create at least a few rules before you run it for the first time. Remember that the default is to drop the packets...

I suggest you to read a bit about iptables and how the rules are set... http://www.siliconvalleyccie.com/linux-hn/iptables-intro.htm

Code:

$ iptables -A INPUT -i lo -j ACCEPT
$ iptables -A INPUT -p all -m state RELATED,ESTABLISHED
$ /etc/init.d/iptables save
$ /etc/init.d/iptables start


This will block any input packet that is not result of you connecting to someone (RELATED,ESTABLISHED) and will accept everything from the loopback. I am not at my box, so sorry if it doesn't work straightaway. Check the man pages.

read what /etc/init.d/iptables script does and you will understand how it works.

Good Luck!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum