How to pass MAC address to pfSense VM
-
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
-
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. -
@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..
-
@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.
-
@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?
-
@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