mirror of
https://github.com/YunoHost/doc.git
synced 2024-09-03 20:06:26 +02:00
[fix] Add missing firewall rule
This commit is contained in:
parent
665a1a395a
commit
32bf9d5ffa
1 changed files with 5 additions and 1 deletions
|
@ -61,6 +61,11 @@ nano /etc/ssh/sshd_config
|
||||||
Port 22 # to replace by 9777 for example
|
Port 22 # to replace by 9777 for example
|
||||||
```
|
```
|
||||||
|
|
||||||
|
**Open the port** in firewall (you can use -6 option to limit forbid ipv4 connexion)
|
||||||
|
```bash
|
||||||
|
yunohost firewall allow TCP 9777
|
||||||
|
```
|
||||||
|
|
||||||
Save and restart SSH daemon. Switch over to the new port by restarting SSH.
|
Save and restart SSH daemon. Switch over to the new port by restarting SSH.
|
||||||
```bash
|
```bash
|
||||||
/etc/init.d/ssh restart
|
/etc/init.d/ssh restart
|
||||||
|
@ -70,7 +75,6 @@ Then restart the iptables firewall and close the old port in iptables.
|
||||||
```bash
|
```bash
|
||||||
yunohost firewall reload
|
yunohost firewall reload
|
||||||
yunohost firewall disallow <your_old_ssh_port_number> # port by default 22
|
yunohost firewall disallow <your_old_ssh_port_number> # port by default 22
|
||||||
yunohost firewall disallow --ipv6 TCP <your_new_ssh_port_number> # for ipv6
|
|
||||||
```
|
```
|
||||||
|
|
||||||
**For the next SSH connections ** you need to add the `-p` option followed by the SSH port number.
|
**For the next SSH connections ** you need to add the `-p` option followed by the SSH port number.
|
||||||
|
|
Loading…
Add table
Reference in a new issue