Donate Share

MPD: FreeBSD PPP daemon

Tracker: Patches

5 Remote/local IP address macros in IPFW related RADIUS VSAs - ID: 2010154
Last Update: Comment added ( jsmax )

This patch adds two macros which enable the use of the local and remote IP
address of the link to be used in generating IPFW rules with the RADIUS
VSAs mpd-table, mpd-table-static, mpd-rule.

The patch replaces %a1 with the remote IP address, and %a2 with the local
IP address. Thus, we can tell MPD for example to put the remote IP address
in a table specified by the RADIUS VSA. Sample radius entry, which will put
the peer IP address in table 1(+the default offset defined):
mpd-table += 1=%a1

This is very useful for mass shaping different service types, etc.

The current function for parsing macros searches for a %+char+digit, so, in
order to not parse each line again, the %a1 and %a2 macros were chosen,
though not so descriptive.

Hope that gets included in the official MPD release, if you need any change
or suggest another macro names or sth else, please drop me a line at
root--at--net1--dot--cc


Nobody/Anonymous ( nobody ) - 2008-07-03 23:16

5

Open

None

Nobody/Anonymous

None

None

Public


Comment ( 1 )




Date: 2009-08-08 11:59
Sender: jsmax

Cool ! I hope they will include such a functionality in the upcoming
release ....


Log in to comment.

Attached File ( 1 )

Filename Description Download
patch-iface.c-ip-macros Patch - %a1 and %a2 macros in RADIUS VSAs Download

Change ( 1 )

Field Old Value Date By
File Added 283588: patch-iface.c-ip-macros 2008-07-03 23:16 nobody