Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject:
PostPosted: Tue May 24, 2011 5:44 pm 
Offline
Senior Newbie

Joined: Tue May 24, 2011 1:02 pm
Posts: 5
Thanks, that would be great!

http://pastebin.linode.com/5350

Do you have any tips or know of any guides on learning how to do this myself?


Top
   
 Post subject:
PostPosted: Wed May 25, 2011 6:17 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Try this
http://db.tt/wgvN7Dy

Let me know if it works.

_________________
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: Thu May 26, 2011 7:33 pm 
Offline
Senior Newbie

Joined: Tue May 24, 2011 1:02 pm
Posts: 5
Thanks for the patch!

Sorry for the noob question, but I'm not sure how to use it. Could you point me in the right direction please?

Thank you


Top
   
 Post subject:
PostPosted: Fri May 27, 2011 11:24 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
run patch -p1 < /pathtopatch

_________________
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: Fri May 27, 2011 12:44 pm 
Offline
Senior Newbie

Joined: Tue May 24, 2011 1:02 pm
Posts: 5
The patch ran successfully (after I specified which file to patch); but did not seem to fix the issue.

After restarting iptables, I got:

/etc/init.d/iptables: line 125: syntax error near unexpected token `&&'
/etc/init.d/iptables: line 125: ` && $IPTABLES -t security -P OUTPUT $policy \ '


Here is the current iptables file (after patching): http://pastebin.linode.com/5376

Thank you for your continued help!


Top
   
 Post subject:
PostPosted: Fri May 27, 2011 3:05 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Some trailing whitespace crept in oops!

I've updated the patch, and just for webmonkey here's a patch to fix your broken iptables script http://db.tt/zYuD1lk

_________________
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: Fri May 27, 2011 3:24 pm 
Offline
Senior Newbie

Joined: Tue May 24, 2011 1:02 pm
Posts: 5
It works! I repatched it and corrected the 'ip_conntrack_netbios_n' issue (just like the first post in this thread) and now I can restart iptables just fine.

Much thanks obs!

Would this same patch work for Ubuntu? I'm having the same issue on a different Linode server.


Top
   
 Post subject:
PostPosted: Fri May 27, 2011 3:55 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
No it wouldn't work on ubuntu your issue there will be something different.

_________________
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: Thu Jul 21, 2011 8:07 am 
Offline
Senior Member

Joined: Wed May 13, 2009 1:32 pm
Posts: 737
Location: Italy
this problem is present also in CentOS 6 :shock:

The link to the patch is broken and I have the problem also on a fresh new CentOS 6.


Top
   
 Post subject:
PostPosted: Thu Jul 21, 2011 8:47 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
sblantipodi wrote:
this problem is present also in CentOS 6 :shock:

The link to the patch is broken and I have the problem also on a fresh new CentOS 6.


Whoops must have moved the file, here's a link http://db.tt/wgvN7Dy

I've not tried it on centos6

_________________
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: Thu Jul 21, 2011 9:37 am 
Offline
Senior Member

Joined: Wed May 13, 2009 1:32 pm
Posts: 737
Location: Italy
obs wrote:
sblantipodi wrote:
this problem is present also in CentOS 6 :shock:

The link to the patch is broken and I have the problem also on a fresh new CentOS 6.


Whoops must have moved the file, here's a link http://db.tt/wgvN7Dy

I've not tried it on centos6


can you do it please?
I want to be sure that it will work ok.

thanks.


Top
   
 Post subject:
PostPosted: Thu Jul 21, 2011 11:22 am 
Offline
Senior Member

Joined: Wed May 13, 2009 1:32 pm
Posts: 737
Location: Italy
I would like to see a patch from linode guys since they gived us a fresh new VPS with this error from start :)

Is it asking too much?


Top
   
 Post subject:
PostPosted: Thu Jul 21, 2011 11:53 am 
Offline
Senior Member

Joined: Wed May 13, 2009 1:32 pm
Posts: 737
Location: Italy
this is what this excellent support answered:
Quote:
Hello,

Thank you for contacting us! The issue you are experiencing with iptables is happening due to our paravirt kernel having a "security" chain compiled into it, and the default "iptables" init script included with CentOS does not know how to handle it. You are able to resolve this issue by downloading an amended version of the "iptables" init script. Please issue the following commands as the "root" user:

cd /etc/init.d
mv iptables ~/iptables.bak
wget http://epoxie.net/12023.txt && cat 12023.txt | tr -d '\r' > iptables
chmod +x iptables
rm -rf 12023.txt

Now, "iptables" should now start successfully:

service iptables restart

If there is anything else we can do for you, please let us know.

Regards,


Fixed the problem, thank you Linode support!!!


Top
   
 Post subject:
PostPosted: Thu May 03, 2012 7:11 pm 
Offline
Newbie

Joined: Thu May 03, 2012 12:57 pm
Posts: 2
Location: Las Vegas, NV
Unfortunately I'm running into the same issue on a minty fresh install of CentOS and the link on epoxie.net is dead... does anyone have a working /etc/init.d/iptables script they'd be willing to share?


Top
   
 Post subject:
PostPosted: Thu May 03, 2012 7:24 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Mine still exists https://www.dropbox.com/s/nrbvbe2veypdq ... bles.patch dunno if it still works, this was for centos 5.x

_________________
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
   
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