eremos
Senior Member
I have the code in an executable script file called local in my /etc/ip-up.d/
directory. The advantage of that is that whatever scripts are in that folder, will be run everytime a ppp connection is made.
Could that be the problem?
Nope, that's the way it should be. The variables $IPLOCAL and $IPREMOTE are passed to the script by pppd. Are you getting your IP logged by the following line?
echo $IPLOCAL >/etc/ppp/iplocal.txt
Try adding this:
echo $IPREMOTE > /etc/ppp/ipremote.txt
And see if it logs the gateway IP.
I tried manually running the script file with no success.
No, that wouldn't work unless you hard coded the IPs