XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    How to pass MAC address to pfSense VM

    Scheduled Pinned Locked Moved Management
    6 Posts 2 Posters 262 Views 2 Watching
    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.
    • F Offline
      fred974
      last edited by

      Hi,

      I tried to run xcp-NG on both Hetzner and OVH and I have the same issue on both platform. I manged to get pfSense running in the VM and I can get the WAN and LAN working. I ordered more IP to be used as NAT port forwarding but I cannot figure out how to set the MAC address. I tried to add the MACt to the VM but that didn't work. Has anyone got xcp-ng working on either platforms?

      Thank you

      1 Reply Last reply Reply Quote 0
      • nikadeN Offline
        nikade Top contributor
        last edited by

        Used Hetzner many times with xcp-ng and pfsense, we ordered a subnet which was routed to the xcp-ng host.
        We then enabled forwarding on the xcp-ng host and setup the first usable IP as "local" subnet and then we were able to use the rest of the IP's on our VM's using that first IP as default gateway.

        F 1 Reply Last reply Reply Quote 0
        • F Offline
          fred974 @nikade
          last edited by

          @nikade do you use 2 IP subnet? 1x for xcp-ng management + ssh and another extra that you use for the VMs or is it all 1 single subnet? Also did you requested separate MAC on Hetzner backend or left it as is?

          @nikade said in How to pass MAC address to pfSense VM:

          We then enabled forwarding on the xcp-ng host and setup the first usable IP as "local" subnet

          How did you achieve this? Thank you very much in advance. I really appreciate the feedback..

          nikadeN 1 Reply Last reply Reply Quote 0
          • nikadeN Offline
            nikade Top contributor @fred974
            last edited by

            @fred974 said in How to pass MAC address to pfSense VM:

            @nikade do you use 2 IP subnet? 1x for xcp-ng management + ssh and another extra that you use for the VMs or is it all 1 single subnet? Also did you requested separate MAC on Hetzner backend or left it as is?

            @nikade said in How to pass MAC address to pfSense VM:

            We then enabled forwarding on the xcp-ng host and setup the first usable IP as "local" subnet

            How did you achieve this? Thank you very much in advance. I really appreciate the feedback..

            1 IPv4 on the dom0, the one that came with the server. Then we ordered a /29 IPv4 subnet which is routed to the dom0 IPv4 address.
            You then need to setup IPv4 forwarding on the dom0 by editing the sysctl and then setup the 1st usable IPv4 from the /29 IPv4 subnet on an internal interface.

            I just created a dummy vlan interface and put it there and that worked fine.

            F 2 Replies Last reply Reply Quote 0
            • F Offline
              fred974 @nikade
              last edited by

              @nikade said in How to pass MAC address to pfSense VM:

              then setup the 1st usable IPv4 from the /29 IPv4 subnet on an internal interface.

              Can this be the pfSense WAN?

              @nikade said in How to pass MAC address to pfSense VM:

              setup IPv4 forwarding on the dom0 by editing the sysctl

              Would you mind sharing how to do that?

              1 Reply Last reply Reply Quote 0
              • F Offline
                fred974 @nikade
                last edited by

                @nikade This is what is currently have:

                [16:39 xc-ng-hv1-fi ~]# sysctl net.ipv4.ip_forward
                net.ipv4.ip_forward = 0
                

                Is setting the value to 1 all O need to do? net.ipv4.ip_forward = 1 in /etc/sysctl.conf

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