There are several threads in the forums about karmic not shutting down properly, but none of them were under the exact same circumstances as I'm having.
I'm using 9.10 server-edition as a intercepting squid server, and during shutdown/reboot, it gets to "deconfiguring network interfaces" then hangs indefinitely. I can do REISUB, but it doesn't actually reboot. It tells me that it's killing everything, the sync completes, and the remount r/o completes, but the "B" part doesn't do anything.
If I don't REISUB, it hangs for a few minutes on startup before init outputs anything.
I posted all the useful information I can think of below. In regard to my iptables rules, do I need something on pre/post-down to clear them? Is that the problem?
Network hardware:
Code:
06:01.0 Ethernet controller: ADMtek NC100 Network Everywhere Fast Ethernet 10/100 (rev 11)
06:08.0 Ethernet controller: Intel Corporation 82562ET/EZ/GT/GZ - PRO/100 VE (LOM) Ethernet Controller (rev 01)
/etc/network/interfaces: (I have udev rules that set my interface names)
Code:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto wan0
iface wan0 inet static
address 208.78.184.140
netmask 255.255.255.128
gateway 208.78.184.129
auto lan0
iface lan0 inet static
address 192.168.2.1
netmask 255.255.255.0
pre-up iptables-restore < /etc/iptables.rules
The iptables commands that were entered for generating /etc/iptables.rules with iptables-save:
Code:
# iptables forwarding
iptables -A FORWARD -i lan0 -o wan0 -s 192.168.2.0/24 -m state --state NEW -j ACCEPT
iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A POSTROUTING -t nat -j MASQUERADE
# iptables for squid transparent proxy
iptables -t nat -A PREROUTING -i lan0 -p tcp --dport 80 -j DNAT --to 192.168.2.1:3128
iptables -t nat -A PREROUTING -i wan0 -p tcp --dport 80 -j REDIRECT --to-port 3128
iptables -A INPUT -i wan0 -p icmp --icmp-type 8 -j DROP
iptables -A INPUT -i wan0 -s 192.168.2.0/24 -j ACCEPT
iptables -A INPUT -i wan0 -m state --state ESTABLISHED -j ACCEPT
iptables -A INPUT -i wan0 -j REJECT
Bookmarks