Skip to contentSkip to conversation

raw packet capture based on offset

DISCUSSION [email protected] 3 participants 3 messages Sep 22, 2005 – Sep 23, 2005

lore
Share & tools
lore
#0 lore raw

Hi,

I want to capture raw packets based on the ethernet source (mac) and a 16 bit identifier following the ethtype. I am unable to find a generic filter which gives me a freedom to filter the packet based on any bit length and offset from the beginning of the packet. Can anyone help?

-nks

#1 lore raw
Quoted 1 line · On Thu, 22 Sep 2005 [email protected] wrote:

I want to capture raw packets based on the ethernet source (mac) and a 16 bit identifier following the ethtype. I am unable to find a generic filter which gives me a freedom to filter the packet based on any bit length and offset from the beginning of the packet. Can anyone help?

I think you want the u32 match from POM-ng.

Alexey

#2 lore raw

PPTP/IPSec multiple clients behind iptables NAT

I am using iptables 1.3.3

I had some problems with multiple clients behind NAT(a simple MASQUERADE rule is set) connecting to the same VPN server. ONly one client can connect at a time.
I have enables the CONFIG_IP_NF_PPTP and CONFIG_IP_NF_CT_PROTO_GRE options in kernel.

I have read a few posts about this issue in the list from as early as in 2003. But could not find a conclusion.

Could you guys please clarify? Is this scenario supported by iptables? If not, is there a way to get around this issue?

thanks
Salim