Welcome Guest. Please Login or Register  


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



Threaded Mode | Print  

 Hetzer MAC and routing problems - SOLVED (4 Replies, Read 33000 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: --   

Hetzer MAC and routing problems - SOLVED
transcom99
Group: Member
Post Group: Newbie
Posts: 28
Status:
just to add, in case your un aware..

after creating the systemd

systemctl daemon-reload
systemctl enable ebtables.service

start it immediately to test before reboot:

systemctl start ebtables.service
IP: --   

Hetzer MAC and routing problems - SOLVED
jevingala
Group: Virtualizor Team
Post Group: Super Member
Posts: 778
Status:
Hi,


Does it not helps using this part of the guide :

https://www.virtualizor.com/docs/admin/hetzner-network/#hetzner-subnet-ip-range

-----------------------
Regards,
Virtualizor Team.
http://virtualizor.com/
IP: --   

Hetzer MAC and routing problems - SOLVED
transcom99
Group: Member
Post Group: Newbie
Posts: 28
Status:
Hi,  we started with the guide, and although it worked, the abuse message quickly came from Hetzner, with the threats of blocking etc.  This turned into a slanging match as Hetzner refused to offer any help on servers saying its our issue, so we found our own solution and it works fine.

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 !

IP: --   

Hetzer MAC and routing problems - SOLVED
shella
Group: Member
Post Group: Newbie
Posts: 1
Status:
This article is a must-read for anyone seeking expert-level guidance.
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


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

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