• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Not able to login to server after firewalld configuration

    Scheduled Pinned Locked Moved
    FOG Problems
    2
    3
    280
    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.
    • M
      MaxwellMW
      last edited by

      Hello Everyone. I have an issue that hopefully you guys can help me with. I am not able to multicast and found an article that I tried to do to see if it would fix the issue. I entered the following commands via SSH to my fog server. I am able to log in to the web interface, but not the server after doing this. I tried SSH as well as at the server itself. I did not change the password and it worked fine prior to doing this.

      I am running FOG 1.5.9-RC2 on CentOS 8

      yum install firewalld -y
      systemctl start firewalld
      systemctl enable firewalld
      for service in http https tftp ftp mysql nfs mountd rpc-bind proxy-dhcp; do firewall-cmd --permanent --zone=public --add-service=$service;
      done

      echo “Open UDP port 49152 through 65532, the possible used ports for fog multicast”
      firewall-cmd --permanent --add-port=49152-65532/udp
      echo “Allow IGMP traffic for multicast”
      firewall-cmd --permanent --direct --add-rule ipv4 filter INPUT 0 -p igmp -j ACCEPT
      systemctl restart firewalld.service
      echo “Done.”

      I haven’t tried yet to see if multicast works after doing this. I tried doing a multicast test by using the following command on the server: udp-sender --file /opt/fog/.fogsettings --log /opt/fog/log/multicast.log --ttl 1 --nopointopoint --portbase 9000

      I used udp-receiver on a secondary unix machine and it didn’t prompt or send file.

      Thanks in advance for any help.

      george1421G 1 Reply Last reply Reply Quote 0
      • george1421G
        george1421 Moderator @MaxwellMW
        last edited by

        @maxwellmw In your for service loop I don’t see ssh in the list.

        in the console window of your fog server key in
        firewall-cmd --permanent --zone=public --add-service=ssh

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

        M 1 Reply Last reply Reply Quote 1
        • M
          MaxwellMW @george1421
          last edited by

          @george1421 Thanks for the help. I was also trying to use the username of “fog” instead of root at the server. That’s what I get for not knowing much about linux…lol

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

          161

          Online

          12.1k

          Users

          17.3k

          Topics

          155.4k

          Posts
          Copyright © 2012-2024 FOG Project