Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mailinabox
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mailinabox
Commits
e413680f
Commit
e413680f
authored
May 01, 2014
by
Joshua Tauberer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add a bash function ufw_allow which calls 'ufw allow' but hides its totally useless output
parent
66269f91
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
7 deletions
+12
-7
dns.sh
scripts/dns.sh
+1
-1
functions.sh
scripts/functions.sh
+5
-0
mail.sh
scripts/mail.sh
+3
-3
system.sh
scripts/system.sh
+1
-1
web.sh
scripts/web.sh
+2
-2
No files found.
scripts/dns.sh
View file @
e413680f
...
...
@@ -43,5 +43,5 @@ chown -R $STORAGE_USER.$STORAGE_USER $STORAGE_ROOT/dns
# Permit DNS queries on TCP/UDP in the firewall.
ufw
allow domain
ufw
_
allow domain
scripts/functions.sh
View file @
e413680f
...
...
@@ -19,3 +19,8 @@ function apt_install {
DEBIAN_FRONTEND
=
noninteractive apt-get
-qq
-y
install
$PACKAGES
>
/dev/null
;
}
function
ufw_allow
{
# ufw has completely unhelpful output
ufw allow
$1
>
/dev/null
;
}
scripts/mail.sh
View file @
e413680f
...
...
@@ -234,7 +234,7 @@ service postfix restart
service dovecot restart
# Allow mail-related ports in the firewall.
ufw
allow smtp
ufw
allow submission
ufw
allow imaps
ufw
_
allow smtp
ufw
_
allow submission
ufw
_
allow imaps
scripts/system.sh
View file @
e413680f
...
...
@@ -35,6 +35,6 @@ apt_install ntp fail2ban
# Turn on the firewall. First allow incoming SSH, then turn on the firewall.
# Other ports will be opened at the point where we set up those services.
apt_install ufw
ufw
allow ssh
;
ufw
_
allow ssh
;
ufw
--force
enable
;
scripts/web.sh
View file @
e413680f
...
...
@@ -39,6 +39,6 @@ service nginx restart
service php-fastcgi restart
# Open ports.
ufw
allow http
ufw
allow https
ufw
_
allow http
ufw
_
allow https
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment