hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Hosting Security and Technology Tutorials : cannot load iptables
Reply

Hosting Security and Technology Tutorials Tutorials related to server security or the like.
Forum Jump

cannot load iptables

Reply Post New Thread In Hosting Security and Technology Tutorials Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 09-10-2006, 10:21 PM
linktome linktome is offline
Web Hosting Guru
 
Join Date: May 2006
Posts: 307

cannot load iptables


# 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

Reply With Quote


Sponsored Links
  #2  
Old 09-10-2006, 10:24 PM
Steven Steven is offline
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.

Reply With Quote
  #3  
Old 09-10-2006, 11:13 PM
linktome linktome is offline
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

Reply With Quote
Sponsored Links
  #4  
Old 09-10-2006, 11:23 PM
Steven Steven is offline
I like ice cream
 
Join Date: Mar 2003
Location: California USA
Posts: 11,637
do not install module-init-tools.

Reply With Quote
  #5  
Old 09-14-2006, 06:13 PM
sasha sasha is offline
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/

Reply With Quote
  #6  
Old 09-14-2006, 06:31 PM
Steven Steven is offline
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.

Reply With Quote
  #7  
Old 09-14-2006, 06:52 PM
sasha sasha is offline
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.

Reply With Quote
  #8  
Old 09-14-2006, 09:13 PM
Steven Steven is offline
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.

Reply With Quote
  #9  
Old 09-14-2006, 09:41 PM
sasha sasha is offline
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.

Reply With Quote
  #10  
Old 09-15-2006, 10:00 PM
linktome linktome is offline
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?

Reply With Quote
  #11  
Old 09-18-2006, 02:36 AM
TheSpidre TheSpidre is offline
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?

Reply With Quote
  #12  
Old 09-18-2006, 07:40 AM
sasha sasha is offline
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 --->

Reply With Quote
  #13  
Old 09-18-2006, 10:56 AM
lovelynetworks lovelynetworks is offline
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.

Reply With Quote
  #14  
Old 09-18-2006, 11:37 PM
Steven Steven is offline
I like ice cream
 
Join Date: Mar 2003
Location: California USA
Posts: 11,637
if you are using apf, to fix the state issue you need this:

http://www.webhostingtalk.com/showthread.php?t=527382

Reply With Quote
  #15  
Old 09-19-2006, 05:14 AM
TheSpidre TheSpidre is offline
Web Hosting Guru
 
Join Date: Nov 2002
Posts: 250
Quote:
Originally Posted by Steven
if you are using apf, to fix the state issue you need this:

http://www.webhostingtalk.com/showthread.php?t=527382
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.

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
GoGrid Launches Dynamic Load Balancer Service Built for Cloud Web Hosting News 2013-01-29 10:07:53
CDNetworks Releases New Versions of Cloud Load Balancer, Cloud Storage Web Hosting News 2012-09-10 15:26:28
Web Host Rackspace Adds New Features to Cloud Load Balancer Web Hosting News 2011-09-16 16:35:04
Cloud Infrastructure Firm Linode Launches Load Balancer as a Service Web Hosting News 2011-07-15 19:05:12
Web Host FireHost Adds SSD and Load Balancing to Cloud Hosting Web Hosting News 2011-06-07 20:46:00


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?