This article will guide you on how to configure Firewall. The basic function of a firewall is to let safe traffic in while blocking harmful traffic.
- Let us first check whether the chosen port is open and not blocked. All ports must be open by default if the VPS configuration is new.
- You must upgrade your firewall settings to permit received networks to the newest port.
- Execute the following command:
sudo (firewall name) allow 1026/tcp
e.g.
sudo ufw allow 1026/tcp - Now, let us restart the SSH service using the following commands:
- On Debian and Ubuntu:
sudo service ssh restart - On Debian and Ubuntu with systemd:
sudo systemctl restart ssh - On CentOS and Fedora:
sudo service sshd restart - On CentOS and Fedora with systemd:
sudo systemctl restart sshd
- On Debian and Ubuntu:
This way, you can configure your firewall. Wasn’t it easy? For more information on firewalls, do check our WHUK’s KB section on a regular basis.