LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-15-2019, 05:05 PM   #1
trackstar2000
Member
 
Registered: Apr 2013
Posts: 60

Rep: Reputation: Disabled
Open a specific port on firewalld


For a command like this below, does it open both inbound and outbound? I tested a specific port for ssh and it seems like it does.

I am working on port 80 & 443. Just want a confirmation. Thanks ahead.


firewall-cmd --permanent --add-port=55/tcp

TT
 
Old 08-15-2019, 10:52 PM   #2
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 4,136

Rep: Reputation: 726Reputation: 726Reputation: 726Reputation: 726Reputation: 726Reputation: 726Reputation: 726
Yep, that's it in essence....and reload the firewall with

Code:
firewall-cmd — reload
However, this is for inbound access. (Solicited traffic originating from within is allowed.)


https://firewalld.org/documentation/

Last edited by ferrari; 08-15-2019 at 10:57 PM.
 
Old 08-16-2019, 05:48 PM   #3
trackstar2000
Member
 
Registered: Apr 2013
Posts: 60

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ferrari View Post
Yep, that's it in essence....and reload the firewall with

Code:
firewall-cmd  reload
However, this is for inbound access. (Solicited traffic originating from within is allowed.)


https://firewalld.org/documentation/
Thank you.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
firewalld doesn't open port miccze Linux - Security 3 08-02-2019 04:26 AM
firewalld port should be open but it isn't mjbradakis Linux - Security 4 04-09-2019 09:10 PM
port 5432 open nmap online but closed status with firewalld and local nmap scan mtdew3q Linux - Security 6 06-04-2018 07:20 PM
firewalld port forwarding specific ip how? packets Linux - Security 1 01-02-2016 10:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration