[pptp-server] Logging actual remote ip addr
Giulio Orsero
giulioo at pobox.com
Mon Dec 18 16:03:39 CST 2000
On Tue, 19 Dec 2000 08:47:48 +1100, you wrote:
>I don't know how that can be... because your PPP shows up as... eg..
>ppp1 Link encap:Point-to-Point Protocol
> inet addr:10.0.0.1 P-t-P:10.0.0.68 Mask:255.255.255.255
> UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
> RX packets:231490 errors:0 dropped:0 overruns:0 frame:0
> TX packets:149905 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:10
>So how the hell is it reporting the external addresses...
Sorry, I don't understand.
Suppose I use in pptpd.conf:
localip 10.0.0.1
remoteip 10.0.0.68 (just an example to follow you on the above output)
and suppose a client connects to its ISP and gets ip 212.x.x.x.
that clients connect to my VPN server, say 210.x.x.x.
Then, the variables in ip-up will show 10.0.0.1 and 10.0.0.68, while I
want to know the 212.x.x.x address of the client which I only see in the
pptpd log (through syslog)
>Just add the following line into your /etc/ppp/ip-up.local and watch the
>logs as your bring the link up
>echo "$1 $2 $3 $4 $5 $6 " >> /var/log/pppconnect.log
$4 and $5 would be 10.0.0.1 and 10.0.0.68
As far as I understand pptd<--->pppd interaction, pppd only sees
internal/vpn addresses (the one you specify in pptpd.conf), not the real
internet addresses (the one I want to automatically email to someone).
--
giulioo at pobox.com
More information about the pptp-server
mailing list