X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=factory%2Fsetup-link;h=4facabc0cc78bcdff1b0a7e9ebb29106888cb9fd;hb=0f6112cbd72a0104205b320505d43cff6823d8ba;hp=df3638f57847ed1025658d2321acfa4ad20e4da7;hpb=a73b5037e7e3d2dc9520d3ce40e4ef3e2756ab6b;p=vsys.git diff --git a/factory/setup-link b/factory/setup-link index df3638f..4facabc 100755 --- 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 <