View previous topic :: View next topic |
Author |
Message |
romalong Guru
Joined: 08 Jun 2005 Posts: 488 Location: Kiev
|
Posted: Thu Oct 27, 2005 3:50 pm Post subject: Failed to load iptables |
|
|
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 |
|
|
Codo Apprentice
Joined: 17 May 2004 Posts: 271
|
Posted: Thu Oct 27, 2005 3:56 pm Post subject: |
|
|
Code: | emerge iptables
/etc/init.d/iptables start |
|
|
Back to top |
|
|
romalong Guru
Joined: 08 Jun 2005 Posts: 488 Location: Kiev
|
Posted: Thu Oct 27, 2005 4:28 pm Post subject: |
|
|
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 |
|
|
Codo Apprentice
Joined: 17 May 2004 Posts: 271
|
Posted: Fri Oct 28, 2005 9:53 am Post subject: |
|
|
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 |
|
|
|