From: Jacek Konieczny <jajcus@jajcus.net>
To: Sylvain Munaut <s.munaut@whatever-company.com>
Cc: xen-devel@lists.xenproject.org
Subject: Re: [PATCH 4/5] hotplug/linux: Add IPv6 support to the iptables logic
Date: Fri, 16 May 2014 21:47:41 +0200 [thread overview]
Message-ID: <53766B5D.5050602@jajcus.net> (raw)
In-Reply-To: <CAF6-1L6ELEf1UYrjAutqqi97ye-53zeANUfX5jjX+BHqopaU6A@mail.gmail.com>
On 2014-05-16 21:33, Sylvain Munaut wrote:
>> I think it would be a good idea to allow autoconfigured IPv6 addresses.
>> These have the lower 64-bit of the address set to a value based on the
>> interface MAC address (EUI-64), which is known in the vif script.
>>
>> Unfortunately it is not easy to compute that suffix in a shell script.
>> In my setup I use a helper Python script, but guess this might not be
>> the perfect solution for the standard scripts.
>
> The issue is how do you get the prefix ?
The prefix doesn't really matter if the goal is to prevent spoofing
other hosts' addresses. And ip6tables allows to match the lower half of
an IPv6 address: '-d ::1111:2222:3333:4444/::ffff:ffff:ffff:ffff'
This itself won't prevent spoofing the network part (and some policies
in the network may rely of the network part of addresses), but this hole
can be sealed with a single ip6tables added, with no need of Xen hotplug
scripts cooperation. I don't know if that is acceptable.
Greets,
Jacek
next prev parent reply other threads:[~2014-05-16 19:47 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-14 15:23 Improvement to linux/hotplug scripts Sylvain Munaut
2014-05-14 15:23 ` [PATCH 1/5] hotplug/linux: Fix the vif script to handle_iptable for tap interfaces Sylvain Munaut
2014-05-14 17:08 ` Roger Pau Monné
2014-05-15 15:53 ` Ian Campbell
2014-05-16 8:53 ` Sylvain Munaut
2014-05-14 15:23 ` [PATCH 2/5] hotplug/linux: Add an option to disable acceleration on VIF Sylvain Munaut
2014-05-15 15:57 ` Ian Campbell
2014-05-20 7:55 ` Sylvain Munaut
2014-05-20 9:10 ` Ian Campbell
2014-05-14 15:23 ` [PATCH 3/5] hotplug/linux: Improve iptables logic Sylvain Munaut
2014-05-15 16:15 ` Ian Campbell
2014-05-20 8:02 ` Sylvain Munaut
2014-05-20 9:17 ` Ian Campbell
2014-05-20 11:23 ` Sylvain Munaut
2014-05-20 11:28 ` Ian Campbell
2014-05-14 15:23 ` [PATCH 4/5] hotplug/linux: Add IPv6 support to the " Sylvain Munaut
2014-05-15 16:19 ` Ian Campbell
2014-05-15 16:23 ` Ian Campbell
2014-05-20 11:58 ` Sylvain Munaut
2014-05-20 12:24 ` Ian Campbell
2014-05-20 13:11 ` Sylvain Munaut
2014-05-20 13:54 ` Ian Campbell
2014-05-20 12:32 ` configuring vif options to be consumed by hotplug scripts (Was: Re: [PATCH 4/5] hotplug/linux: Add IPv6 support to the iptables logic) Ian Campbell
2014-05-16 18:13 ` [PATCH 4/5] hotplug/linux: Add IPv6 support to the iptables logic Jacek Konieczny
2014-05-16 19:33 ` Sylvain Munaut
2014-05-16 19:47 ` Jacek Konieczny [this message]
2014-05-14 15:23 ` [PATCH 5/5] hotplug/linux: Add IPv6 support to vif-route Sylvain Munaut
2014-05-15 16:20 ` Ian Campbell
2014-05-16 19:17 ` Jason Andryuk
2014-05-16 19:19 ` Sylvain Munaut
2014-05-20 8:06 ` Sylvain Munaut
2014-05-20 9:20 ` Ian Campbell
2014-05-20 11:17 ` Sylvain Munaut
2014-05-20 11:27 ` Ian Campbell
-- strict thread matches above, loose matches on Subject: below --
2017-01-24 16:49 [PATCH 0/5] Various improvements for the VIF linux hotplug scripts Sylvain Munaut
2017-01-24 16:49 ` [PATCH 4/5] hotplug/linux: Add IPv6 support to the iptables logic Sylvain Munaut
2017-01-24 17:43 ` Ian Jackson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53766B5D.5050602@jajcus.net \
--to=jajcus@jajcus.net \
--cc=s.munaut@whatever-company.com \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).