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

    FOG With more than 1 subnet

    Scheduled Pinned Locked Moved
    General
    4
    36
    6.0k
    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.
    • george1421G
      george1421 Moderator @igorpa2
      last edited by george1421

      @igorpa2 We do have some tools built into the FOS Linux (the os that runs on the target computer) where we can put FOS Linux in debug mode and then test network throughput to see if the network links are able to pass 1GbE or not if you want to do some debugging. My bet is that your vlan router can’t maintain the normal traffic flow plus add imaging traffic. In some testing I’ve done, I can flood a 1GbE link on a server with just 3 unicast images running at the same time. 6.1GB/min equates to about 100MB/s or about 1Gb/s (the full bandwidth of a 1GbE link. Understand that number in partclone is actually the entire data path and not just network, so its a bit misleading. But know we have tools like iperf3 on FOS Linux so we can test bandwidth back to the fog server for debugging slow connections.

      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!

      I 1 Reply Last reply Reply Quote 0
      • I
        igorpa2 @george1421
        last edited by igorpa2

        @george1421 I have tested to use only one FOG to use on all subnets and I have a problem that I can’t transmit the file via TFTP. My client on network 172 normally receives the IP from DHCP, but does not receive the file to boot.

        I also did the following test: I entered my FOG from network 172, and used the TFTP get command for my main FOG server and got the same error when I try to boot with the 172 clients. The file does not come, it gives a timeout error . Do you have any idea what it could be? In clients from network 200, the boot occur normally.

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

          @igorpa2 said in FOG With more than 1 subnet:

          entered my FOG from network 172, and used the TFTP get command for my main FOG server and got the same error

          I have see something similar but not with subnets on the same campus. I have seen this with a WAN configuration, where the MTU of the link is below the block size of tftp and the packets get fragmented and then discarded by the WAN router.

          Lets rule out network connectivity.

          1. Can you ping the FOG server on the 200 vlan from the 172 vlan?
          2. Is there some type of screening router or firewall between the two vlans that might filter out tftp traffic?

          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!

          I 1 Reply Last reply Reply Quote 0
          • I
            igorpa2 @george1421
            last edited by igorpa2

            @george1421

            1. Yes, i can ping each other on both two subnets.
            2. Yes, pfsense itself. I set the rules to pass all ports and all protocols between the FOG IP Server and the 172 network.

            The MTU is in blank, what seems to be the default 1500.

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

              @igorpa2 OK then I guess you need to see if its an mtu issue then

              Here is a good article on this: https://www.comparitech.com/net-admin/determine-mtu-size-using-ping/ look at the section “Find the path MTU with a Ping command”

              I kind of don’t think is this the issue, but the test is pretty easy. From a windows or linux computer on the 172 subnet run the ping command as outlined in that document. I think the magic number is having an MTU larger than 1468, this is the default tftp block size. If your MTU is 1500 more less then this issue isn’t related to MTU. If your mtu is less than 1468 then we can adjust the block size on the fog server to be less than your mtu.

              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!

              george1421G I 2 Replies Last reply Reply Quote 0
              • george1421G
                george1421 Moderator @george1421
                last edited by george1421

                @george1421 If its not an mtu issue then lets see if you can connect to the port. Microsoft has a tool call portqry that we can use from 172 to connect to the fog server on 200. All this tool does is try to open a port at the defined IP address. It doesn’t know what the port does it just tries to reach it.

                https://learn.microsoft.com/en-US/troubleshoot/windows-server/networking/portqry-command-line-port-scanner-v2

                In the case of tftp its udp port 69.

                The command might look like this

                portqry.exe -n 192.168.200.55  -p udp -e 69
                

                FWI: 192.168.200.55 represents whatever the fog server’s IP address is for the imaging network.

                If you can’t connect to the port then we need to look at the fog server to see if some kind of firewall is enabled on the fog server, to-where why it only allows communication on the local subnet.

                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!

                I 1 Reply Last reply Reply Quote 0
                • I
                  igorpa2 @george1421
                  last edited by

                  @george1421 said in FOG With more than 1 subnet:

                  @igorpa2 OK then I guess you need to see if its an mtu issue then

                  Here is a good article on this: https://www.comparitech.com/net-admin/determine-mtu-size-using-ping/ look at the section “Find the path MTU with a Ping command”

                  I kind of don’t think is this the issue, but the test is pretty easy. From a windows or linux computer on the 172 subnet run the ping command as outlined in that document. I think the magic number is having an MTU larger than 1468, this is the default tftp block size. If your MTU is 1500 more less then this issue isn’t related to MTU. If your mtu is less than 1468 then we can adjust the block size on the fog server to be less than your mtu.

                  I discoverd the MTU is 1472. Sending a ping above this with the option “do not fragment” it returns the message “ping: local error: Message too long, mtu=1500”

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

                    @igorpa2 OK its not an MTU.

                    A little context here the default MTU is 1500, you measured 1472 for the packet size. The descrpancy is 28 bytes which is the ethernet header size. This link is normal.

                    Do the next test with portqry to see if you can reach the tftp port on the FOG server since pings work.

                    FWIW you can also use portqry to see if the web server is reachable by changing the protocol -p to tcp and the port -e to 80 in the command I previously provided.

                    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
                    • I
                      igorpa2 @george1421
                      last edited by igorpa2

                      @george1421 said in FOG With more than 1 subnet:

                      @george1421 If its not an mtu issue then lets see if you can connect to the port. Microsoft has a tool call portqry that we can use from 172 to connect to the fog server on 200. All this tool does is try to open a port at the defined IP address. It doesn’t know what the port does it just tries to reach it.

                      https://learn.microsoft.com/en-US/troubleshoot/windows-server/networking/portqry-command-line-port-scanner-v2

                      In the case of tftp its udp port 69.

                      The command might look like this

                      portqry.exe -n 192.168.200.55  -p udp -e 69
                      

                      FWI: 192.168.200.55 represents whatever the fog server’s IP address is for the imaging network.

                      If you can’t connect to the port then we need to look at the fog server to see if some kind of firewall is enabled on the fog server, to-where why it only allows communication on the local subnet.

                      Here’s the command result:

                      prtqry.PNG

                      (I hid the IP because it is a real ip)

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

                        @igorpa2 OK this is getting interesting. Its showing that the port is being filtered or blocked. Interesting. Something seems to be stopping the tftp communications.

                        Since the pfsense router is between the two, look at the firewall logs to see if pfsense for some reason is blocking that connection. Remember the key thing to look for is UDP and port :69 in the log. If you see it being blocked you can hit the plus next to the ip address to add it to the quick rule allow list.

                        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!

                        I 1 Reply Last reply Reply Quote 0
                        • I
                          igorpa2 @george1421
                          last edited by

                          @george1421 Ok, i will check de pfsense again. The first thing i really thought of was him. But since I was not successful, I came here to ask for help hehe. I don’t understand why it could be blocking, because, as I said, I released all the ports and protocols of everything that comes from the 172 network and that go to the main FOG address.

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

                            @igorpa2 While I know its probably a little annoying test this, try that, you should be learning some debugging steps here and maybe some tools you have not used before. So I think its a good thing. Learning is always good.

                            If your pfsense looks like its working good, we could create a rule specifically for tftp between 172 and 200, but in our case we would enable the traffic, but more importantly turn on logging, so when a packet matched we would get a log entry to know the packet was flowing through the firewall.

                            We are trying the logical path between the target computer and fog server. Right now we are having an issue with communications, this doesn’t have anything to do with FOG just yet, its at a lower level on the OSI stack.

                            If its not pfsense then we need to look at the fog server itself. Since you can ping the fog server from 172 then routing is working. So that should be the problem. What host OS is the fog server running? Is it ubuntu? If yes issue the command sudo ufw status if it responds with a status then the firewall is enabled on ubuntu.

                            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!

                            I 1 Reply Last reply Reply Quote 0
                            • I
                              igorpa2 @george1421
                              last edited by igorpa2

                              @george1421

                              @george1421 said in FOG With more than 1 subnet:

                              What host OS is the fog server running?

                              I’m using debian.

                              After some searching on internet, i found this steps(https://gist.github.com/troyfontaine/59ace875a951154f881bfe3d297d1a10) to configure PFSense with VLAN and TFTP Server. After configuring the step 3, now i can boot on the other vlan(172) but it’s more slowly than the vlan 200 to receive the boot file. But it works!! I don’t really know yet if this is the problem, but it worked haha. Now i’ll make some tests and see if the imaging it’s working correctly.

                              Thank you.

                              1 Reply Last reply Reply Quote 1
                              • B
                                banaunnuh
                                last edited by

                                I also did the following test: I entered my FOG from network 172, and used the TFTP get command for my main FOG server and got the same error when I try to boot with the 172 clients. The file does not come, it gives a timeout error . Do you have any idea what it could be? In clients from network 200, the boot occur normally.

                                george1421G 1 Reply Last reply Reply Quote 0
                                • B
                                  banaunnuh
                                  last edited by george1421

                                  Do you have any idea what it could be? In clients from network 200, the boot occur normally.

                                  MOD Note: I removed the previous two links because they appear to take the viewer to suspicious locations -George1421

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

                                    @banaunnuh said in FOG With more than 1 subnet:

                                    used the TFTP get command for my main FOG server and got the same error when I try to boot with the 172 clients. The file does not come, it gives a timeout error

                                    Can you ping the fog server IP address from the 172 subnet?
                                    Is there some kind of screening/firewall between the 200 and 172 subnets? The tftp protocol uses UDP port 69 NOTE: If you test tftp pull between a windows computer on 172 and the fog server on 200 you need to temporarily disable the windows firewall on the test computer because tftp, is like FTP in that it opens a command channel and a data channel for communications.

                                    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 1
                                    • 1
                                    • 2
                                    • 2 / 2
                                    • First post
                                      Last post

                                    183

                                    Online

                                    12.0k

                                    Users

                                    17.3k

                                    Topics

                                    155.2k

                                    Posts
                                    Copyright © 2012-2024 FOG Project