Skip to content

Commit d5fe77d

Browse files
authored
Merge pull request #381 from ByteInternet/split-up-firewall-docs-and-add-ssh-firewall-docs
Split up firewall docs, add SSH allowlist docs
2 parents c8d52a0 + 4845717 commit d5fe77d

File tree

4 files changed

+207
-65
lines changed

4 files changed

+207
-65
lines changed

docs/best-practices/firewall.md

Lines changed: 7 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -7,69 +7,11 @@ myst:
77

88
# Firewall
99

10-
In the text below we will explain how you can add an IP to the whitelist by using the control panel or CLI (command-line interface). Whitelisting an IP can be for multiple reasons like, connecting via FTP, connecting to a database or for security scans like ForusP.
11-
12-
## Adding IP Addresses in the allowlist via the control panel for FTP, WAF and database
13-
14-
Follow these steps to whitelist an IP addresses for FTP:
15-
16-
- Go to the [control panel](https://my.hypernode.com)
17-
- Log in with your credentials
18-
- Once logged in, select the Hypernode you wish to configure
19-
- Click on **Allowlist** from the menu
20-
- Select **Rule type** and choose here for example **FTP** from the dropdown
21-
- Enter the IP address you want to add to the whitelist
22-
- Provide a descriptive name for the entry for example **OfficeArnhem**. Use descriptive names when adding entries to help identify their purpose in the future.
23-
- Click on **Save** to apply the changes
24-
25-
### Adding IP Addresses by using CLI
26-
27-
For users comfortable with the CLI, you can add the IP addresses directly on the server. This requires logging into the server using SSH.
28-
29-
```bash
30-
hypernode-systemctl whitelist add ftp 1.2.3.4 --description "OfficeArnhem"
31-
```
32-
33-
If you want to remove an added registration, use the command below:
34-
35-
```bash
36-
hypernode-systemctl whitelist remove ftp 1.2.3.4
37-
```
38-
39-
## How to add ForusP to the whitelist
40-
41-
To ensure that ForusP can perform their scan on your Hypernode without anyissues, the IP addresses associated with ForusP must be added to the Hypernode Web Application Firewall (WAF). The WAF acts as a layer of protection by filtering incoming traffic and blocking potential threats. Adding the necessary IP addresses to the allowlist ensures that the scanning process runs smoothly without interruptions. You can achieve this by either using the Hypernode Control Panel or by executing commands directly on the server using the command-line interface (CLI).
42-
43-
### Adding IP Addresses in the allowlist via the Control Panel
44-
45-
Follow these steps to add ForusP's IP addresses using the Hypernode Control Panel:
46-
47-
- Go to to my.hypernode.com
48-
- Log in with your credentials
49-
- Once logged in, select the Hypernode you wish to configure
50-
- Click on **Allowlist** from the menu
51-
- Select **Rule type** and choose **WAF** from the dropdown
52-
- Enter the IP address you want to allow
53-
IP addresses ForusP: **154.16.73.227** | **132.226.222.205** | **144.24.249.196**
54-
- Provide a descriptive name for the entry for example ForusP. Use descriptive names when adding entries to help identify their purpose in the future.
55-
- Click on **Save** to apply the changes
56-
57-
Repeat the steps above to add the others. The IP addresses you add will become active within a few minutes, allowing ForusP to access your Hypernode environment without being blocked by the firewall.
58-
59-
### Adding IP Addresses by using CLI
60-
61-
For users comfortable with the command-line interface, you can add the IP addresses directly on the server. This requires logging into the server using SSH. Follow these steps:
62-
63-
```bash
64-
hypernode-systemctl whitelist add waf 154.16.73.227 --description "ForusP"
65-
```
66-
67-
```bash
68-
hypernode-systemctl whitelist add waf 132.226.222.205 --description "ForusP"
69-
```
70-
71-
```bash
72-
hypernode-systemctl whitelist add waf 144.24.249.196 --description "ForusP"
10+
```{toctree}
11+
---
12+
caption: Table of Contents
13+
maxdepth: 1
14+
glob:
15+
---
16+
firewall/*
7317
```
74-
75-
By following the steps outlined above, you can ensure that ForusP has the necessary access to perform scans on your Hypernode environment without encountering any firewall-related issues. Proper configuration of the WAF helps maintain a secure and efficient system while allowing trusted services to operate seamlessly.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
myst:
3+
html_meta:
4+
description: Learn how to allow FocusP on the Hypernode Allowlists
5+
title: Allowing FocusP to the Firewall | Hypernode
6+
---
7+
8+
# How to add ForusP to the whitelist
9+
10+
To ensure that ForusP can perform their scan on your Hypernode without anyissues, the IP addresses associated with ForusP must be added to the Hypernode Web Application Firewall (WAF). The WAF acts as a layer of protection by filtering incoming traffic and blocking potential threats. Adding the necessary IP addresses to the allowlist ensures that the scanning process runs smoothly without interruptions. You can achieve this by either using the Hypernode Control Panel or by executing commands directly on the server using the command-line interface (CLI).
11+
12+
## Adding IP Addresses in the allowlist via the Control Panel
13+
14+
Follow these steps to add ForusP's IP addresses using the Hypernode Control Panel:
15+
16+
- Go to to my.hypernode.com
17+
- Log in with your credentials
18+
- Once logged in, select the Hypernode you wish to configure
19+
- Click on **Allowlist** from the menu
20+
- Select **Rule type** and choose **WAF** from the dropdown
21+
- Enter the IP address you want to allow
22+
IP addresses ForusP: **154.16.73.227** | **132.226.222.205** | **144.24.249.196**
23+
- Provide a descriptive name for the entry for example ForusP. Use descriptive names when adding entries to help identify their purpose in the future.
24+
- Click on **Save** to apply the changes
25+
26+
Repeat the steps above to add the others. The IP addresses you add will become active within a few minutes, allowing ForusP to access your Hypernode environment without being blocked by the firewall.
27+
28+
## Adding IP Addresses by using CLI
29+
30+
For users comfortable with the command-line interface, you can add the IP addresses directly on the server. This requires logging into the server using SSH. Follow these steps:
31+
32+
```bash
33+
hypernode-systemctl whitelist add waf 154.16.73.227 --description "ForusP"
34+
hypernode-systemctl whitelist add waf 132.226.222.205 --description "ForusP"
35+
hypernode-systemctl whitelist add waf 144.24.249.196 --description "ForusP"
36+
```
37+
38+
By following the steps outlined above, you can ensure that ForusP has the necessary access to perform scans on your Hypernode environment without encountering any firewall-related issues. Proper configuration of the WAF helps maintain a secure and efficient system while allowing trusted services to operate seamlessly.
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
---
2+
myst:
3+
html_meta:
4+
description: Learn how to manage IP addresses on the Hypernode allowlists
5+
title: How to allowlist FTP, WAF and database? | Hypernode
6+
---
7+
8+
# How to allowlist FTP, WAF and database
9+
10+
In the text below we will explain how you can add an IP to the whitelist by using the control panel or CLI (command-line interface). Whitelisting an IP can be for multiple reasons like, connecting via FTP, connecting to a database or for security scans like ForusP.
11+
12+
## Adding IP Addresses in the allowlist via the control panel for FTP, WAF and database
13+
14+
Follow these steps to whitelist an IP addresses for FTP:
15+
16+
- Go to the [control panel](https://my.hypernode.com)
17+
- Log in with your credentials
18+
- Once logged in, select the Hypernode you wish to configure
19+
- Click on **Allowlist** from the menu
20+
- Select **Rule type** and choose here for example **FTP** from the dropdown
21+
- Enter the IP address you want to add to the whitelist
22+
- Provide a descriptive name for the entry for example **Office webshop**. Use descriptive names when adding entries to help identify their purpose in the future.
23+
- Click on **Save** to apply the changes
24+
25+
## Using the hypernode-systemctl whitelist command (CLI)
26+
27+
The `hypernode-systemctl whitelist` command allows you to manage allowlist entries for different services on your Hypernode. You can use it to add, remove, or list allowlist entries for FTP, WAF, database, and SSH.
28+
29+
### Command structure
30+
31+
```
32+
hypernode-systemctl whitelist [-h] {add,remove,get} ...
33+
```
34+
35+
- **add**: Add an IP address to the allowlist for a specific service.
36+
- **remove**: Remove an IP address from the allowlist for a specific service.
37+
- **get**: List current allowlist entries. You can filter by service type.
38+
39+
### Supported types
40+
41+
You can specify the type of service for which you want to manage the allowlist:
42+
43+
- `ftp`
44+
- `waf`
45+
- `database`
46+
- `ssh`
47+
48+
### Adding an IP with a description
49+
50+
You can add a description to help identify the purpose of the allowlist entry:
51+
52+
```
53+
hypernode-systemctl whitelist add [--description DESCRIPTION] {waf,database,ftp,ssh} ip
54+
```
55+
56+
**Example:**
57+
58+
```
59+
hypernode-systemctl whitelist add --description "Office SSH access" ftp 1.2.3.4
60+
```
61+
62+
### Removing an IP from the allowlist
63+
64+
To remove an IP address from the allowlist for a specific service, use the following command:
65+
66+
```
67+
hypernode-systemctl whitelist remove {waf,database,ftp,ssh} ip
68+
```
69+
70+
**Example:**
71+
72+
```
73+
hypernode-systemctl whitelist remove ftp 1.2.3.4
74+
```
75+
76+
### Listing allowlist entries
77+
78+
To view all allowlist entries, use:
79+
80+
```
81+
hypernode-systemctl whitelist get
82+
```
83+
84+
To filter by type (e.g., only FTP):
85+
86+
```
87+
hypernode-systemctl whitelist get --type ftp
88+
```
89+
90+
This will show all currently allowlisted IPs for the specified service.
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
---
2+
myst:
3+
html_meta:
4+
description: Learn how the SSH firewall allowlist works on Hypernode and how to
5+
manage SSH access securely
6+
title: How does the SSH allowlist work? | Hypernode
7+
---
8+
9+
# How does the SSH allowlist work?
10+
11+
The SSH firewall allowlist on Hypernode works differently from the allowlists for FTP, WAF, and database. Understanding this difference is crucial to avoid accidentally locking yourself out of your server.
12+
13+
## Default behavior: SSH vs. other allowlists
14+
15+
- **FTP, WAF, and database**: By default, all incoming connections are blocked. Only IP addresses that are explicitly allowlisted will be able to connect.
16+
- **SSH**: By default, SSH is open to the entire internet. Anyone can attempt to connect to your server via SSH unless you add entries to the SSH allowlist.
17+
18+
## What happens when you add an SSH allowlist entry?
19+
20+
As soon as you add one or more entries to the SSH allowlist, the firewall will immediately block all SSH access except for the IP addresses on the list. This means:
21+
22+
- If your current IP is not on the allowlist, you will lose access and may see a "Timed Out" or "Connection refused" error when trying to connect via SSH.
23+
- This is different from FTP, WAF, and database, where you must add entries to allow any access at all.
24+
25+
> **Warning:**
26+
> If you add an SSH allowlist entry, make sure to include your own IP address! Otherwise, you may lock yourself out of your server.
27+
28+
## Adding IP Addresses to the SSH allowlist via the control panel
29+
30+
You can also manage SSH allowlist entries using the Hypernode control panel. Follow these steps to whitelist an IP address for SSH:
31+
32+
- Go to the [control panel](https://my.hypernode.com)
33+
- Log in with your credentials
34+
- Once logged in, select the Hypernode you wish to configure
35+
- Click on **Allowlist** from the menu
36+
- Select **Rule type** and choose **SSH** from the dropdown
37+
- Enter the IP address you want to add to the allowlist
38+
- Provide a descriptive name for the entry, for example **Office SSH**. Use descriptive names to help identify their purpose in the future.
39+
- Click on **Save** to apply the changes
40+
41+
Once you add one or more SSH allowlist entries, SSH access will be restricted to only the IP addresses on the list. Make sure to add your own IP address to avoid being locked out.
42+
43+
## Example: Whitelisting your IP for SSH
44+
45+
To allow your current IP address to access SSH, use the following command (replace `1.2.3.4` with your actual IP):
46+
47+
```
48+
hypernode-systemctl whitelist add --description "My office IP" ssh 1.2.3.4
49+
```
50+
51+
You can add multiple IPs if you need to allow access from several locations:
52+
53+
```
54+
hypernode-systemctl whitelist add --description "Home" ssh 5.6.7.8
55+
hypernode-systemctl whitelist add --description "Colleague" ssh 9.10.11.12
56+
```
57+
58+
## Removing an IP from the SSH allowlist
59+
60+
To remove an IP from the SSH allowlist:
61+
62+
```
63+
hypernode-systemctl whitelist remove ssh 1.2.3.4
64+
```
65+
66+
If you remove all entries from the SSH allowlist, SSH will again be open to the entire internet.
67+
68+
## Troubleshooting: Locked out after adding an SSH allowlist entry
69+
70+
If you are locked out after adding an SSH allowlist entry (for example, you see a "Timed Out" error), you will need to:
71+
72+
- Use the Hypernode control panel to add your IP to the SSH allowlist.

0 commit comments

Comments
 (0)