ebtables arp size error on tap iface

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

 



All,

I'm trying to filter out some multicast traffic on an openvpn interface
(tap2).  The goal is power conservation, since the vpn client is my
phone and the multicast/broadcast traffic keeps unecessarily waking it
up.  So, at my server, I'm trying to prevent these packets from going
down the pipe.

my end goal is to have something like this:

### start fw_up.sh ####################################################
#!/bin/sh

DEV=tap2
IP=${1}

# allow arp requests for destination ip
ebtables -A FORWARD -p ARP -o $DEV --arp-opcode 1 --arp-ip-dst $IP \
	-j ACCEPT

# drop all multicast/broadcast
#ebtables -A FORWARD -o $DEV -d 01:00:00:00:00:00/01:00:00:00:00:00 \
	-j DROP

# allow all else
#ebtables -A FORWARD -o $DEV -j ACCEPT

exit 0
### end fw_up.sh ######################################################

Unfortunately, the first rule fails to load and I get a message in my
logs:

kernel: eb_tables: arp match: invalid size 56 != 52

So, my dilemma is this is an old kernel (2.6.30.2) on my primary server
at home.  It handles everything.  I plan to upgrade the kernel, but not
right now.

Am I doing something wrong with my ebtables call?  Is there something I
can set on my tap2 interface (checksum perhaps?) to fix this?  Or do I
have to hold off until I upgrade my kernel?

thx,

Jason.
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[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