Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Linux 2.2 PPP protocol filter
Fetching latest commit…
Cannot retrieve the latest commit at this time.
|Type||Name||Latest commit message||Commit time|
|Failed to load latest commit information.|
.: PROTOFILTER :. $Id$ OVERVIEW -------- Protofilter is a linux kernel 2.2.x family patch. It adds the feature of packet filtering, concerning the idle option goal. This feature allows the correct operation of the ppp idle option when you need ppp-on-demand. By adding the feature of filtering (active filters are currently implemented under netBSD) you can specify a list of protocol ppp will ignore when it computes the idle time. Some isp send broadcast igmp (protocol =2), other send ip packets proto-103; the effect is that your ppp isn't able to close the idling link, since it's not able to calculate the idle time in the correct way. Sniff your ppp connection you can determine which packets ppp has to ignore. example: # tcpdump -i ppp0 10:33:56.438456 220.127.116.11 > 18.104.22.168: igmp query [tos 0xc0] [ttl 1] 10:34:06.378454 22.214.171.124 > 126.96.36.199: ip-proto-103 10 [tos 0xc0] [ttl 1] 10:34:36.548456 188.8.131.52 > 184.108.40.206: ip-proto-103 10 [tos 0xc0] [ttl 1] 10:34:56.798451 220.127.116.11 > 18.104.22.168: igmp query [tos 0xc0] [ttl 1] 10:35:06.858442 22.214.171.124 > 126.96.36.199: ip-proto-103 10 [tos 0xc0] [ttl 1] Load the ppp module patched, specifying the protocol marked as being ignored: modprobe ppp proto_in=2,103 note: 2=igmp protocol, see /etc/protocols INSTALL ------- To install the patch, set your uid to root and type ./proto.sh install. If everything goes fine, change directory to /usr/src/linux and rebuild the modules. make modules make modules_install Sincerely, Bonelli Nicola <firstname.lastname@example.org>