Skip to contentSkip to conversation

Problem with arptables et mangle

DISCUSSION Antoine Souques 2 participants 2 messages Jul 24, 2010 – Jul 25, 2010

lore
Share & tools
lore
#0 lore raw

Hi,

I have some trouble to mangle the hardware arddresses with arptables. It works fine with IP adresses, but I cannot enter a rule with --mangle-hw--(d|s)

# arptables -A FORWARD --h-length 6 -s 138.195.130.6 --opcode 2 -j mangle --mangle-hw-s 00:01:30:12:3c:70

And my box tells me : Bad argument `00:01:30:12:3c:70'

kernel : Debian GNU/Linux, kernel 2.6.26-2-amd64

# lsmod |grep arp
arpt_mangle             6400  0
arptable_filter         6656  0
arp_tables             18832  1 arptable_filter
x_tables               25224  2 arpt_mangle,arp_tables

I have the version 0.0.3.3 of arptables

Thanks,

Antoine

#1 lore raw

Is it --mangle-mac-s?

----- Original Message -----
From: "Antoine Souques" <[email protected]>
To: [email protected]
Sent: 2010年 7 月 25日, 星期日 上午 12:44:23 GMT +08:00 Beijing / Chongqing / Hong Kong / Urumqi
Subject: Problem with arptables et mangle

Hi,

I have some trouble to mangle the hardware arddresses with arptables. It works fine with IP adresses, but I cannot enter a rule with --mangle-hw--(d|s)

# arptables -A FORWARD --h-length 6 -s 138.195.130.6 --opcode 2 -j 
mangle --mangle-hw-s 00:01:30:12:3c:70

And my box tells me : Bad argument `00:01:30:12:3c:70'

kernel : Debian GNU/Linux, kernel 2.6.26-2-amd64

# lsmod |grep arp
arpt_mangle             6400  0
arptable_filter         6656  0
arp_tables             18832  1 arptable_filter
x_tables               25224  2 arpt_mangle,arp_tables

I have the version 0.0.3.3 of arptables

Thanks,

Antoine
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html