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

[Xen-users] Best way to secure dom0 with iptables?


  • To: <xen-users@xxxxxxxxxxxxxxxxxxx>
  • From: "Larry Ludwig" <larrylud@xxxxxxxxx>
  • Date: Mon, 12 Mar 2007 20:05:36 -0400
  • Delivery-date: Mon, 12 Mar 2007 17:05:05 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:from:to:subject:date:message-id:mime-version:content-type:x-mailer:thread-index:x-mimeole; b=YDdkLMZsXHPXLjN9k6dPRF786xglks+e1kwnkLk6dmJNzXs54TGhzyrNN3qNGSuW3KZrJFzpDOKKjImkMZrLXEDk2u0lzknok99qeqal5+eHA4pDQQiIpo2iToaOQnApNsd0A4640Ow3UvHeP/dWDJfz/68nBLDgE+mu4Zr6WJU=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>
  • Thread-index: AcdlA1NJyo6T1+t3RiqBTaMr6bdysQ==

Hi,
 
Reading up on many articles in the mailing list and wikki and on the web I still can't figure out how to secure dom0 without affecting the domU instances.
 
How can I only allow (or even disallow altogether) dom0 traffic while not affecting domU instances?
 
I tried creating a new chain just for dom0
 
-A FORWARD -m physdev  --physdev-in vif0.0 -j NODE
 
while it appears the traffic for dom0 goes on to this rule it appears if I setup the chain as what's listed below.  performing a nmap still shows all ports are open.
 
# allow icmp packets
-A NODE -p icmp --icmp-type any -j ACCEPT
# allow existing traffic through
-A NODE -i vif0.0 -m state --state ESTABLISHED,RELATED -j ACCEPT
# allow DNS traffic through
-A NODE -p 50 -j ACCEPT
-A NODE -p 51 -j ACCEPT
-A NODE -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
# reject all other ports
-A NODE -j REJECT --reject-with icmp-host-prohibited
 
Anyone have any ideas how to secure dom0??
 
Thanks.
 
-L
 
--
Larry Ludwig
Empowering Media
1-866-792-0489 x600
Have you visited our customer service blog?
_______________________________________________
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®.