Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject:
PostPosted: Fri Apr 22, 2011 7:43 am 
Offline
Senior Member

Joined: Wed May 13, 2009 1:32 pm
Posts: 737
Location: Italy
obs wrote:
I installed centos locally first and that doesn't suffer from the problem so it seems to be a linode only problem.


I have this problem too on CentOS 5.6, but I have it only if I boot with the latest paravirt kernel 2.6.38, no problem if I boot with the legacy one 2.6.18.

Code:
[root@**** ~]# service iptables restart
Flushing firewall rules:                                   [  OK  ]
Setting chains to policy ACCEPT: security raw nat mangle fi[FAILED]


Sincerely I haven't understood what is the problem and how to solve it.


Top
   
 Post subject:
PostPosted: Fri Apr 22, 2011 12:49 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Apply this patch http://pastebin.linode.com/5191 to /etc/init.d/iptables

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject:
PostPosted: Sat Apr 23, 2011 8:22 am 
Offline
Senior Member

Joined: Wed May 13, 2009 1:32 pm
Posts: 737
Location: Italy
obs wrote:
Apply this patch http://pastebin.linode.com/5191 to /etc/init.d/iptables


I have just applyed the patch, restarted my CentoOS 5.6 with the latest paravirt 2.6.38 but on boot I can read this error:

Code:
Settings chains to policy ACCEPT: security raw mangle filter [FAILED]


Thanks for the help, I appreciate it.


Top
   
 Post subject:
PostPosted: Sat Apr 23, 2011 9:49 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Odd worked for someone else and myself, can you put the contents of your /etc/init.d/iptables in pastebin.linode.com

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject:
PostPosted: Sat Apr 23, 2011 10:05 am 
Offline
Senior Member

Joined: Wed May 13, 2009 1:32 pm
Posts: 737
Location: Italy
obs wrote:
Odd worked for someone else and myself, can you put the contents of your /etc/init.d/iptables in pastebin.linode.com


Done:
http://pastebin.linode.com/5199


Top
   
 Post subject:
PostPosted: Sat Apr 23, 2011 10:30 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Well it's patched ok without looking at the server I'm not sure what's wrong.

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject:
PostPosted: Sat Apr 23, 2011 10:44 am 
Offline
Senior Member

Joined: Wed May 13, 2009 1:32 pm
Posts: 737
Location: Italy
obs wrote:
Well it's patched ok without looking at the server I'm not sure what's wrong.


If I manually restart iptables with
service iptables restart
I get no error.

But on boot I can see this:
Image


Top
   
 Post subject:
PostPosted: Sat Apr 23, 2011 10:50 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
That's just plain weird, I don't have a centos system handy to test this on right now either :/

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject:
PostPosted: Sat Apr 23, 2011 11:35 am 
Offline
Senior Member

Joined: Wed May 13, 2009 1:32 pm
Posts: 737
Location: Italy
no one else with this problem?

You can see this problem only on boot because if you restart iptables manually, no error is displayed.


Top
   
 Post subject:
PostPosted: Thu Apr 28, 2011 6:56 pm 
Offline
Senior Member

Joined: Wed May 13, 2009 1:32 pm
Posts: 737
Location: Italy
I would like to have an answer from Linode since this is a problem of most users here running CentOS.

Thanks.


Top
   
 Post subject:
PostPosted: Sat May 21, 2011 4:51 am 
Offline
Senior Newbie

Joined: Mon Aug 24, 2009 8:59 pm
Posts: 14
Website: http://thelongmile.net
Location: Wales, UK
Hi all, Sorry to hijack such an old thread

I've attempted to apply the same patch here, this is the exact contents of the file

Code:
--- iptables.new   2011-04-21 14:04:21.000000000 +0100
+++ iptables   2011-04-21 14:05:44.000000000 +0100
@@ -119,7 +119,13 @@
     ret=0
     for i in $tables; do
         echo -n "$i "
-        case "$i" in
+        case "$i" in
+      security)
+                    $IPTABLES -t security -P INPUT $policy \
+                    && $IPTABLES -t security -P OUTPUT $policy \
+                    && $IPTABLES -t security -P FORWARD $policy \
+                   || let ret+=1
+                ;;
             raw)
                 $IPTABLES -t raw -P PREROUTING $policy \
                     && $IPTABLES -t raw -P OUTPUT $policy \


This is as per the download button on this paste file. On a fresh install of Centos 5.6.

The patch runs, but comes up to the following

Code:
missing header for unified diff at line 3 of patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- iptables.new   2011-04-21 14:04:21.000000000 +0100
|+++ iptables   2011-04-21 14:05:44.000000000 +0100
--------------------------
File to patch: /etc/init.d/iptables
patching file /etc/init.d/iptables
Hunk #1 FAILED at 119.
1 out of 1 hunk FAILED -- saving rejects to file /etc/init.d/iptables.rej


Any ideas here at all?


Top
   
 Post subject:
PostPosted: Sun May 22, 2011 6:06 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
It means /etc/init.d/iptables is different compared to the one I made the patch for, post the contents of it into pastebin.linode.com and post the url here

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject:
PostPosted: Sun May 22, 2011 6:08 am 
Offline
Senior Newbie

Joined: Mon Aug 24, 2009 8:59 pm
Posts: 14
Website: http://thelongmile.net
Location: Wales, UK
oops sorry, I thought I had updated this, I fixed this one myself eventually, looking at the config, everything was the same but it just refused to add the extra entry, I manually added it, and everything generally worked, I still have the profile but need to boot it if you'd like to see what else is different, as it's only the additional lines I added
(could be good for reference?)


Top
   
 Post subject:
PostPosted: Sun May 22, 2011 6:37 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
If adding the lines manually worked then don't worry about it :) Linode already know about this issue so hopefully it'll be fixed in the distro soon.

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject: Update?
PostPosted: Tue May 24, 2011 1:16 pm 
Offline
Senior Newbie

Joined: Tue May 24, 2011 1:02 pm
Posts: 5
Does anyone know of an updated patch? The pastebin link doesn't work anymore and I'm still having this issue.

Thanks!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group