Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 703 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 703 Bytes

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