[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Re[2]: [Mldonkey-users] donitor-like for ipfw
From: |
Joseph |
Subject: |
Re: Re[2]: [Mldonkey-users] donitor-like for ipfw |
Date: |
Fri, 21 Feb 2003 12:50:26 +0100 |
>> if someone have a better idea to get current ip ...
>
> I don't know how you get the current ip but the following line has
> worked for me for quite a while now :)
>
> links -source http://netsurf.ccn.net/cgi-bin/user.pl?submit=Check |
> cut -d: -f3 | sed '1,2d' | sed '2,3d' | cut -d\< -f1 | sed 's/ //g'
>
> Cheers,
>
> Martin
thanx, but i fixed that: i dont use the ip anymore.
the rules are now : count from any to any up via ppp0
i was using something like
ifconfig ppp0 | tail -n 1 | awk -F" " '{prtint $2}'
but it should have work only for some iface/os (i dont know how
ifconfig formats its outputs).
Jo.