ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    CentOS 7.5 not listing ports when added to firewall-cmd

    IT Discussion
    centos setenforce linux firewall-cmd
    3
    11
    959
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DustinB3403D
      DustinB3403
      last edited by DustinB3403

      Ok so dealing with an annoying issue.

      I have these ports enabled on a local centos 7.5 system with the below.

      firewall-cmd --list-ports
      
      80/tcp 80/udp 443/tcp 443/udp 28443/tcp 28443/udp 9090/tcp 9090/udp
      
      sestatus
      
      SELinux status:                 disabled
      
      
      lsof -i :9090
      
      lsof -i :443
      
      lsof -i :80
      
      lsof -i :28443
      
      
      
      firewall-cmd --list-all                              public (active)
      
        target: default
      
        icmp-block-inversion: no
      
        interfaces: ens192
      
        sources:
      
        services: ssh dhcpv6-client telnet
      
        ports: 80/tcp 80/udp 443/tcp 443/udp 28443/tcp 28443/udp 9090/tcp 9090/udp
      
        protocols:
      
        masquerade: yes
      
        forward-ports:
      
        source-ports:
      
        icmp-blocks:
      
        rich rules:
      

      See, none of the ports are listening, but they should be. What am I doing wrong here?

      momurdaM 1 Reply Last reply Reply Quote 1
      • momurdaM
        momurda @DustinB3403
        last edited by

        @dustinb3403 Is there any services running? Without a running webserver or whatever service your want, youll get nothing with
        lsof -i, or
        ss -atun

        DustinB3403D 1 Reply Last reply Reply Quote 0
        • DustinB3403D
          DustinB3403 @momurda
          last edited by

          @momurda I'm just attempting to connect via telnet to make sure the ports are available before I go and add my service to this system.

          JaredBuschJ 1 Reply Last reply Reply Quote 0
          • momurdaM
            momurda
            last edited by

            Are you on a Windows machine doing this?
            I just tried from my Windows 10 machine to linux webserver telnet hostname 80 to a computer i know has a web server running. No response, connection timed out.

            DustinB3403D 1 Reply Last reply Reply Quote 0
            • DustinB3403D
              DustinB3403 @momurda
              last edited by

              @momurda yes I am, Windows to Linux to confirm that the ports are open.

              I was getting the same response.

              1 Reply Last reply Reply Quote 0
              • DustinB3403D
                DustinB3403
                last edited by

                Worth a shot I guess from a Fedora system for testing. . . but still doesn't make sense.

                1 Reply Last reply Reply Quote 0
                • momurdaM
                  momurda
                  last edited by

                  Works linux>linux here.
                  Not windows>linux. Maybe the telnet client neesd an explicit exception in Windows Firewall.

                  DustinB3403D 1 Reply Last reply Reply Quote 0
                  • DustinB3403D
                    DustinB3403 @momurda
                    last edited by

                    @momurda will give it a try, just booting up this system.

                    1 Reply Last reply Reply Quote 0
                    • JaredBuschJ
                      JaredBusch @DustinB3403
                      last edited by

                      @dustinb3403 said in CentOS 7.5 not listing ports when added to firewall-cmd:

                      @momurda I'm just attempting to connect via telnet to make sure the ports are available before I go and add my service to this system.

                      But the point of his response was unless you have something answering, it should not be open just because the firewall is not blocking. The OS will not know what to do with an attempted incoming connection unless a service is running on said port.

                      DustinB3403D 1 Reply Last reply Reply Quote 0
                      • DustinB3403D
                        DustinB3403 @JaredBusch
                        last edited by

                        @jaredbusch Look at the OP, i have telnet listening to those ports.

                        JaredBuschJ 1 Reply Last reply Reply Quote 0
                        • JaredBuschJ
                          JaredBusch @DustinB3403
                          last edited by

                          @dustinb3403 said in CentOS 7.5 not listing ports when added to firewall-cmd:

                          @jaredbusch Look at the OP, i have telnet listening to those ports.

                          Ahh, didn't scroll enough.

                          1 Reply Last reply Reply Quote 0
                          • 1 / 1
                          • First post
                            Last post