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
|