Y
Y
Yeldos Sabyrbayev2021-09-07 08:27:23
linux
Yeldos Sabyrbayev, 2021-09-07 08:27:23

How to open port to server firewall on CentOS 7?

We create a server for minecraft on VPS hosting simplecloud. You need to open port 25565. I enter the command in the terminal:

firewall-cmd --permanent --zone=public --add-port=25565/tcpsudo firewall-cmd --reload


An error is thrown:
usage: see firewall-cmd man page
firewall-cmd: error: unrecognized arguments: firewall-cmd

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sand, 2021-09-07
@yeldos23

These are different commands, you need to enter them in turn:

sudo firewall-cmd --permanent --zone=public --add-port=25565/tcp
sudo firewall-cmd --reload

A
Alexander, 2021-09-07
@Adler_lug

firewall-cmd --permanent --zone=public --add-port=25565/tcpsudo ? firewall-cmd --reload

Do you want to run two commands on the same line? Then separate them &&

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question