Commit f43e1d4a authored by Vincent Tam's avatar Vincent Tam

New post: Hugo & UFW

parent ac5b2758
Pipeline #24804932 passed with stages
in 29 seconds
title: "Configure UFW for Hugo"
subtitle: "Simple Linux firewall settings for home computers"
type: post
- technical support
- Hugo
- Linux
date: 2018-06-29T06:36:21+02:00
[Easy Linux tips project][1] recommends users to enable their
firewall. However, this blocks all incoming traffic by default. If
one wants to [test the site on mobile devices][2], one will need to
add a few rules to [UFW][3].
$ sudo ufw allow ssh
$ sudo ufw allow http
$ sudo ufw allow https
$ sudo ufw allow 80/tcp
$ sudo ufw allow 1313/tcp comment "hugo server"
I learnt the last line from [竹内電設][4].
To extract the user-added rules, run [`ufw show added`][5].
$ sudo ufw show added
Added user rules (see 'ufw status' for running firewall):
ufw allow 1313/tcp comment 'hugo server'
ufw allow 22/tcp
ufw allow 80/tcp
ufw allow 443/tcp
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment