This commit is contained in:
Starbeamrainbowlabs 2019-08-15 16:53:26 +01:00
parent d765b46c8a
commit e6bf19e377
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -41,7 +41,7 @@ Ufw, by default, allows all outgoing connections and denies all incoming connect
sudo ufw allow 22/tcp sudo ufw allow 22/tcp
``` ```
ufw will automatically configure `iptables` to allow incoming connections on port 22 that use `tcp`. I will talk more about allowing and denying different connections later. Ufw will automatically configure `iptables` to allow incoming connections on port 22 that use `tcp`. I will talk more about allowing and denying different connections later.
Just in case ufw blocks your ssh connection and you are unable to get back in, you can use another program called `at` to schedule the disabling of the ufw so that you can get back in again. If you don't have it installed, you can install it with `sudo apt install at`. Just in case ufw blocks your ssh connection and you are unable to get back in, you can use another program called `at` to schedule the disabling of the ufw so that you can get back in again. If you don't have it installed, you can install it with `sudo apt install at`.
@ -78,7 +78,7 @@ To Action From
``` ```
#### Allowing connections #### Allowing connections
Since we're going to be setting up a web server, we'll need to allow ti through ur new firewall. Doing so is easy. Simply do this: Since we're going to be setting up a web server, we'll need to allow it through our new firewall. Doing so is easy. Simply do this:
```bash ```bash
sudo ufw allow 80/tcp sudo ufw allow 80/tcp