Set up firewalld on CentOS before starting it

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












If we use firewall-cmd to open a port before starting the firewalld service, it will fail saying "firewalld is not running".



If I start firewalld I'm getting disconnected from the remote server, I'm running SSH on a different port than 22.



How am I supposed to configure a remote server without losing connection to it?







share|improve this question




















  • The same here. This is ridiculous...
    – kawing-chiu
    Jun 9 at 13:56






  • 1




    Found the solution: firewall-offline-cmd — firewalld offline command line client
    – Gotenks
    Jun 9 at 18:17














up vote
1
down vote

favorite












If we use firewall-cmd to open a port before starting the firewalld service, it will fail saying "firewalld is not running".



If I start firewalld I'm getting disconnected from the remote server, I'm running SSH on a different port than 22.



How am I supposed to configure a remote server without losing connection to it?







share|improve this question




















  • The same here. This is ridiculous...
    – kawing-chiu
    Jun 9 at 13:56






  • 1




    Found the solution: firewall-offline-cmd — firewalld offline command line client
    – Gotenks
    Jun 9 at 18:17












up vote
1
down vote

favorite









up vote
1
down vote

favorite











If we use firewall-cmd to open a port before starting the firewalld service, it will fail saying "firewalld is not running".



If I start firewalld I'm getting disconnected from the remote server, I'm running SSH on a different port than 22.



How am I supposed to configure a remote server without losing connection to it?







share|improve this question












If we use firewall-cmd to open a port before starting the firewalld service, it will fail saying "firewalld is not running".



If I start firewalld I'm getting disconnected from the remote server, I'm running SSH on a different port than 22.



How am I supposed to configure a remote server without losing connection to it?









share|improve this question











share|improve this question




share|improve this question










asked Dec 7 '17 at 20:27









Gotenks

3114




3114











  • The same here. This is ridiculous...
    – kawing-chiu
    Jun 9 at 13:56






  • 1




    Found the solution: firewall-offline-cmd — firewalld offline command line client
    – Gotenks
    Jun 9 at 18:17
















  • The same here. This is ridiculous...
    – kawing-chiu
    Jun 9 at 13:56






  • 1




    Found the solution: firewall-offline-cmd — firewalld offline command line client
    – Gotenks
    Jun 9 at 18:17















The same here. This is ridiculous...
– kawing-chiu
Jun 9 at 13:56




The same here. This is ridiculous...
– kawing-chiu
Jun 9 at 13:56




1




1




Found the solution: firewall-offline-cmd — firewalld offline command line client
– Gotenks
Jun 9 at 18:17




Found the solution: firewall-offline-cmd — firewalld offline command line client
– Gotenks
Jun 9 at 18:17















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f409573%2fset-up-firewalld-on-centos-before-starting-it%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f409573%2fset-up-firewalld-on-centos-before-starting-it%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

Peggy Mitchell

Palaiologos

The Forum (Inglewood, California)