commit 3c7930195fc8bc996771f0dfa4f44ee79f72caa7
parent d9a677f4ba698040c773bb7d7edd3191ca2faf92
Author: Antoine Amarilli <a3nm@a3nm.net>
Date: Thu, 12 Mar 2015 15:22:32 +0100
use port 23, port 22 stopped working
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/dropbox b/dropbox
@@ -13,6 +13,7 @@ PRIVATE="/home/$ID/.ssh/id_rsa" # an existing file that you want to protect
QUOTA="4096000" # dropbox's quota, in bytes
ENDPOINT="$HOME/mnt/dropbox" # where to mount dropbox (do not use '~')
DCMD="sudo su dropbox -s /bin/bash -c"
+PRIVPORT="23" # a port that dropbox shouldn't be able to access
if groups dropbox | tr -d ':' | tr ' ' '\n' | grep -v '^$' |
grep -v dropbox > /dev/null
@@ -102,9 +103,9 @@ fi
if $DCMD "curl portquiz.net:80 2>/dev/null >/dev/null"
then
- if $DCMD "curl portquiz.net:22 2>/dev/null >/dev/null"
+ if $DCMD "curl portquiz.net:$PRIVPORT 2>/dev/null >/dev/null"
then
- echo "dropbox port 22 is not filtered"
+ echo "dropbox port $PRIVPORT is not filtered"
echo aborted
exit 8
fi