git://git.onelab.eu
/
vsys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf7105e
)
Set mtu at setup time, remove iptables rule at teardown
author
Andy Bavier
<acb@cs.princeton.edu>
Mon, 14 Apr 2008 15:45:55 +0000
(15:45 +0000)
committer
Andy Bavier
<acb@cs.princeton.edu>
Mon, 14 Apr 2008 15:45:55 +0000
(15:45 +0000)
factory/setup-link
patch
|
blob
|
history
diff --git
a/factory/setup-link
b/factory/setup-link
index
5851ee6
..
be8c949
100755
(executable)
--- a/
factory/setup-link
+++ b/
factory/setup-link
@@
-22,7
+22,7
@@
$IP link set $EGRE up
ETUN0=v$LINK
ETUN1=etun$LINK
echo $ETUN0,$ETUN1 > /sys/module/etun/parameters/newif
-ifconfig $ETUN0 up
+ifconfig $ETUN0
mtu 1458
up
ifconfig $ETUN1 up
### Setup bridge
@@
-52,6
+52,9
@@
DELETE=/vsys/delete-$ETUN0
cat > $DELETE <<EOF
#!/bin/sh
+# Remove iptables rule
+iptables -t mangle -D FORWARD -o $BRIDGE -j MARK --set-mark $SLICEID
+
# Get rid of etun devices, only need name of one of them
echo $ETUN1 > /sys/module/etun/parameters/delif