LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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
  Search this Thread
Old 04-23-2012, 11:20 PM   #1
peace18
LQ Newbie
 
Registered: Feb 2011
Posts: 19

Rep: Reputation: 0
cannot load the iptables rules


Hello,

I cannot load the iptables rules in a OpenVZ VPS with Debian 6.0.4/64 bits.

Any ideas about how can I fix it?


This is the error:


root@VPS:~# iptables-restore < /etc/iptables.rules.all
FATAL: Could not load /lib/modules/2.6.18-238.5.1.el5.028stab085.3/modules.dep:
No such file or directory
root@VPS:~#



root@VPS:~# cat /proc/net/ip_tables_matches
helper
udp
tcp
owner
state
length
ttl
tcpmss
multiport
multiport
limit
tos
icmp
root@VPS:~#


root@VPS:~# 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
root@VPS:~#



root@VPS:~# iptables -V
iptables v1.4.8
root@VPS:~#



root@VPS:~# lsb_release -a
LSB Version: core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:co
re-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch
Distributor ID: Debian
Description: Debian GNU/Linux 6.0.4 (squeeze)
Release: 6.0.4
Codename: squeeze
root@VPS:~#


root@VPS:~# uname -a
Linux VPS.domain.com 2.6.18-238.5.1.el5.028stab085.3 #1 SMP Mon Mar 21 20:0
5:12 MSK 2011 x86_64 GNU/Linux
root@VPS:~#


Thanks!
 
Old 04-23-2012, 11:54 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
root@VPS:~# lsb_release -a
LSB Version: core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:co
re-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch
Distributor ID: Debian
Description: Debian GNU/Linux 6.0.4 (squeeze)
Release: 6.0.4

Codename: squeeze
root@VPS:~#


root@VPS:~# uname -a
Linux VPS.domain.com 2.6.18-238.5.1.el5.028stab085.3 #1 SMP Mon Mar 21 20:0
5:12 MSK 2011 x86_64 GNU/Linux
This is slightly confusing, did you Frankenstein a system together out of debian
and RedHat bits?

Last edited by Tinkster; 04-23-2012 at 11:56 PM.
 
Old 04-24-2012, 12:01 AM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Code:
FATAL: Could not load /lib/modules/2.6.18-238.5.1.el5.028stab085.3/modules.dep:
Does /lib/modules/2.6.18-238.5.1.el5.028stab085.3/ exist for your frankenkernel?
Without the conflicting information, I would suggest running "sudo /sbin/depmod -a" to create the modules.dep file.
 
Old 04-24-2012, 11:17 AM   #4
peace18
LQ Newbie
 
Registered: Feb 2011
Posts: 19

Original Poster
Rep: Reputation: 0
@jschiwal

Thanks, it fixes the issue
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
how can my pc load my iptables rules on boot????!!!!! hdinn Linux - Networking 6 08-10-2009 10:38 AM
iptables-save, but rules don't load on boot-up kpachopoulos Debian 2 11-18-2006 11:36 PM
how can i load iptables rules at startup synaptical Debian 6 07-15-2005 12:28 PM
how to get iptables to load rules on startup ? qwijibow Linux - Security 5 09-02-2003 10:48 AM
I can't load iptables rules Kinstonian Linux - General 15 04-13-2003 08:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:39 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration