From: Andy Bavier Date: Wed, 26 Mar 2008 02:09:47 +0000 (+0000) Subject: Set up iptables for the virtual link X-Git-Tag: vsys-0.7-4~8 X-Git-Url: http://git.onelab.eu/?p=vsys.git;a=commitdiff_plain;h=0f6112cbd72a0104205b320505d43cff6823d8ba Set up iptables for the virtual link --- 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 <