Plugin Development getting peer ip.
Hey guys,
I was wondering if anyone could tell me how to get the ip address from the client when using ip_up notifier?
Also, with the ip_down notifier.
I'm attempting to track the bandwidth usage and connection via the above notifiers. Any help would be greatly appreciated.
Signature · 3 lines
Thank you, Greg Borbonus *Nix Server administrator
Quoted 4 lines · Greg
Hey guys,
I was wondering if anyone could tell me how to get the ip address from the client when using
ip_upnotifier?
You need to read the pppd dopcumentation. Look at '/etc/ppp/ip-up' in 'man pppd'.
Quoted 7 lines
Also, with the
ip_downnotifier.I'm attempting to track the bandwidth usage and connection via the above notifiers. Any help would be greatly appreciated.
hi Greg,
according to the man page you can have up to 6 arguments:
interface-name tty-device speed local-IP-address remote-IP-address ipparam
I guess you are searching for remote-IP-address.
re,
wh
Am 17.03.2014 16:41, schrieb Greg:
Quoted 10 lines
Hey guys,
I was wondering if anyone could tell me how to get the ip address from the client when using
ip_upnotifier?Also, with the
ip_downnotifier.I'm attempting to track the bandwidth usage and connection via the above notifiers. Any help would be greatly appreciated.