iptables - resource temporary unavailable
any time when i'm restarting my firewall rules (NAT mostly, about 500 users) i got this error -> iptables - resource temporary unavailable. but, if i unplug users (main switch off) and restart firewall everyting is fine
my system is fedora core 4, iptables 1.3.5, kernel 2.6.16.18
anybody can help?
robee
This is usually due to a lack of memory...
-Sietse
________________________________
From: [email protected] on behalf of robee
Sent: Wed 07-Jun-06 9:54
To: [email protected]
Subject: iptables - resource temporary unavailable
any time when i'm restarting my firewall rules (NAT mostly, about 500 users) i got this error -> iptables - resource temporary unavailable. but, if i unplug users (main switch off) and restart firewall everyting is fine
my system is fedora core 4, iptables 1.3.5, kernel 2.6.16.18
anybody can help?
robee
----- Original Message ----- From: "Sietse van Zanen" <[email protected]>
To: "robee" <[email protected]>; <[email protected]>
Sent: Wednesday, June 07, 2006 10:07 AM
Subject: RE: iptables - resource temporary unavailable
Quoted 6 lines
This is usually due to a lack of memory...
-Sietse
________________________________
From: [email protected] on behalf of robee
Sent: Wed 07-Jun-06 9:54
To: [email protected]
Quoted 8 lines
Subject: iptables - resource temporary unavailable
any time when i'm restarting my firewall rules (NAT mostly, about 500 users) i got this error -> iptables - resource temporary unavailable. but, if i unplug users (main switch off) and restart firewall everyting is fine
my system is fedora core 4, iptables 1.3.5, kernel 2.6.16.18 anybody can help?
robee
so, what you suggest?
robee
Duh, add memory?
But then again, you haven't included your system specs, neither a good view of the log entries. It's fairly impossible to draw a good conlsusion from the sparse info you supplied.
-Sietse
________________________________
From: [email protected] on behalf of robee
Sent: Wed 07-Jun-06 10:46
To: [email protected]
Subject: Re: iptables - resource temporary unavailable
----- Original Message -----
From: "Sietse van Zanen" <[email protected]>
To: "robee" <[email protected]>; <[email protected]>
Sent: Wednesday, June 07, 2006 10:07 AM
Subject: RE: iptables - resource temporary unavailable
Quoted 6 lines
This is usually due to a lack of memory...
-Sietse
________________________________
From: [email protected] on behalf of robee
Sent: Wed 07-Jun-06 9:54
To: [email protected]
Quoted 8 lines
Subject: iptables - resource temporary unavailable
any time when i'm restarting my firewall rules (NAT mostly, about 500 users) i got this error -> iptables - resource temporary unavailable. but, if i unplug users (main switch off) and restart firewall everyting is fine
my system is fedora core 4, iptables 1.3.5, kernel 2.6.16.18 anybody can help?
robee
so, what you suggest?
robee
Quoted 5 lines · robee
any time when i'm restarting my firewall rules (NAT mostly, about 500 users) i got this error -> iptables - resource temporary unavailable. but, if i unplug users (main switch off) and restart firewall everyting is fine
my system is fedora core 4, iptables 1.3.5, kernel 2.6.16.18
I don't think it is lack of memory, the error message for that includes the word memory. Resource temporarily unavailable means that something else is currently using the resource. Is it possible that another iptables instance is running at the same time?
Quoted 11 lines · robee
Quoted 5 lines
any time when i'm restarting my firewall rules (NAT mostly, about 500 users) i got this error -> iptables - resource temporary unavailable. but, if i unplug users (main switch off) and restart firewall everyting is fine my system is fedora core 4, iptables 1.3.5, kernel 2.6.16.18
I don't think it is lack of memory, the error message for that includes the word memory. Resource temporarily unavailable means that something else is currently using the resource. Is it possible that another iptables instance is running at the same time?
(Not that I know the solution, but..) Iptables is a userspace utility to setup rules. Once the rule is setup, iptables itself terminates and Netfilter (kernelspace) will use the rule.
Although you could add the same rule multiple times (which is a bit useless..), AFAICS there's no way to have Netfilter "running" multiple times.
But you do have a point: is the OP flushing all rules/deleting all user-chains when he is restarting the firewall script ?
Gr,
Rob
----- Original Message ----- From: "Rob Sterenborg" <[email protected]>
To: <[email protected]>
Sent: Thursday, June 08, 2006 7:23 AM
Subject: RE: iptables - resource temporary unavailable
Quoted 10 lines
Quoted 10 lines · robee
Quoted 5 lines
any time when i'm restarting my firewall rules (NAT mostly, about 500 users) i got this error -> iptables - resource temporary unavailable. but, if i unplug users (main switch off) and restart firewall everyting is fine my system is fedora core 4, iptables 1.3.5, kernel 2.6.16.18
I don't think it is lack of memory, the error message for that includes the word memory. Resource temporarily unavailable means that something else is currently using the resource. Is it possible that another iptables instance is running at the same time?
Quoted 10 lines
(Not that I know the solution, but..) Iptables is a userspace utility to setup rules. Once the rule is setup, iptables itself terminates and Netfilter (kernelspace) will use the rule.
Although you could add the same rule multiple times (which is a bit useless..), AFAICS there's no way to have Netfilter "running" multiple times.
But you do have a point: is the OP flushing all rules/deleting all user-chains when he is restarting the firewall script ?
Gr,
Rob
yes, the first rules are:
iptables -F
iptables -F -t nat
iptables -F -t mangle
but, the same time firewall is restarting there also pppoe server working. if-up.local file contain iptables rules also and it might be that iptables lines from firewall and from if-up.local script are running the same time.
robee
Quoted 13 lines · robee
Quoted 10 lines
(Not that I know the solution, but..) Iptables is a userspace utility to setup rules. Once the rule is setup, iptables itself terminates and Netfilter (kernelspace) will use the rule.
Although you could add the same rule multiple times (which is a bit useless..), AFAICS there's no way to have Netfilter "running" multiple times.
But you do have a point: is the OP flushing all rules/deleting all user-chains when he is restarting the firewall script ?
Gr,
Robyes, the first rules are:
Quoted 7 lines
iptables -F
iptables -F -t nat
iptables -F -t manglebut, the same time firewall is restarting there also pppoe server working. if-up.local file contain iptables rules also and it might be that iptables lines from firewall and from if-up.local script are running the same time.
Yes, that is what I meant... the iptables userspace program has to use a kernel interface to install the rules. If another instance of the iptables userspace program is currently installing some rules already, then the kernel interface will be in use, and you'll get this error. Or something like that; I haven't looked at the source code in detail.
I've never seen this error myself, but I use locking around all calls to iptables. You should be doing this anyway if you are using iptables rather than iptables-restore, since your script's operation isn't atomic if it calls iptables multiple times.
----- Original Message ----- From: "Philip Craig" <[email protected]>
To: "robee" <[email protected]>
Cc: <[email protected]>
Sent: Thursday, June 08, 2006 9:39 AM
Subject: Re: iptables - resource temporary unavailable
Quoted 19 lines · robee
Quoted 10 lines
Quoted 10 lines
(Not that I know the solution, but..) Iptables is a userspace utility to setup rules. Once the rule is setup, iptables itself terminates and Netfilter (kernelspace) will use the rule.
Although you could add the same rule multiple times (which is a bit useless..), AFAICS there's no way to have Netfilter "running" multiple times.
But you do have a point: is the OP flushing all rules/deleting all user-chains when he is restarting the firewall script ?
Gr,
RobQuoted 8 lines
yes, the first rules are:
iptables -F
iptables -F -t nat
iptables -F -t mangle
but, the same time firewall is restarting there also pppoe server working. if-up.local file contain iptables rules also and it might be that iptables lines from firewall and from if-up.local script are running the same time.
Quoted 9 lines
Yes, that is what I meant... the iptables userspace program has to use a kernel interface to install the rules. If another instance of the iptables userspace program is currently installing some rules already, then the kernel interface will be in use, and you'll get this error. Or something like that; I haven't looked at the source code in detail. I've never seen this error myself, but I use locking around all calls to iptables. You should be doing this anyway if you are using iptables rather than iptables-restore, since your script's operation isn't atomic if it calls iptables multiple times.
Could you tell me how do you lock around calls to iptables?
robee-admin
Quoted 1 line · robee
Could you tell me how do you lock around calls to iptables?
See 'man lockfile'. It includes an example.