[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] Startup-script changing firewall settings each time domu (re)starts or gets created


  • To: <xen-users@xxxxxxxxxxxxxxxxxxx>
  • From: "Guido Hecken" <guido.hecken@xxxxxxxxxxxxx>
  • Date: Thu, 3 Feb 2011 08:26:26 +0100
  • Delivery-date: Wed, 02 Feb 2011 23:27:41 -0800
  • List-id: Xen user discussion <xen-users.lists.xensource.com>
  • Thread-index: AcvDbZdJUKWAQwjAQR2panrkQOdvNQAA5oCw
  • Thread-topic: [Xen-users] Startup-script changing firewall settings each time domu (re)starts or gets created

Hi list,

has anyone an idea on where to put some custom startup-script in
addition to the default scripts (network-bridge and vif-bridge).
I have xen bridge setup running fine and want to put some firewall rules
in place and have them refreshed, every time a special domu is created
or (re)started.
Something like this:
...
INTERFACE=`xm list $NAME | tail -1 | awk '{print $2}'`
iptables -A FORWARD -m physdev --physdev-in vif${INTERFACE}.0 -j $IN
iptables -A $IN -s 192.168.161.82 -p tcp --sport 3389 -d 192.168.161.216
-j ACCEPT
...
The Script is working fine an can be executed manually with the desired
results.

Any input is highly welcome

Guido

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.