Hetzer MAC and routing problems - SOLVED https://www.softaculous.com/board/index.php?tid=19972 <![CDATA[Hetzer MAC and routing problems - SOLVED]]> https://www.softaculous.com/board/index.php?tid=19972&tpg=1#p59624 Wed, 25 Jun 2025 08:11:58 GMT https://www.softaculous.com/board/index.php?tid=19972&tpg=1#p59624 <![CDATA[Hetzer MAC and routing problems - SOLVED]]> https://www.softaculous.com/board/index.php?tid=19972&tpg=1#p58922
In ref to your link, we did a slightly different way so all the IP's could be used in a /29 . the gateway was the main server ipv4 in routed mode, and then added the route into the systemd as shown.

It all works extremely well now !

]]>
Wed, 08 Jan 2025 10:17:11 GMT https://www.softaculous.com/board/index.php?tid=19972&tpg=1#p58922
<![CDATA[Hetzer MAC and routing problems - SOLVED]]> https://www.softaculous.com/board/index.php?tid=19972&tpg=1#p58921

Does it not helps using this part of the guide :

https://www.virtualizor.com/docs/admin/hetzner-network/#hetzner-subnet-ip-range]]>
Wed, 08 Jan 2025 10:09:41 GMT https://www.softaculous.com/board/index.php?tid=19972&tpg=1#p58921
<![CDATA[Hetzer MAC and routing problems - SOLVED]]> https://www.softaculous.com/board/index.php?tid=19972&tpg=1#p58920
after creating the systemd

systemctl daemon-reload
systemctl enable ebtables.service

start it immediately to test before reboot:

systemctl start ebtables.service]]>
Wed, 08 Jan 2025 07:39:54 GMT https://www.softaculous.com/board/index.php?tid=19972&tpg=1#p58920
<![CDATA[]]> https://www.softaculous.com/board/index.php?tid=19972&tpg=0#p58919
If your getting these abuse emails because your VM is sending generated macs, do this:

sudo ebtables -t nat -A POSTROUTING -o enXXXXX -j snat --to-source xx:xx:xx:xx:xx::c5

change the NIC interface as required and get your MAC with ip a

Now make a systemd to start it on boot as a service:

[Unit]
Wants=network-online.target
After=network-online.target

[Service]
Type=simple
Restart=always
RestartSec=1
User=root
ExecStart=/root/startup.sh

[Install]
WantedBy=default.target


Your startup file can be anywhere, ours is in root/startup.sh, we also added a route for a Hetzner provided subnet:

#!/bin/sh

sudo ebtables -t nat -A POSTROUTING -o enXXXX -j snat --to-source xx:xx:xx:xx:xx:c5

ip route add xxx.xx.xx.xxx/29 dev viifbr0

Thats it, hours of pain solved.

Cheers,Bill


]]>
Wed, 08 Jan 2025 07:34:44 GMT https://www.softaculous.com/board/index.php?tid=19972&tpg=0#p58919