Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject:
PostPosted: Thu May 03, 2012 7:38 pm 
Offline
Newbie

Joined: Thu May 03, 2012 12:57 pm
Posts: 2
Location: Las Vegas, NV
obs, thank you so much! that resolved the issue. I hadn't tried your solution as I ended up here by googling 12023.txt trying to go that route...

for anyone else with the issue, get obs patch file and run:

Code:
patch -u /etc/init.d/iptables centos.iptables.patch


Worked like a charm! Thanks again!


Top
   
 Post subject: Re:
PostPosted: Wed Oct 31, 2012 5:26 am 
Offline

Joined: Wed Dec 15, 2010 1:22 pm
Posts: 1
obs wrote:
Mine still exists https://www.dropbox.com/s/nrbvbe2veypdq ... bles.patch dunno if it still works, this was for centos 5.x


Thank you very much. Its working fine.


Top
   
 Post subject: Re: IP Tables Error
PostPosted: Sun Jun 23, 2013 2:14 pm 
Offline
Senior Member

Joined: Sun Mar 28, 2010 2:43 pm
Posts: 76
Website: http://tomakefast.com
Location: Texas
I just noticed the same error.

iptables: Setting chains to policy ACCEPT: security raw nat[FAILED]filter
iptables: Unloading modules: [ OK ]
iptables: Applying firewall rules: [ OK ]

Is this something I should be that concerned about? The "rules apply" so doesn't seem like a big deal?

_________________
PHP Development @ Tomakefast


Top
   
 Post subject: Re: IP Tables Error
PostPosted: Sat Sep 07, 2013 4:35 am 
Offline
Senior Newbie
User avatar

Joined: Sun Aug 18, 2013 10:45 am
Posts: 5
Hi,
I am getting a similar error with my CentOS 6.4. Could you please place that patch again?

iptables: Flushing firewall rules: [ OK ]
iptables: Setting chains to policy ACCEPT: security raw nat[FAILED]filter
iptables: Unloading modules: [ OK ]
iptables: Applying firewall rules: [ OK ]


Regards,
Jayadevan


Top
   
 Post subject: Re: IP Tables Error
PostPosted: Thu Dec 05, 2013 11:00 am 
Offline

Joined: Thu Dec 05, 2013 10:49 am
Posts: 1
This worked for me on a new Centos 64bit linode.

Thanks!


Top
   
 Post subject: Re: IP Tables Error
PostPosted: Sat Apr 26, 2014 11:37 pm 
Offline

Joined: Sat Apr 26, 2014 11:29 pm
Posts: 1
on line (or about line) 142 of /etc/init.d/iptables there will be a for loop that looks something like this.
142 for i in $tables; do
143 echo -n "$i "
144 case "$i" in
145 raw)
146 $IPTABLES -t raw -P PREROUTING $policy \
147 && $IPTABLES -t raw -P OUTPUT $policy \
148 || let ret+=1
149 ;;
150 filter)
151 $IPTABLES -t filter -P INPUT $policy \
152 && $IPTABLES -t filter -P OUTPUT $policy \
153 && $IPTABLES -t filter -P FORWARD $policy \
154 || let ret+=1
155 ;;
156 nat)
157 $IPTABLES -t nat -P PREROUTING $policy \
158 && $IPTABLES -t nat -P POSTROUTING $policy \
159 && $IPTABLES -t nat -P OUTPUT $policy \
160 || let ret+=1
161 ;;
162 mangle)
163 $IPTABLES -t mangle -P PREROUTING $policy \
164 && $IPTABLES -t mangle -P POSTROUTING $policy \
165 && $IPTABLES -t mangle -P INPUT $policy \
166 && $IPTABLES -t mangle -P OUTPUT $policy \
167 && $IPTABLES -t mangle -P FORWARD $policy \
168 || let ret+=1
169 ;;
170 *)
171 let ret+=1
172 ;;
173 esac
174 done

you will need to add entries to this file

security)
$IPTABLES -t filter -P INPUT $policy \
&& $IPTABLES -t filter -P OUTPUT $policy \
&& $IPTABLES -t filter -P FORWARD $policy \
|| let ret+=1
;;

that will get rid of the error message

142 for i in $tables; do
143 echo -n "$i "
144 case "$i" in
145 security)
146 $IPTABLES -t filter -P INPUT $policy \
147 && $IPTABLES -t filter -P OUTPUT $policy \
148 && $IPTABLES -t filter -P FORWARD $policy \
149 || let ret+=1
150 ;;
151 raw)
152 $IPTABLES -t raw -P PREROUTING $policy \
153 && $IPTABLES -t raw -P OUTPUT $policy \
154 || let ret+=1
155 ;;
156 filter)
157 $IPTABLES -t filter -P INPUT $policy \
158 && $IPTABLES -t filter -P OUTPUT $policy \
159 && $IPTABLES -t filter -P FORWARD $policy \
160 || let ret+=1
161 ;;
162 nat)
163 $IPTABLES -t nat -P PREROUTING $policy \
164 && $IPTABLES -t nat -P POSTROUTING $policy \
165 && $IPTABLES -t nat -P OUTPUT $policy \
166 || let ret+=1
167 ;;
168 mangle)
169 $IPTABLES -t mangle -P PREROUTING $policy \
170 && $IPTABLES -t mangle -P POSTROUTING $policy \
171 && $IPTABLES -t mangle -P INPUT $policy \
172 && $IPTABLES -t mangle -P OUTPUT $policy \
173 && $IPTABLES -t mangle -P FORWARD $policy \
174 || let ret+=1
175 ;;
176 *)
177 let ret+=1
178 ;;
179 esac
180 done


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


Who is online

Users browsing this forum: No registered users and 3 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