Перебрал логи в mpd.conf, и все равно не получается логировать ip адрес подключаемого клиента. Уверен, что все просто, но что-то я не могу найти как включить. Подскажите, пожалуйста.

Код: Выделить всё
set iface up-script script
set iface down-script script
Mpd can optionally run a user program every time one of network protocols (IPCP/IPv6CP) at the interface is brought up or
down. The up-script is called like this:
script interface proto local-ip remote-ip authname [ dns1 server-ip ] [ dns2 server-ip ]
If up-script exit status is not 0, mpd will kill respective protocol.
The down-script is called like this:
script interface proto local-ip remote-ip authname
Включил все логи, что были, подключился и не нашел своего ИП в логе.Гость писал(а):лог в mpd.log есть подключаемых клиентов
Код: Выделить всё
#!/bin/sh
_if_user=$5;
_if_ip=$3;
_if_src_ip=$8;
/usr/bin/logger "mpd: user $_if_user logged from $_if_src_ip , vpn IP is $_if_ip"