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

Is it possible to connect to the Fog server remotely?

Scheduled Pinned Locked Moved Solved
FOG Problems
3
32
4.8k
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.
  • S
    Sebastian Roth Moderator
    last edited by Dec 8, 2020, 6:44 PM

    @PJB1983 Just so we get the full picture… So you have another router or layer-3 switch between the PXE booting host and the VPN gateway?

    In the best case the two communication partners should adjust MTU/packet size according to response from intermediate gateways and we might find out why this isn’t working properly by looking at the packet dump.

    When capturing the traffic please use the filter port 69 or icmp so we get that part as well. Would be great if you could upload the PCAP and post a link here or via private message to George and me.

    Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

    Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

    P 1 Reply Last reply Dec 8, 2020, 7:11 PM Reply Quote 0
    • P
      PJB1983 @george1421
      last edited by Dec 8, 2020, 7:00 PM

      @george1421 then i’ll get

      18:47:45.022319 IP 192.168.5.121.2070 > 95.0.0.85.69: 30 RRQ “undionly.kpxe” octet tsize 0
      18:47:45.061293 IP 192.168.5.121.2071 > 95.0.0.85.69: 35 RRQ “undionly.kpxe” octet blksize 1456

      G 1 Reply Last reply Dec 8, 2020, 7:35 PM Reply Quote 0
      • P
        PJB1983 @Sebastian Roth
        last edited by Dec 8, 2020, 7:11 PM

        @sebastian-roth can you see something in the file attached?

        N_EKS - appliance_MX-MX64 N_EKS_IF-LAN.pcap

        1 Reply Last reply Reply Quote 0
        • G
          george1421 Moderator @PJB1983
          last edited by Dec 8, 2020, 7:35 PM

          @pjb1983 said in Is it possible to connect to the Fog server remotely?:

          octet blksize 1456

          This is the problem. We need a value less than 1400. I have a ubuntu 20.04 fog server in my home lab. I’ll work with it tonight to see if I can get that block size below 1400. I know we’ve seen this issue before, because the first thing that came to my mind was network 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!

          P 1 Reply Last reply Dec 8, 2020, 7:39 PM Reply Quote 0
          • P
            PJB1983 @george1421
            last edited by Dec 8, 2020, 7:39 PM

            @george1421 THX!

            1 Reply Last reply Reply Quote 0
            • S
              Sebastian Roth Moderator
              last edited by Sebastian Roth Dec 8, 2020, 3:01 PM Dec 8, 2020, 8:56 PM

              @pjb1983 said in Is it possible to connect to the Fog server remotely?:

              octet blksize 1456

              This is a TFTP thing. Nothing to do with MTU really.

              In that PCAP we only see the request packts. Where did you capture those? Can you capture right on your FOG server so we see the reuqests coming in and answers going out? As well we might see ICMP packets from the gateway in case.

              If you capture on the gateway you might need to use a different filter as TFTP uses random high ports for the actual data channel. You might use the filter host x.x.x.x and udp or icmp and put in the FOG server IP.

              Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

              Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

              G P 2 Replies Last reply Dec 8, 2020, 9:32 PM Reply Quote 0
              • G
                george1421 Moderator @Sebastian Roth
                last edited by Dec 8, 2020, 9:32 PM

                @sebastian-roth said in Is it possible to connect to the Fog server remotely?:

                octet blksize 1456

                This is a TFTP thing. Nothing to do with MTU really.

                I may be off on this, but the tftp client asks the FOG server for the file and what the block size is. Since the block size is larger than the MTU the block will need to be fragmented between two packets. The fragmented udp packets are what the remote client is choking on. At least this is what I’m thinking.

                In the pcaps that have been done so far, we see the target computer getting the right pxe boot file name and it asking the fog server for that file and the fog server sending that file but we are seeing a tftp timeout (file never arrived)

                I’m not sure where the OP got this pcap from but the numbers align

                13:03:04.667062 IP 192.168.5.121.2071 > 95.0.0.85.69: 35 RRQ “undionly.kpxe” octet blksize 1456
                13:03:04.692814 IP 95.0.0.85.52966 > 192.168.5.121.2071: UDP, length 15
                13:03:04.693826 IP 192.168.5.121.2071 > 95.0.0.85.52966: UDP, length 4
                13:03:04.718623 IP 95.0.0.85.52966 > 192.168.5.121.2071: UDP, bad length 1460 > 1400
                13:03:04.718623 IP 95.0.0.85 > 192.168.5.121: ip-proto-17
                13:03:05.719924 IP 95.0.0.85.52966 > 192.168.5.121.2071: UDP, bad length 1460 > 1400
                

                We know the tftp bock size is sending 1456 and we are getting a bad length 1460 > 1400. The numbers seem to align. Then again, I’ve been wrong too many times to count before, so…

                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
                • G
                  george1421 Moderator @PJB1983
                  last edited by Dec 8, 2020, 11:37 PM

                  @pjb1983 Well I have success, but still confused why the instructions were wrong. For background the tftp service can be managed by xinetd (normal) but it can also be launch by systemctl directly. It appears with ubuntu 20.04 both methods are setup but only the service route is configured to run.

                  So exit /etc/default/tftpd-hpa

                  Make the tftp options look like this:

                  TFTP_OPTIONS="-s --blocksize 1368"
                  

                  Once that is done restart the tftp service
                  sudo systemctl restart tftpd-hpa

                  Looking at the pcap I see it working as intended (may not be fixing your problem but the block site being adjusted according to the settings).

                  Screenshot from 2020-12-08 18-24-29.png

                  I can see the client asking for a 1468 block size. The tftp server saying ok but the block site is 1368. Then it sends only 1368 bytes at a time.

                  So why 1368. That is the mtu 1400 - 32 bytes for the ethernet header == 1368.

                  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!

                  P 1 Reply Last reply Dec 9, 2020, 8:53 AM Reply Quote 0
                  • P
                    PJB1983 @george1421
                    last edited by Dec 9, 2020, 8:53 AM

                    @george1421 that did the trick!
                    Thx for the support! 😊

                    1 Reply Last reply Reply Quote 1
                    • P
                      PJB1983 @Sebastian Roth
                      last edited by Dec 9, 2020, 2:18 PM

                      @sebastian-roth thx for the support!

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

                      157

                      Online

                      12.0k

                      Users

                      17.3k

                      Topics

                      155.2k

                      Posts
                      Copyright © 2012-2024 FOG Project