mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
223 B
16 lines
223 B
6 years ago
|
#!/bin/bash
|
||
|
|
||
|
# Install firewall
|
||
|
|
||
|
SCRIPT_DIR="$(cd -P "$(dirname "$BASH_SOURCE")" && pwd)"
|
||
|
cd $SCRIPT_DIR
|
||
|
. set.sh
|
||
|
|
||
|
SSH_PORT=${1:-521}
|
||
|
|
||
|
apt-get -y install ufw
|
||
|
|
||
|
ufw logging off
|
||
|
ufw allow in "$SSH_PORT"/tcp
|
||
|
ufw --force enable
|