nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

computer hangs when using iptables

This is a discussion on computer hangs when using iptables within the Ubuntu / Debian forums, part of the Linux Distribution category; When I add any iptables rule, e.g.: iptables -P INPUT DROP iptables -P OUTPUT ACCEPT iptables -P FORWARD DROP iptables ...


Go Back   nixCraft Linux Forum > Linux Distribution > Ubuntu / Debian

Linux answers from nixCraft.


Ubuntu / Debian Discussion about Debian or Ubuntu Linux related problems.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-06-2009, 04:36 AM
Junior Member
User
 
Join Date: Jun 2009
OS: Debian
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
asnicar81 is on a distinguished road
Default computer hangs when using iptables

When I add any iptables rule, e.g.:

iptables -P INPUT DROP
iptables -P OUTPUT ACCEPT
iptables -P FORWARD DROP
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A OUTPUT -m state --state ESTABLISHED,RELATED -j ACCEPT

The rules work, but:

When I want to shut down the pc (or reboot) with a normal user, it just hangs...I can still "see GNOME" - the Shutdown button is "stuck". But I can shut down the pc by hitting alt+ctrl+backspace

When I want to shut down the pc with root in a terminal, it lastly says: "acpid: exiting", but it wouldn't shut down

problem occurs: I tried it on a freshly installed:
2.6.26-2-amd64 ...x85_64 GNU/Linux (my pc)
and
2.6.26-1-686 #1 SMP i686 GNU/Linux (other pc)
even with
2.6.26-2-686 #1 SMP i686 GNU/Linux (the same other pc)

Debian Lenny's

I tried a Debian Lenny on VirtualBox, without GNOME, problems the same, I must "reset" the box to reboot
problem is almost the same (when shutdown, or reboot it still hangs):
...

"Asking all remaining processes to terminate....acpid: exiting

done.

Killing all remaining processes...failed.
Stopping portmap daemon..."

and it just waits, waits

lshw:
pastebin - collaborative debugging tool
lspci:
pastebin - collaborative debugging tool

Is this a bug? What should I do if I want the pc to shut down when pressing the shut down button, and use iptables too?
Under Ubuntu, when I simply add an iptables rule, then I want to shut down the pc, it shuts down

Thank you
Reply With Quote
  #2 (permalink)  
Old 05-06-2009, 09:41 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 245 Times in 184 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Firewall will never hang your computer while rebooting or shuttlingdown the box. This is something else.. Do you run debian inside virtualbox? Try updating both kernel and virtualbox software.
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
  #3 (permalink)  
Old 05-06-2009, 03:12 PM
Junior Member
User
 
Join Date: Jun 2009
OS: Debian
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
asnicar81 is on a distinguished road
Default

When I use:

"/etc/init.d/network stop"

It shuts down/reboots/logs out ok

I'm thinking about it, maybe it's an acpid bug.
I tried an Ubuntu 9.04, it works ok, so it could be Debian related

It's always up-to-date

ps.: for a moment I thought I got it work :
I append the sid repo in Lenny (in VirtualBox) for the sources.list, and installed acpid from the sid repo:
When I give a reboot command in a root terminal: It finally reboot's ok!
But, when I click at shutdown, with a normal user, it still hangs, the button looks like it's pressed, but nothing happens, even after minutes.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
SuSe hangs on shutdown lacloai Linux software 6 13-10-2008 05:14 AM
expect script hangs antzjos Shell scripting 0 22-05-2008 06:37 PM
Fedora 8 Installation Hangs / Stops at maria_88 Linux software 2 13-12-2007 05:01 PM
script hangs when a remote server is down vikas027 Shell scripting 2 11-11-2007 03:47 PM
Problem my computer MRTG Mediocre Linux software 2 21-03-2005 11:55 AM


All times are GMT +5.5. The time now is 07:38 AM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38