Welcome Guest. Please Login or Register  


You are here: Index > Virtualizor - Virtual Server Control Panel > General Support > Topic : Hetzer MAC and routing problems - SOLVED



Normal Mode | Print  

 Hetzer MAC and routing problems - SOLVED (4 Replies, Read 32999 times)
transcom99
Group: Member
Post Group: Newbie
Posts: 28
Status:
After lots of hair pulling, the issue of Hetzner MAC abuse emails, was finally solved, (without any help, input or understanding from them)

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


IP: --   


Threads
 transcom99   Hetzer MAC and routing problems - SOLVED (4 Replies, Read 32999 times)
    |--  transcom99   just to add,...   on January 8, 2025, 7:39 am
    |--  jevingala   Hi, Does it...   on January 8, 2025, 10:09 am
    |--  transcom99   Hi, we started...   on January 8, 2025, 10:17 am
    |--  shella   This article is...   on June 25, 2025, 8:11 am

« Previous    Next »

Normal Mode | Print  



Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is August 10, 2025, 1:25 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 10  |  Page Created In:0.151