Skip to content
/ pdpwl Public

PDP Create Context matcher for iptables, can match and whitelist GTP packets by Station-Id.

License

Notifications You must be signed in to change notification settings

vzctl/pdpwl

Repository files navigation

PDP Create Context iptables matcher

This is an iptables module and it can match Caller-Station-Id attribute from PDP Create Context request. It also implements whitelisting by Station-Id ranges.

Usage

pdp match options for PDP Create Context requests:

 --pdp-any                 Match any request
 --pdp-reserved            Match hardcoded list of station ids
 --pdp-station-id num      Match particular Calling-Station-ID

Example

iptables -A INPUT -m pdp --pdp-reserved -j ACCEPT
iptables -A INPUT -m pdp --pdp-station-id  111111111111 -j ACCEPT
iptables -A INPUT -m pdp --pdp-any -j DROP

Notes

You should edit whitelist.c to change harcoded list of Station-Id ranges

About

PDP Create Context matcher for iptables, can match and whitelist GTP packets by Station-Id.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published