APF Issues

Protecting your Linux box
Post Reply
Kamranalilakhnavi
Lance Naik
Posts: 25
Joined: Thu Mar 31, 2005 2:26 am

APF Issues

Post by Kamranalilakhnavi »

Hello,

I just setup APF, everything was fine but at starting APF I am getting the following error. Please reply asap.

[/etc/apf]# /etc/init.d/apf start
Starting APF:Unable to load iptables module (ip_tables), aborting.
[ OK ]
When i start iptables service, got the following error.

[/etc/apf]# service iptables restart
Flushing firewall rules: [ OK ]
Setting chains to policy ACCEPT: raw nat mangle filter [FAILED]
Unloading iptables modules: [FAILED]
Applying iptables firewall rules: [ OK ]

Please do something.

Thanks in advance.

Regards,
Kamran
Regards,
Pasha
Qadri-409
Battalion Havaldaar Major
Posts: 286
Joined: Sun May 09, 2004 4:16 pm
Location: Peshawar
Contact:

Re: APF Issues

Post by Qadri-409 »

Dear Kamran have look at it

http://www.theserverpages.com/20102/11/
http://www.resellerhostingbox.com/tutorial102.html

Code: Select all

If you get the error:
Unable to load iptables module (ip_tables), aborting.
then your kernal is compiled with iptables statically instead of as a module.

Possible Solution / Comment:

You will need to change this in the conf.apf
MONOKERN="0" Set it to "1"
http://www.resellerhostingbox.com/tutorial102.html
BTW which distro & ver you are using ?

takecare
M Shahzad Qadri
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re:

Post by LinuxFreaK »

Dear Kamranalilakhnavi,
Salam,

Please edit your /etc/apf/firewall and comment following line:

before

Code: Select all

# load our iptables modules
modinit
after

Code: Select all

# load our iptables modules
# modinit
Finally restart service :)

# service apf start

Starting APF: OK

Best Regards.
Farrukh Ahmed
Kamranalilakhnavi
Lance Naik
Posts: 25
Joined: Thu Mar 31, 2005 2:26 am

APF Issues

Post by Kamranalilakhnavi »

Hello,

Thanks Qadri and Linux Freak, problem has been reolsoved now.

Great.
Regards,
Pasha
Kamranalilakhnavi
Lance Naik
Posts: 25
Joined: Thu Mar 31, 2005 2:26 am

APF Issues

Post by Kamranalilakhnavi »

Hello,

Still has a problem, have a look at.

/etc/rc.d/init.d]# service iptables restart
Flushing firewall rules: [ OK ]
Setting chains to policy ACCEPT: raw nat mangle filter [FAILED]
Unloading iptables modules: [FAILED]
Applying iptables firewall rules: [ OK ]


APF starting fine, but service iptables generating the mentioned error.
Regards,
Pasha
Post Reply