Skip to content

Commit

Permalink
Added firewall stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
dbecker1 committed Sep 23, 2018
1 parent ed86406 commit e09c888
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 0 deletions.
Binary file added .DS_Store
Binary file not shown.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ RUN $INST_SCRIPTS/cTools.sh
### Install complx and GBA
RUN $INST_SCRIPTS/complxGba.sh

### Install and configure firewall
RUN $INST_SCRIPTS/firewall.sh

USER 1000

ENTRYPOINT ["/dockerstartup/vnc_startup.sh"]
Expand Down
Binary file added src/.DS_Store
Binary file not shown.
13 changes: 13 additions & 0 deletions src/install/tools/firewall.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash
### every exit != 0 fails the script
set -e

echo "Install and configure firewall"
apt-get update
apt-get install -y uwf

ufw default deny outgoing
ufw default deny incoming

uwf default allow 6901
uwf default allow 5901
Binary file added src/scripts/.DS_Store
Binary file not shown.

0 comments on commit e09c888

Please sign in to comment.