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

    Two VLANs (Two IP ranges)

    Scheduled Pinned Locked Moved Unsolved
    FOG Problems
    3
    6
    618
    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.
    • D
      diegogyn
      last edited by

      Two VLANs (Two IP ranges)

      Hello everybody.

      I have a doubt.
      How do I make fog work on 2 different vlans?

      I have pfSense as firewall and dhcp. And I have two vlans that must be separated for security reasons.
      network.jpeg

      I installed my fog server on vlan 3601 (192.168.10.1) and I want it to also work on vlan 3600 (192.168.0.1).

      I placed 2 network cards in it, each one in its respective LAN and I also created two Storage Nodes each for its VLAN. On vlan 3601 (192.168.10.1) it works perfectly.
      conf.png

      I configured DHCP in pfsense, but when I boot into VLAN 3600 I have the following error:

      error.jpeg
      (It finds the IP in TFPT but does not find the URL in HTTP)

      What am I doing wrong?

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

        @diegogyn You need to have full routing working between the subnets. More precisely for this error you need to be able to reach the fog server’s web ui from the 3600 vlan. It looks like you have tftp setup because fog’s ipxe boot loader is running.

        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!

        D 1 Reply Last reply Reply Quote 0
        • D
          diegogyn @george1421
          last edited by

          @george1421 I can access the fog http interface from both networks. On the 3600 network I access the web interface via IP 192.168.0.1.

          In my view, the problem is that when starting the ipxe boot loader it pulls the IP from the other network (3601), when the correct thing is for it to pull the IP from the network where I am starting it.

          Is it possible to configure the ipxe boot loader to try to download files from 2 different IP ranges?

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

            @diegogyn said in Two VLANs (Two IP ranges):

            Is it possible to configure the ipxe boot loader to try to download files from 2 different IP ranges?

            Fog is not designed to have/support multiple imaging network interfaces. If this is what you are trying to do, then that is your problem. You might need to setup an additional FOG server on the vlan 3600 subnet if there are filtering rules blocking access to the 192.168.10.1 IP address.

            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!

            D 1 Reply Last reply Reply Quote 0
            • B
              baovipboy156
              last edited by

              as your case, i have 3 solution:

              1. create a rule on pfsense any IPv4 can see the fog server 192.168.10.ipfogserver
              2. on the wan site aka upstream network, forward port to the fogserver, so all the internal can see the fog server
              3. modify the fog client to use dns or inject custom code like

              (if current ip ==192.168.10.x)
              set ip fogserver 192.168.10.fogserver
              else set ip fogserver 192.168.0.fogserver

              1 Reply Last reply Reply Quote 0
              • D
                diegogyn @george1421
                last edited by

                I understand. I thought that with 2 network cards it would be possible to do this.

                What I tried was to do the following and change the default.ipx file with the following line:

                chain http://192.168.10.1/fog/service/ipxe/boot.php##params || chain http://192.168.0.1/fog/service/ipxe/boot.php##params || goto bootme
                

                WhatsApp Image 2023-12-06 at 09.34.02.jpeg
                And I managed to boot on the other network. This way, it is possible to boot from the 2 network cards in different VLANs.

                The problem is that, as @george1421 said, Fog doesn’t provide this type of support. (I believe that if the developers created an ID to identify the network and separated the files it would be possible to do this configuration, but I don’t know the feasibility of that.)

                As @baovipboy156 suggested, I’ll try to do a forward port to the fogserver in pfSense, and let you know if it works.

                Thanks for the help guys.

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

                159

                Online

                12.0k

                Users

                17.3k

                Topics

                155.2k

                Posts
                Copyright © 2012-2024 FOG Project