[pptp-server] Logging actual remote ip addr

George Vieira georgev at citadelcomputer.com.au
Mon Dec 18 15:47:48 CST 2000


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

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


Bring the link up and then look at this file.. let me know what you get..
Change IPs if it's internet addresses for privacy if responding to the
mailling list.

thanks,
George

-----Original Message-----
From: Giulio Orsero [mailto:giulioo at pobox.com]
Sent: Tuesday, December 19, 2000 7:00 AM
To: pptp-server at lists.schulte.org
Subject: Re: [pptp-server] Logging actual remote ip addr


On Tue, 19 Dec 2000 06:48:29 +1100, you wrote:

>Yes you can, everybody has to remember that pptp is really a PPP link. So
>use the /etc/ppp/ip-up.local and /etc/ppp/ip-down.local to control your
>links that come up and down.
>
>Even pass the ipparam paramter into the pppd options so you can detect what
>type of connection it is in your scripts... Like mine. Just add a line
>somewhere and pass $1 $2 $3 $4 $5 $6 to get all information possible.

I'd already tried that, but those variables contain the ip address of
the vpn, not the actual address of the remote client.
If the remote client internet address is 212.x.x.x, and the vpn address
assigned by pptpd to that client is 192.168.1.10, then $5 says
192.168.1.10, while I want 212.x.x.x.

Is there a way to change this behavior?

Thanks

-- 
giulioo at pobox.com
_______________________________________________
pptp-server maillist  -  pptp-server at lists.schulte.org
http://lists.schulte.org/mailman/listinfo/pptp-server
List services provided by www.schulteconsulting.com!



More information about the pptp-server mailing list