ebtables : Changing destination MAC address using kernel modules
Hey there!
So I have been working on directing my outgoing traffic to different computers in my LAN. So to begin with, I need to change the address of outgoing packets. Which I am doing in ebtable NAT OUTPUT(NF_BR_LOCAL_OUT) hook, belonging to the NFPROTO_IPV4 family. Also I am using the following code: Code:
#include <generated/autoconf.h> So here it is. So any ideas guys? Digvijay |
Most probably lack of promisc on NIC which is supposed to send this traffic, or your NIC isn't able to do so.
P.S. What debugging? You have no debugging in this modules! |
Quote:
Digvijay PS: No debugging here. |
Actually it could be hunging on atomic operations. It is worth checking. AFAIK atomic operation would turn off interrupts, so you should check, if it is reason.
|
Actually I have read your first post again and I can answer you, that all your code is completely needless. All what you have to do is to change destination MAC either in ARPtables or EBtables (EBtables only if you are sending this packet by bridge)
|
All times are GMT -5. The time now is 12:21 PM. |