Skip to contentSkip to conversation

Plugin Development getting peer ip.

DISCUSSION Greg 3 participants 3 messages Mar 17, 2014 PPP protocol drivers and compressors

lore
Share & tools
lore

Greg

author
#0 lore raw

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
#1 lore raw
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_up notifier?

You need to read the pppd dopcumentation. Look at '/etc/ppp/ip-up' in 'man pppd'.

Quoted 7 lines

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.

#2 lore raw
In reply to Greg

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_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.