Centos8 firewalld issue

Issues related to configuring your network
Post Reply
logtech
Posts: 88
Joined: 2010/04/22 18:34:34

Centos8 firewalld issue

Post by logtech » 2020/12/21 16:11:38

Hello,

I have just created simple basic centos8 vm for production, and the first thing I noticed after restarting some firewalld issues:

public (active)
target: default
icmp-block-inversion: no
interfaces: ens192
sources:
services:
ports: 25/tcp
protocols:
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:
rule family="ipv4" source address="192.168.2.0/24" port port="3333" protocol="tcp" accept
rule family="ipv4" source address="192.168.2.0/24" port port="9090" protocol="tcp" accept

My WIndows has 192.168.2.100 and when I try to access SSH using 3333 I cannot - I have to disable firewalld from console and then it works. Rich rules should work. I have already reinstalled firewalld twice - removed and installed again. Any thoughts?

logtech
Posts: 88
Joined: 2010/04/22 18:34:34

Re: Centos8 firewalld issue

Post by logtech » 2020/12/21 16:29:39

I am not sure if this is firewalld issue:

1. firewalld is stopped.
2. firewalld is disabled

reboot the VM

try to login using ssh with 3333 no luck

work around: Login through the console and ping google.com

miracle now I can login through SSH using 3333 port

logtech
Posts: 88
Joined: 2010/04/22 18:34:34

Re: Centos8 firewalld issue

Post by logtech » 2020/12/21 16:39:12

firewalld is completely disabled

rebooted vm and no luck

as soon I login to VM through terminal all works - something is not right

User avatar
TrevorH
Forum Moderator
Posts: 30173
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Centos8 firewalld issue

Post by TrevorH » 2020/12/21 16:42:52

Did you enable the network? It's disabled by default unless you used the network in order to perform the install...
CentOS 6 died in November 2020 - migrate to a new version!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

logtech
Posts: 88
Joined: 2010/04/22 18:34:34

Re: Centos8 firewalld issue

Post by logtech » 2020/12/21 16:49:31

realy ????????????



USERCTL=no

and disable

#USERS=root

in network card config and viola

logtech
Posts: 88
Joined: 2010/04/22 18:34:34

Re: Centos8 firewalld issue

Post by logtech » 2020/12/21 16:50:59

now every time I reboot I dont have to login as root to have network working like should - I did not like USERS=root since the beginning in my network card config

User avatar
TrevorH
Forum Moderator
Posts: 30173
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Centos8 firewalld issue

Post by TrevorH » 2020/12/21 17:03:24

ONBOOT=yes
CentOS 6 died in November 2020 - migrate to a new version!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

logtech
Posts: 88
Joined: 2010/04/22 18:34:34

Re: Centos8 firewalld issue

Post by logtech » 2020/12/21 17:09:40

I am glad this started working since I spend a lot of time for that image be ready in production .......

Post Reply

Return to “CentOS 8 - Networking Support”