Informing about the successful connection PPPoE client on FreeBSD?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
4 views
There is a server on FreeBSD, facing the net via PPPoE. When you connect he / she is given an honest IPS, but different each time. Screwed DynDNS client inadyn and everything seems OK, but one time out of ten inadyn some reason does not work and the server remains unavailable until the next reconnect (and sometimes reboot).

Is there a possibility to send the soap notification on the PPPoE connection itself every time at the moment of connection? Of course, what would this alert contained and the resulting IP.
by | 4 views

2 Answers

0 like 0 dislike
old=`cat ip` new=`ifconfig -L tun0 | grep inet | awk '{ print $2 }" echo $new > ip if [ "$old" = "$new" ] then echo ok! else echo $new | mail-s "NewIP" username echo bad! fi 

1. type this in the crown...
2. mpd4: set iface up-script /usr/local/etc/mpd4/io-up-pppoe.sh in this script you can put
ppp not remember if there is a startup script.
by
0 like 0 dislike
Sometimes stumbled on the fact that the HTTP request updates the DynDNS is not passed. Scored on the update lifting of the interface and now every 10 minutes the cron checks the IP change. If not the same as otdavaema DynDns — please update. Tools: bash, wget, grep, sed, tr, etc.
by

Related questions

0 like 0 dislike
4 answers
asked Mar 25, 2019 by capt_Rimmer
0 like 0 dislike
3 answers
asked Jun 8, 2019 by strelkovandreyvalerievich
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
25,716 users