
09-10-2006, 10:21 PM
|
|
Web Hosting Guru
|
|
Join Date: May 2006
Posts: 307
|
|
# apf -r
Unable to load iptables module (ip_tables), aborting.
# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
# uname -a
Linux servername 2.6.17.9 #1 SMP Sun Aug 27 17:08:11 ICT 2006 i686 athlon i386 GNU/Linux
is there any reason that I cannot use iptables? If I edit monokern option in apf to 1, I cannot use ftp in passive mode
thanks
|

09-10-2006, 10:24 PM
|
|
I like ice cream
|
|
Join Date: Mar 2003
Location: California USA
Posts: 11,637
|
|
Your kernel is not compiled with iptables as a modules. You need to recompile it.
|

09-10-2006, 11:13 PM
|
|
Web Hosting Guru
|
|
Join Date: May 2006
Posts: 307
|
|
Steven, when re-compile it, how to choose iptables as a module? I think I have chosen "M" for all options of iptables when doing menuconfig, but I am not sure if it's the correct location.
Do I need to install module-init-tools? I am upgrading kernel from CentOS 4.3
|

09-10-2006, 11:23 PM
|
|
I like ice cream
|
|
Join Date: Mar 2003
Location: California USA
Posts: 11,637
|
|
do not install module-init-tools.
|

09-14-2006, 06:13 PM
|
|
Hail Eris !
|
|
Join Date: Oct 2002
Location: Canada
Posts: 3,100
|
|
Just for fun, if you do not mind, try changing SET_MONOKERN=1 in apf.conf and see how that goes.
apf.conf can usually be found in /etc/apf/
|

09-14-2006, 06:31 PM
|
|
I like ice cream
|
|
Join Date: Mar 2003
Location: California USA
Posts: 11,637
|
|
Did you read his post? He didnt want that because he cant use passive mode. Hes already tried it.
|

09-14-2006, 06:52 PM
|
|
Hail Eris !
|
|
Join Date: Oct 2002
Location: Canada
Posts: 3,100
|
|
Quote:
|
Originally Posted by Steven
Did you read his post? He didnt want that because he cant use passive mode. Hes already tried it.
|
I admit i did not read the last line. But, I do stand by my solution. When he sets SET_MONOKERN=1 his apf script will not fail while loading modules (which are compiled in the kernel it would seem).
He should check conf.apf and see IG_TCP_CPORTS and add the range of ports that his ftp server uses for passive connections like 3000_3500 (if his ftp server uses ports 3000 - 3500) for passive replies.
|

09-14-2006, 09:13 PM
|
|
I like ice cream
|
|
Join Date: Mar 2003
Location: California USA
Posts: 11,637
|
|
Passive ftp will not work correctly when monokern is enabled due to conntrack issues when egress is enabled. Without monokern enabled you should not need to open any range of ports since it should dynamically open the ports for ftp.
Your solution is a makeshift fix.
|

09-14-2006, 09:41 PM
|
|
Hail Eris !
|
|
Join Date: Oct 2002
Location: Canada
Posts: 3,100
|
|
Quote:
|
Originally Posted by Steven
Your solution is a makeshift fix.
|
You are absolutely right, but it is the fix never the less.
That being said, perfect solution, as you suggested, wold be rebuilding kernel and selecting iptables as modules. Ether way tough, things will work just fine. Personally if I can postpone reboot until next kernel upgrade I will.
|

09-15-2006, 10:00 PM
|
|
Web Hosting Guru
|
|
Join Date: May 2006
Posts: 307
|
|
I have recompiled kernel with M option for all in [*] Network packet filtering (replaces ipchains) --->
IP: Netfilter configuration --->
however, I still have error
Unable to load iptables module (ipt_state), aborting.
Is there something I am still missing?
|

09-18-2006, 02:36 AM
|
|
Web Hosting Guru
|
|
Join Date: Nov 2002
Posts: 250
|
|
Quote:
|
Originally Posted by linktome
I have recompiled kernel with M option for all in [*] Network packet filtering (replaces ipchains) --->
IP: Netfilter configuration --->
however, I still have error
Unable to load iptables module (ipt_state), aborting.
Is there something I am still missing?
|
Same here..
Anyone with an example config who could help? 
|

09-18-2006, 07:40 AM
|
|
Hail Eris !
|
|
Join Date: Oct 2002
Location: Canada
Posts: 3,100
|
|
`"state" match support` is now in
[*] Network packet filtering (replaces ipchains) --->
Core Netfilter Configuration --->
|

09-18-2006, 10:56 AM
|
|
Junior Guru Wannabe
|
|
Join Date: May 2006
Posts: 69
|
|
I am having same problems.
Quote:
iptables v1.2.11: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
|
I don't know how to recompile kernal. Any help would be highly appreciated.
|

09-19-2006, 05:14 AM
|
|
Web Hosting Guru
|
|
Join Date: Nov 2002
Posts: 250
|
|
Quote:
|
Originally Posted by Steven
|
Great thanks! What about this error?
iptables v1.2.11: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
| Postbit Selector |
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|
| Login: |
|
|
| Advertisement: |
|
|
| Web Hosting News: |
|
|
|