Re: how do I set the MAC address in POSTROUTING?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Le dimanche 10 décembre 2006 à 11:44 -0500, sean a écrit :
> The internet routers just look at the ip address, so I 
> wouldn't think they'd strip out the MAC address, do they?

MAC addresses are layer 2 addresses. They don't propagate outside
ethernet network when packet is handled by a router.

So, yes your local router can see your client MAC address and you can
use -m mac in iptables to match it. If you're sitting outside your
client's LAN, you won't see its MAC address.


-- 
http://sid.rstack.org/
PGP KeyID: 157E98EE FingerPrint: FA62226DA9E72FA8AECAA240008B480E157E98EE
>> Hi! I'm your friendly neighbourhood signature virus.
>> Copy me to your signature file and help me spread!



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux