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

No route to host when trying to capture with fog 1.15.10 new install

Scheduled Pinned Locked Moved Unsolved
FOG Problems
2
20
1.7k
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.
  • A
    anwoke8204
    last edited by Jul 30, 2023, 4:21 AM

    hello, I am trying to capture an image on a fresh install of fog on debian 11. I have installed the latest version 1.5.10. I am including a picture of what I get when I try to capture an image. Fog Error.jpg

    Anyone know how I can resolve this issue?

    G 1 Reply Last reply Jul 30, 2023, 10:54 AM Reply Quote 0
    • G
      george1421 Moderator @anwoke8204
      last edited by Jul 30, 2023, 10:54 AM

      @anwoke8204 Is the pxe booting computer on the same subnet as the FOG server? The error kind of indicate a network (dhcp) or routing issue, not specifically related to fog.

      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!

      1 Reply Last reply Reply Quote 0
      • A
        anwoke8204
        last edited by Jul 30, 2023, 3:04 PM

        yes, the computer is on the same subnet. I have also disabled ipv6. attaching a screenshot of all open ports on the server as well.

        56e6078b-7ae6-49b5-b724-013396932dc3-image.png

        1 Reply Last reply Reply Quote 0
        • A
          anwoke8204
          last edited by Jul 30, 2023, 3:22 PM

          I should also mention we had a working FOG server on 1.5.9 running Centos 7, but since the entire Centos distro line is now EOL, I am working to migrate all of our servers over to Debian 11. The DHCP server is a Windows Server 2016 server, but there shouldn’t be any changes needed there as it was working with the other server. All we did was change the OS to a different supported distro, and install the latest version.

          G 1 Reply Last reply Jul 30, 2023, 10:07 PM Reply Quote 0
          • G
            george1421 Moderator @anwoke8204
            last edited by Jul 30, 2023, 10:07 PM

            @anwoke8204 OK I want you to schedule a new capture/deploy but tick the debug checkbox then schedule the task.

            Now pxe boot the target computer. After a few screens of instructions that you need to clear with the enter key you will be dropped to the FOS Linux command prompt. From there see if you can ping the fog server.

            The get target computer’s IP address with this command ip a s make sure the subnet mask and ip address is what you expect.

            On your debian server make sure that the firewall is not installed. On debian the firewall is ufw.

            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!

            A 3 Replies Last reply Jul 31, 2023, 12:41 AM Reply Quote 0
            • A
              anwoke8204 @george1421
              last edited by Jul 31, 2023, 12:41 AM

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • A
                anwoke8204 @george1421
                last edited by Jul 31, 2023, 2:27 AM

                @george1421 here are the results of the above:

                here is the instructionsdebug boot.jpg

                here is the ping to the fog server:

                ping results.jpg

                Here is the results of the ip a s command:

                ip and subnet results.jpg

                and then once typing fog to continue with the boot we are getting the following null error:

                error null after trying to continue debug imaging boot.jpg

                any idea where we go from here? the subnet is 255.255.255.0 or /24 cidr so it is correct

                1 Reply Last reply Reply Quote 0
                • A
                  anwoke8204 @george1421
                  last edited by Jul 31, 2023, 3:34 AM

                  @george1421 We have narrowed it down to an issue with firewalld. no matter how I try to input the rule to allow port 2049/udp it doesn’t stick. I can look the user created rules in /etc/firewalld/zones/public.xml and I can see all of the other ones, but not the one for port 2049/udp. I have gried webmin as well as command line to allow port 2049/udp and it doesn’t seem to want to stick if I use webmin, and if I use commandline it says its already there. when I try to do it via command line I get the following error:

                  user@imaging:/etc/firewalld/zones# firewall-cmd --permanent --zone=public --add-port=2049/udp
                  Warning: ALREADY_ENABLED: 2049:udp
                  success

                  but when you view the xml file you can see its not listed. here is the contents of /etc/firewalld/zones/public.xml

                  <?xml version=“1.0” encoding=“utf-8”?>
                  <zone>
                  <short>Public</short>
                  <description>For use in public areas. You do not trust the other computers on networks to not harm your computer. Only selected incoming connections are accepted.</description>
                  <service name=“ssh”/>
                  <service name=“dhcpv6-client”/>
                  <service name=“http”/>
                  <service name=“https”/>
                  <port port=“10000” protocol=“tcp”/>
                  <port port=“69” protocol=“udp”/>
                  <port port=“1024-65535” protocol=“udp”/>
                  <port port=“2049” protocol=“tcp”/>
                  <port port=“111” protocol=“tcp”/>
                  <port port=“111” protocol=“udp”/>
                  </zone>

                  Any ideas on how I can get this to work?

                  G 1 Reply Last reply Jul 31, 2023, 9:48 AM Reply Quote 0
                  • G
                    george1421 Moderator @anwoke8204
                    last edited by Jul 31, 2023, 9:48 AM

                    @anwoke8204 How did we get from debian which uses ufw for the firewall, to firewalld which is typically used on centos? But that also explains why ping works but nfs does not.

                    First I would stop firewalld to see if that is the root of the problem. You can get nfs v3 to work with the firewall enabled there is just a few more ports that are needed than just ports 2049.

                    Here is a document that covers firewall requirements for FOG. https://forums.fogproject.org/topic/6162/firewall-configuration

                    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!

                    A 1 Reply Last reply Jul 31, 2023, 5:30 PM Reply Quote 0
                    • A
                      anwoke8204 @george1421
                      last edited by Jul 31, 2023, 5:30 PM

                      @george1421 I uninstalled ufw/iptables because I prefer firewalld. I used to use Centos, but as centos is now EOL, im having to switch all of our servers over to debian, and firewalld is what im familiar with. but I can’t seem to open port 2049/udp in firewalld for some reason.

                      We have stopped firewalld for now, and imaging works as expected. I have shown above, I have tried inputing the port via webmin and via commandline and it says its there when I try to add it via command line, so it doesn’t add it again. I might have to bite the bullet and just go with ufw/iptables (they are the same right? I am not that familiar with ufw).

                      G 1 Reply Last reply Jul 31, 2023, 6:11 PM Reply Quote 0
                      • G
                        george1421 Moderator @anwoke8204
                        last edited by Jul 31, 2023, 6:11 PM

                        @anwoke8204 said in No route to host when trying to capture with fog 1.15.10 new install:

                        I uninstalled ufw/iptables because I prefer firewalld.

                        I as you have moved on from Centos/RHEL. I was in the RHEL camp starting in 1999. With them closing down Centos as we knew it, I made the switch to Debian about 2 years ago. To me Centos is dead to me.

                        I can only comment on firewalld and masking Debian because you are comfortable with the way RHEL worked. Eventually you will need to become familiar with the way Debian and to a lesser extend Ubuntu does things. IMO just bit the bullet and use ufw that way you can find support. The concepts are pretty much the same between firewalld and ufw because iptables runs under the hood for both. Now that you understand the concepts the rest is just syntax. You have to do what’s right for you and your business, don’t simply listen to some dude on the internet.

                        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!

                        A 1 Reply Last reply Jul 31, 2023, 7:00 PM Reply Quote 0
                        • A
                          anwoke8204 @george1421
                          last edited by anwoke8204 Jul 31, 2023, 1:27 PM Jul 31, 2023, 7:00 PM

                          @george1421 ok, I have reinstalled ufw. and removed firewalld. will let you know how it goes. here are my rules, do these look ok?

                          04dc6466-92c1-4b23-8d46-8c5d64d9c1e7-image.png

                          let me know if there are any rules I need to delete or change.

                          G 1 Reply Last reply Jul 31, 2023, 8:46 PM Reply Quote 0
                          • G
                            george1421 Moderator @anwoke8204
                            last edited by Jul 31, 2023, 8:46 PM

                            @anwoke8204 The only one I don’t see is ftp.

                            Fog uses ssh, nfs, ftp. tftp, bootp/dhcp, http, https, rpc port mapper Make sure that stuff is enable. The rest looks good.

                            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!

                            A 6 Replies Last reply Jul 31, 2023, 9:03 PM Reply Quote 0
                            • A
                              anwoke8204 @george1421
                              last edited by Jul 31, 2023, 9:03 PM

                              @george1421 ok, I have added that port. I am not onsite, as i remote in so I am waiting to see if someone onsite can test and get back to me.

                              1 Reply Last reply Reply Quote 0
                              • A
                                anwoke8204 @george1421
                                last edited by Aug 1, 2023, 2:30 AM

                                @george1421 ok, it halts at tftp and times out.

                                tftp timeout.jpg

                                here are the firewall rules I have. which ones do i need to change or fix?

                                7cb7d39b-95a9-4e33-ba20-a86f3d8448aa-image.png

                                1 Reply Last reply Reply Quote 0
                                • A
                                  anwoke8204 @george1421
                                  last edited by Aug 1, 2023, 3:19 AM

                                  @george1421 I redid all of the rules and just put in the fog ports, ssh, and webmin ports. ufw now looks like this:

                                  d02f160f-1565-4bb2-a6fa-3a490b1726d5-image.png

                                  is there any other ports or icmp requests I should open? sorry, I am not that familiar with ufw.

                                  1 Reply Last reply Reply Quote 0
                                  • A
                                    anwoke8204 @george1421
                                    last edited by Aug 1, 2023, 3:43 AM

                                    @george1421

                                    Cant seem to get it going, so im going to try bringing FOG online using rocky linux since its based off of RHEL, and thats what im more familiar with. I will let you know how it goes.

                                    1 Reply Last reply Reply Quote 0
                                    • A
                                      anwoke8204 @george1421
                                      last edited by Aug 1, 2023, 5:50 AM

                                      @george1421 ok, I have it up and running on Rocky Linux, but I am still having the firewald issue where when I create rule 2049/udp it doesn’t show, so when I try to add it manually in the xml file firewalld crashes. any idea how I can get the port to stick in firewalld?

                                      1 Reply Last reply Reply Quote 0
                                      • A
                                        anwoke8204 @george1421
                                        last edited by Aug 1, 2023, 6:19 AM

                                        @george1421 ok, I was able to get the port to stick, so here is a screenshot of all of the open ports now.

                                        1168fe10-fe14-40fb-97b1-8fe7fb3cf1d8-image.png

                                        but we are still getting the no route to host. Is there a port I am missing? Any idea why its doing that? it has to be something with that port not working right or something. when we turn the firewall off, it works just fine, but when we turn the firewall on, we get no route to host.

                                        G 1 Reply Last reply Aug 1, 2023, 11:28 PM Reply Quote 0
                                        • G
                                          george1421 Moderator @anwoke8204
                                          last edited by Aug 1, 2023, 11:28 PM

                                          @anwoke8204 In this article https://www.cherryservers.com/blog/how-to-configure-ubuntu-firewall-with-ufw There is a section about logging. It kind of indicates that the default deny policy logs blocked packets in /var/log/ufw* files. Lets see if there is something there regarding to what nfsv3 is trying to do. I don’t have ufw enabled on my fog servers so I have not run into this issue before.

                                          It looks like you have all of the rules/ports enabled.

                                          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!

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

                                          169

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project