All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Roger Pau Monné" <roger.pau@citrix.com>
To: Sylvain Munaut <s.munaut@whatever-company.com>,
	xen-devel@lists.xenproject.org
Subject: Re: [PATCH 1/5] hotplug/linux: Fix the vif script to handle_iptable for tap interfaces
Date: Wed, 14 May 2014 13:08:34 -0400	[thread overview]
Message-ID: <5373A312.2030900@citrix.com> (raw)
In-Reply-To: <1400081005-23895-2-git-send-email-s.munaut@whatever-company.com>

On 14/05/14 11:23, Sylvain Munaut wrote:
> The TAP interfaces need the same iptables rules as the VIF, without it,
> traffic will not be forwarded to/from them is the default FORWARD policy
> is DROP/REJECT
> 
> Signed-off-by: Sylvain Munaut <s.munaut@whatever-company.com>
> ---
>  tools/hotplug/Linux/vif-bridge    |    2 +-
>  tools/hotplug/Linux/vif-common.sh |    4 ++--
>  2 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/tools/hotplug/Linux/vif-bridge b/tools/hotplug/Linux/vif-bridge
> index b7dcbd6..87279df 100644
> --- a/tools/hotplug/Linux/vif-bridge
> +++ b/tools/hotplug/Linux/vif-bridge
> @@ -97,7 +97,7 @@ case "$command" in
>          ;;
>  esac
>  
> -if [ "$type_if" = vif ]; then
> +if [ "$type_if" = vif -o "$type_if" = tap ]; then

type_if can only be "vif" or "tap" so AFAICT you can drop the if
altogether, the rest looks fine.

Roger.

  reply	other threads:[~2014-05-14 17:08 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é [this message]
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
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 --
2014-05-20 14:56 New version of the vif linux hotplug scripts improvements Sylvain Munaut
2014-05-20 14:56 ` [PATCH 1/5] hotplug/linux: Fix the vif script to handle_iptable for tap interfaces Sylvain Munaut
2014-05-21 13:26   ` Ian Campbell

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=5373A312.2030900@citrix.com \
    --to=roger.pau@citrix.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.