March 5Mar 5 Hi all, using latest unraid w/ docker set to macvlan and I have a static MAC set on the container in the extra parameters via setting-mac-address 02:42:aa:00:ff:XX This WORKS, however when I reboot the server itself and the container auto-starts up, it gets a random MAC. If i force-update the conatiner after that it pulls the static MAC I have set again.Is there a way to make sure this always gets the static MAC even after reboots? I can't figure out why a server reboot is causing the MAC to randomly generate again.NOTE: This is for VPN purpsoes and routing via UniFi firewall w/ a VPN client on the firweall. I want to ensure that the container always routes all traffic via the VPN and nothing else - if the VPN is down then the traffic should cease. If there's a better way to go about this I'm all ears...
March 6Mar 6 The last four octets are the IP address, so aa:00:ff:XX is 170.00.255.XX ( this may break if you set by parameters ) ..... I use fix IP for docker, so its MAC address also fixed. Edited March 6Mar 6 by Vr2Io
March 6Mar 6 Author Solution FYI incase anyone finds this later - the mac address didn't follow the IP and kept changing (i had the docker IP set static and it still changed)I ended up just using wg0 tunnel built into unraid to connect proton VPN and push the traffic for hte container thru that.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.