Statistics
| Branch: | Tag: | Revision:

root / common.sh @ efce42cb

History | View | Annotate | Download (5.4 kB)

# Date Author Comment
efce42cb 02/28/2014 01:20 pm Dimitris Aragiorgis

Fix typo in ebtables

If interface has an IP we used to add a rule that does not allow
packets coming from TAP to have a different IP. There was a typo
in if statement and the rule did never apply.

Still, we do NOT want this rule so we fix typo and comment the...

c7b580d5 02/28/2014 12:56 pm Dimitris Aragiorgis

Do not add ebtables rule for dhcp response

nfdhpcd opens a socket and binds it with tap interface. So dhcp
response will NOT go though the bridge and ebtables rule is
not needed.

Signed-off-by: Dimitris Aragiorgis <>

52366a23 02/27/2014 05:49 pm Dimitris Aragiorgis

Fix ebtables

1) Add ebtables in INPUT/OUTPUT chains too
This is needed because multicast packets
(e.g. with dst address 01:00:83:xx:xx:xx) do NOT go through forward chain

2) In case of nfdhpcd allow DHCP replies only with src address the
MAC address of incoming device (e.g. prv0)...

1bdc9427 01/13/2014 11:03 am Dimitris Aragiorgis

Move fix-net logic from hooks to if-up

In target node we used to run arping and ndsend. Move these
commands to if-up script.

Introduce helper function to get eui64 and uplink.

Signed-off-by: Dimitris Aragiorgis <>

0363b080 12/09/2013 02:25 pm Dimitris Aragiorgis

return in case expected env vars are not set

In case of IPv6 only setup, IP environment variable should not be
set. Still if we have a routed setup routed_setup_ipv4() gets invoked.

This means that the following command will be invoked:

ip route replace proto static dev tap3 table public...

a336b166 12/07/2013 04:25 pm Dimitris Aragiorgis

Support firewalls based on NINC index, uuid, names

Signed-off-by: Dimitris Aragiorgis <>

1409faba 10/23/2013 03:00 pm Stratos Psomadakis

Serialize the excecution of ebtables processes

ebtables cannot handle multiple userspace ebtables processes running
concurrently. This could lead to failures while setting up or cleaning
up ebtables for VM networks.

ebtables latest release (included in Debian Wheezy) supports ebtables...

38305e4c 05/12/2013 01:11 am Dimitris Aragiorgis

Add vif-custom script and split kvm-vif-bridge

Put functions in /usr/lib/snf-network/common.sh

Signed-off-by: Dimitris Aragiorgis <>