Good day. I'm using freeradius-2.2.5 as customized dhcp-server (2.2.5 because debian backports has no newer version and I don't like to build deb by hands). There is problem of logging remote-id and circuit-id. I have modified default loggin and it looks like this: sqlippool_log_success = "DHCP: Allocated IP: %{reply:Framed-IP-Address} from %{control:Pool-Name} \ (did %{Called-Station-Id} \ cli %{Calling-Station-Id} \ port %{NAS-Port} user %{User-Name} \ remote-id %{request:DHCP-Relay-Remote-Id} \ circuit-id %{request:DHCP-Relay-Circuit-Id}" It produces log entries like this: Thu Jul 9 15:27:50 2015 : Info: DHCP: Allocated IP: 172.31.251.244 from <Pool name here> (did cli 00:1f:c6:e9:0c:92 port user DHCP-00:1f:c6:e9:0c:92 remote-id 0x00060012cfa7f180 circuit-id 0x000407d00105 0012cfa7f180 - this is mac-address of the switch, 07d0 - hex vlan number (2000 in dec), 05 - is a hex port nubmer. I would like to log this entries in more human readable form: - mac-addres should be "0012.cfa7.f180" in cisco style or "00:12:cf:a7:f1:80" - vlan number should be "2000" - port number should also be decimal number "05" (wrong example with 5 :-)) How can I modify logging configuration to get human values in log file ?
On Jul 9, 2015, at 5:43 AM, Anton <warm@mtele.pro> wrote:
I'm using freeradius-2.2.5 as customized dhcp-server (2.2.5 because debian backports has no newer version and I don't like to build deb by hands).
It takes about 10 minutes to build a debian by hand.
I would like to log this entries in more human readable form:
Upgrade to 3.0.9, which will decode those options. Version 2.2.5 will *not* decode those options. Alan DeKok.
Ok, I mean logging this variables via unlang, converting it - is it possible to parse it some how ? How does 3.0.9 the same log look like ? I'll try 3.0.9 but this is production server, it is hard :-(. В Thu, 9 Jul 2015 07:52:18 -0400 Alan DeKok <aland@deployingradius.com> пишет:
On Jul 9, 2015, at 5:43 AM, Anton <warm@mtele.pro> wrote:
I'm using freeradius-2.2.5 as customized dhcp-server (2.2.5 because debian backports has no newer version and I don't like to build deb by hands).
It takes about 10 minutes to build a debian by hand.
I would like to log this entries in more human readable form:
Upgrade to 3.0.9, which will decode those options. Version 2.2.5 will *not* decode those options.
Alan DeKok.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On Jul 9, 2015, at 11:39 AM, Anton <warm@mtele.pro> wrote:
Ok, I mean logging this variables via unlang, converting it - is it possible to parse it some how ?
Yes. v3 can decode the DHCP options.
How does 3.0.9 the same log look like ?
It's customizable.
I'll try 3.0.9 but this is production server, it is hard :-(.
a) live without the feature b) upgrade to 3.0.9 Choose one. Alan DeKok.
participants (2)
-
Alan DeKok -
Anton