Ports are not opened with firewall-cmd --add-port

Nwer

New Member
Joined
Dec 11, 2021
Messages
5
Reaction score
1
Credits
48
Hello all ,

Hope you can bare with me with the little details i'm providing :)

I've just had my job handover and I'm not very aware of what every user is doing..
I've been asked by a user to open any port on an RHEL7 server so that that API can access it through HTTP.

I'm asking her what's the port number and she says I can pick up any port to test on it.
I picked up a random port 1619

Now I've done the needed commands and its' not reflecting.. please help

1641204579360.png
 


OP
N

Nwer

New Member
Joined
Dec 11, 2021
Messages
5
Reaction score
1
Credits
48
I typed same commands again and worked this time !!
I can't see any difference in commands though
only diff is that first command output is success but previously it didn't generate the output success

1641217542119.png
 

tonyalbers

New Member
Joined
Jan 28, 2022
Messages
8
Reaction score
5
Credits
56
That's because you commented out the line where you asked it to do something.
You had # as your promt, and another # in front of your command.
 

KGIII

Super Moderator
Staff member
Gold Supporter
Joined
Jul 23, 2020
Messages
5,773
Reaction score
5,213
Credits
46,611
Good eye, @tonyalbers.

OP, I've grabbed a screenshot to help show you were your mistake was, thanks to tony.

Selection_057.png


The first one commented it out (included an extra # sign).
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!


Top