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:
a73b503
)
Set up iptables for the virtual link
author
Andy Bavier
<acb@cs.princeton.edu>
Wed, 26 Mar 2008 02:09:47 +0000
(
02:09
+0000)
committer
Andy Bavier
<acb@cs.princeton.edu>
Wed, 26 Mar 2008 02:09:47 +0000
(
02:09
+0000)
factory/setup-link
patch
|
blob
|
history
diff --git
a/factory/setup-link
b/factory/setup-link
index
df3638f
..
4facabc
100755
(executable)
--- a/
factory/setup-link
+++ b/
factory/setup-link
@@
-32,6
+32,9
@@
brctl addif $BRIDGE $EGRE
brctl addif $BRIDGE $ETUN1
ifconfig $BRIDGE up
+### Setup iptables so that packets are visible in the vserver
+iptables -t mangle -A FORWARD -o $BRIDGE -j MARK --set-mark $SLICEID
+
### Create "grab link" script
GRAB=/vsys/grab-$ETUN0
cat > $GRAB <<EOF