I would like to route an existing domain to a different ip address but only for a specific mac (or ip) address.
I have found this: https://github.com/RMerl/asuswrt-merlin/wiki/Custom-domains-with-dnsmasq , but it applies to all lan clients.
Actually, the case is as follows:
A domain (eg. www.xxxx.com) is not pingable.
A specific lan client must get a reply when pinging that domain.
Ideally, I just want the specific domain to be pingable only from the specific lan client (and not routing that domain).
Any idea on how could I achieve this?
----------------------------
Ok, after searching a bit, this appears to be a solution:
iptables -t nat -A PREROUTING -p icmp -m mac --mac-source xx:xx:xx:xx:xx:xx -d www.xxxx.com -j REDIRECT
I have found this: https://github.com/RMerl/asuswrt-merlin/wiki/Custom-domains-with-dnsmasq , but it applies to all lan clients.
Actually, the case is as follows:
A domain (eg. www.xxxx.com) is not pingable.
A specific lan client must get a reply when pinging that domain.
Ideally, I just want the specific domain to be pingable only from the specific lan client (and not routing that domain).
Any idea on how could I achieve this?
----------------------------
Ok, after searching a bit, this appears to be a solution:
iptables -t nat -A PREROUTING -p icmp -m mac --mac-source xx:xx:xx:xx:xx:xx -d www.xxxx.com -j REDIRECT
Last edited: