git://git.onelab.eu
/
vsys.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(no commit message)
[vsys.git]
/
factory
/
setup-nat
diff --git
a/factory/setup-nat
b/factory/setup-nat
index
c6d37e9
..
64be40b
100755
(executable)
--- a/
factory/setup-nat
+++ b/
factory/setup-nat
@@
-19,7
+19,7
@@
ifconfig $ETUN1 10.0.$KEY.1 up
/sbin/iptables -A FORWARD -i $ETUN1 -o eth0 -j ACCEPT
### Create "grab link" script
/sbin/iptables -A FORWARD -i $ETUN1 -o eth0 -j ACCEPT
### Create "grab link" script
-GRAB=/vsys/grab-$ETUN0
+GRAB=/vsys/
local_
grab-$ETUN0
echo $SLICE > $GRAB.acl
rm -f $GRAB
cat > $GRAB <<EOF
echo $SLICE > $GRAB.acl
rm -f $GRAB
cat > $GRAB <<EOF
@@
-32,7
+32,7
@@
EOF
chmod +x $GRAB
### Create "delete link" script
chmod +x $GRAB
### Create "delete link" script
-DELETE=/vsys/delete-$ETUN0
+DELETE=/vsys/
local_
delete-$ETUN0
echo $SLICE > $DELETE.acl
rm -f $DELETE
cat > $DELETE <<EOF
echo $SLICE > $DELETE.acl
rm -f $DELETE
cat > $DELETE <<EOF