Can you use the second IP address with the same MAC address as the first one as far as Hetzner is concerned?If yes, then simply add it under Interfaces > Virtual IPs to your existing WAN.You cannot have addresses from the same subnet on two different interfaces.
Yes, so you use the main IP of your server for OPNsense and all alias IP addresses assigned to that with the same MAC and you use one extra IP with a different MAC for Proxmox ...
That's what I wrote: if no virtual MAC is set it uses the same as the main IP.So use main IP for OPNsense and an additional with virtual MAC for Proxmox ...HTH,Patrick
Unless of course you are suggesting spoofing the Server Hardware MAC Address into the OPNSense VM, that is NOT going to work ...
Quote from: luckylinux on May 22, 2024, 02:14:41 pmUnless of course you are suggesting spoofing the Server Hardware MAC Address into the OPNSense VM, that is NOT going to work ...I am suggesting exactly that. Spoofing the MAC of the Proxmox host to the additional virtual MAC for the second IP address, then spoofing the MAC address of the OPNsense VM to the original one of the physical server.
Or since this is simply L2 Networking and not Routing, it doesn't really matter (there is no "Network" Address "Translation", just a switch and 2 MACs sending/receiving stuff) ?
Quote from: luckylinux on May 22, 2024, 02:58:04 pmOr since this is simply L2 Networking and not Routing, it doesn't really matter (there is no "Network" Address "Translation", just a switch and 2 MACs sending/receiving stuff) ?I guess so - all of that is just a suggestion. I do run OPNsense at Hetzner, just not virtualised.
Quote from: luckylinux on May 22, 2024, 02:58:04 pmOr since this is simply L2 Networking and not Routing, it doesn't really matter (there is no "Network" Address "Translation", just a switch and 2 MACs sending/receiving stuff) ?I guess so - all of that is just a suggestion. I do run OPNsense at Hetzner, just not virtualised.EDIT: thinking about my two node OPNsense HA cluster at Hetzner ...You could IMHO:- order a vswitch for your proxmox host- define the vswitch VLAN in proxmox- pass that as a virtual interface to OPNsense as WAN- order a /29 or whatever connected to that vswitch and use these addresses in OPNsense
#auto eth0iface eth0 inet manualauto vmbr0iface vmbr0 inet static hwaddress XX:XX:XX:XX:XX:XX address 94.XX.XX.XX netmask 255.255.255.192 gateway 94.XXX.XXX.XXX #pointopoint 94.XXX.XXX.XXX bridge-ports eth0 bridge-stp off bridge_waitport 0 bridge-fd 0 bridge-disable-mac-learning 1 bridge-unicast-flood off bridge-multicast-flood off bridge-vlan-aware yes bridge-vids 2-4096 pre-up ip addr flush dev eth0 post-up ip addr flush dev eth0iface vmbr0 inet6 static hwaddress XX:XX:XX:XX:XX:XX address 2a01:XXXX:XXXX:XXXX:0001:0000:0000:0001 netmask 96 gateway fe80::1 bridge-mcsnoop no bridge-ports eth0 bridge-stp off bridge_waitport 0 bridge-fd 0 bridge-disable-mac-learning 1 bridge-unicast-flood off bridge-multicast-flood off bridge-vlan-aware yes bridge-vids 2-4096 pre-up ip addr flush dev eth0 post-up ip addr flush dev eth0
address: 2a01:XXXX:XXXX:XXXX:0001:0000:0000:**0010**netmask: 96gateway: 2a01:XXXX:XXXX:XXXX:0001:0000:0000:0001
sysctl -w net.ipv6.conf.default.forwarding=1sysctl -w net.ipv6.conf.all.forwarding=1sysctl -w net.ipv6.conf.default.forwarding=1
Gateway fe80::1 would NOT work in OPNSense. I guess that's because Routing (of Subnet) is required.