Is it possible to change the source MAC of all the outgoing ARP requests to a specific MAC instead of using the interface MAC in linux?
Is there a way to do this from the ARP tables?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
Yes, this can be achieved by adding rules by
Use this rule:
arptables -A OUT --source-hw xx:xx:xx:xx:xx:xx -j mangle --mangle-hw-s yy:yy:yy:yy:yy:yy
You may also add more filtering options if you need example interface, subnet etc.
For more information, refer to the man page.