All of lore.kernel.org
 help / color / mirror / Atom feed
* kernel mode pppoe ppp if + ifb + mirred redirect, ethernet packets in ifb?!
@ 2009-10-12  8:43 Denys Fedoryschenko
  2009-10-12 13:10 ` jamal
  0 siblings, 1 reply; 14+ messages in thread
From: Denys Fedoryschenko @ 2009-10-12  8:43 UTC (permalink / raw)
  To: netdev, hadi

Hi

I am using kernel mode pppoe, and while using mirred on ppp interfaces (to 
shape users upstream) noticed very strange behaviour (and IMHO wrong)

$2 - ppp interface
tc filter add dev $2 parent ffff: protocol ip prio 10 u32 \
match u32 0 0 flowid 1:1 \
action mirred egress redirect dev ifb0"

If i do tcpdump on ppp interface i can see normal ip traffic

PPPoE_146 ~ # tcpdump -ni ppp6 -c 100
tcpdump: WARNING:
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on ppp6, link-type LINUX_SLL (Linux cooked), capture size 96 bytes
11:36:16.541742 IP 172.16.131.221.2182 > 64.4.50.51.443: Flags [F.], seq 
2636760792, ack 2812561777, win 64963, length 0

If i do tcpdump on ifb0 i will see PPPoE incapsulated traffic! 
PPPoE_146 ~ # tcpdump -ni ifb0 -c 100
tcpdump: WARNING: ifb0: no IPv4 address assigned
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on ifb0, link-type EN10MB (Ethernet), capture size 96 bytes
11:36:58.949727 PPPoE  [ses 0x15] IP 172.16.98.22.2081 > 94.75.218.20.80: 
Flags [S], seq 3205622298, win 65535, options [mss 1440,nop,nop,sackOK], 
length 0
11:36:58.531473 PPPoE  [ses 0xd] IP 172.16.98.14.16526 > 128.16.130.164.445: 
Flags [S], seq 98566173, win 65535, options [mss 1440,nop,nop,sackOK], length 
0

Is it expected that redirecting ppp interface, that supposed to be clean IP 
traffic is becoming eth encapsulated traffic?
Probably some bad interaction with kernel mode pppoe?

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2009-10-14 19:59 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-12  8:43 kernel mode pppoe ppp if + ifb + mirred redirect, ethernet packets in ifb?! Denys Fedoryschenko
2009-10-12 13:10 ` jamal
2009-10-12 14:15   ` Denys Fedoryschenko
2009-10-12 20:57     ` jamal
2009-10-12 21:54       ` Denys Fedoryschenko
2009-10-12 22:07         ` jamal
2009-10-12 22:44           ` Denys Fedoryschenko
2009-10-13 12:21             ` jamal
2009-10-13 12:45               ` Denys Fedoryschenko
2009-10-13 13:02                 ` jamal
2009-10-13 14:34                   ` Benjamin LaHaise
2009-10-14 12:00                   ` jamal
2009-10-14 19:11             ` Jarek Poplawski
2009-10-14 19:59               ` Jarek Poplawski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.