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

Re: [Xen-users] antispoof with Xen 3



Dirk H. Schulz wrote:
Hi folks,

I am trying to get antispoofing running on xen3 (based on Debian Sarge). This is what I have done to enable it:

1. I have compiled a dom0 kernel with CONFIG_NETFILTER_XT_MATCH_PHYSDEV=m
2. I made sure this module is loaded: lsmod gives xt_physdev (among others). 3a. I have changed the line "(network-script network-bridge)" to "(network-script network-bridge antispoof=yes)" in /etc/xen/xend-config.sxp. 3b. I have also tried setting the default in network-bridge to yes by changing the antispoof line to "antispoof:${antispoof:-yes}".

Then I have setup a domU with vif=['mac=ae:00:00:78:be:04, ip=192.168.115.156'], but "inside" I have configured the ip address of eth0 to be 192.168.115.157. After starting the domU "ifconfig eth0" shows the ip address 192.168.115.157, but the domU still has network access to the outside.

That means: antispoofing does not work.

Hi Dirk,

I'll bet your iptables FORWARD default policy is ACCEPT. All antispoofing does is specifically add a rule allowing that particular source IP. Having a default policy of ACCEPT means that after failing the source IP matching rule it gets accepted by the default policy. Try adding this rule to iptables and see if it changes what you see.

  "iptables -P FORWARD DROP"

Now only specifically allowed source IPs will pass.

Hope that helps.

Mike Wright


I have googled a lot but found nothing I did not try. Does antispoofing in Xen3 not work with the new CONFIG_NETFILTER_XT_MATCH_PHYSDEV of kernel 2.6.16? Or is there anything else I have overlooked.

Any hint or help is appreciated.

Dirk

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




_______________________________________________
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®.