LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 06-20-2009, 06:20 PM   #1
tuftystick
Member
 
Registered: Jan 2009
Location: Scotland
Distribution: CentOS 5.3
Posts: 36

Rep: Reputation: 15
Configuring server for using CSF


Hello,

We are currently offering VPS hosting and the we have a problem when loading the modules in order for CSF to work correctly for VPS servers.

We have followed the following guide to make the changes;

Code:
If you get iptables errors when trying to start csf on a VPS then you most likely have missing iptables modules for your VPS.

If your hosting provider wants to know how to configure iptables correctly on a VPS server, then you should point them to this Parallels FAQ and have them follow it (plus to add ip_conntrack_ftp to the list of required modules):
http://kb.parallels.com/en/746

csf requires at least these iptables modules:

ip_tables
ipt_state
ipt_multiport
iptable_filter
ipt_limit
ipt_LOG
ipt_REJECT
ipt_conntrack
ip_conntrack
ip_conntrack_ftp
iptable_mangle


Other modules where available for additional functionality:

ipt_owner
ipt_recent
iptable_nat
ipt_REDIRECT

The VPS Host provider can test whether they have fixed the envrionment by running:

/etc/csf/csftest.pl

This should run without any FATAL errors. If any such errors are present, they have not done it correctly or are using a broken kernel on the VPS client.

If you suffer from "memory allocation" errors with iptables on a VPS, make sure that your numiptent setting (as mentioned in the Parallels FAQ) is set sufficiently high. We recommend having numiptent set to at least 1000.

If you still have problems, your VPS host provider should also consider this information:
http://forum.configserver.com/showpo...84&postcount=6
http://forum.configserver.com/showpo...36&postcount=8
http://forum.configserver.com/showpo...39&postcount=1
When we try running;

Quote:
modprobe MODULE
We get the following error for every module above;

Quote:
FATAL: Could not load /lib/modules/2.6.18-028stab062.3/modules.dep: No such file or directory
We have checked /lib/modules/ and the folder is empty.

Any help would be appreciated!!
 
Old 06-21-2009, 11:38 AM   #2
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,506

Rep: Reputation: 116Reputation: 116
Did you perform make modules_install after building your kernel? (I'm assuming it's custom-built). If it's not custom-built, what distribution are you using? Since it seems to be on a VPS, also make sure that you're performing the work in the host, not a guest.
 
Old 06-29-2009, 10:20 AM   #3
tuftystick
Member
 
Registered: Jan 2009
Location: Scotland
Distribution: CentOS 5.3
Posts: 36

Original Poster
Rep: Reputation: 15
We are using Virtuozzo on the Host and their kernel is broken, there are many problems with it.

We have searched every forum and added every module you basically can and it just won't work.

We can enable iptable_filter on the Host, but when trying to enable it via the VPS we get the following error;

Code:
FATAL: Could not load /lib/modules/2.6.18-028stab062.3/modules.dep: No such file or directory
Any help will be appreciated.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Installed CSF and FTP Got blocked... yah0m Linux - Server 1 08-15-2008 08:29 PM
plesk and csf I_AM Linux - General 1 06-28-2008 11:32 AM
Configuring server adnanm General 8 11-27-2005 04:50 PM
Configuring X Server cool_coolioin Linux - General 3 07-03-2002 08:45 AM


All times are GMT -5. The time now is 11:31 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration