OpenVZ Forum


Home » General » Support » OpenVZ & Shorewall
Re: OpenVZ & Shorewall [message #2117 is a reply to message #2113] Mon, 20 March 2006 20:48 Go to previous messageGo to previous message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

You can write a short script like this:

F=/tmp/out.ovz
lsmod >> $F
iptables -Ln >> $F
echo "Starting shorewall" >> $F
shorewall start 2>&1 | tee -a $F
echo "Shorewall started" >> $F
lsmod >> $F
iptables -Ln >> $F
echo "Clearing shorewall" >> $F
shorewall clear 2>&1 | tee -a $F
echo "Shorewall cleared" >> $F
lsmod >> $F
iptables -Ln >> $F


and run it on openvz box, then change the F and run it on your original kernel. As you see shorewall rules will be cleared so you will have access to the box.

What you do next is compare those two files you get. Run diff -u on them to see the difference (or you could even see some error message from 'shorewall start' command).

If you will still have a problem, post the diff here (as an attachement) and we will take a look.

Regards,
Kir


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Fedora Core 5 (FC5) Template?
Next Topic: Can I create a template from an updated VPS?
Goto Forum:
  


Current Time: Mon Aug 05 18:11:53 GMT 2024

Total time taken to generate the page: 0.03183 seconds