Open TCP Port on openSUSE Firewall
In this post i will show how to open a firewall on openSUSE and ensure that the setting is made permanent. I will now open terminal on GNOME and open TCP port 1978
Opening Port using GNOME TERMINAL
Command to add port to
sudo firewall-cmd --zone=public --add-port=1978/tcp
Command to keep the port open permanently sudo firewall-cmd --runtime-to-permanent
Remove open Portsudo firewall-cmd --zone=public --remove-port=1978/tcp
Error that you will see if we try to re-open an Open Portopensuseleap@localhost:~> sudo firewall-cmd --zone=public --add-port=1978/tcp
[sudo] password for root:
Warning: ALREADY_ENABLED: '1978:tcp' already in 'public'
success
GNOME terminal showing addition of port 1978 on openSUSE 15.2
Opening Port using YAST / GUI
- Search for firewall in GNOME Shell Activities
- Click and open Firewall tool
- Provide password
- In the firewall tool
- Click on "public" Zone in the left pane
- Then Click on "Ports" tab to open ports
- Enter TCP Port 1978
- Click on "Accept" button to save changes.
GNOME Shell Activities Showing YAST Firewall
Refer:- Opening Ports YaST2 Firewall
Note:- Solution tested on openSUSE Leap 15.2, GNOME SHELL VERSION 3.34.4
No comments:
Post a Comment