In order to simplify things for our dial up PPP users, we create a global alias (in /etc/bashrc) so that one simple command will start ppp on the server once they are logged in.
This looks like...
alias ppp="exec /usr/sbin/pppd -detach"
What this does is
exec : this means replace the running program (in this case the shell) with the program that is run.
pppd -detach : start up pppd and do NOT fork into the background. This ensures that when pppd exits there is no process hanging around.
When a user logs in like this, they will appear in the output of 'w' as...
6:24pm up 3 days, 7:00, 4 users, load average: 0.05, 0.03, 0.00 User tty login@ idle JCPU PCPU what hartr ttyC0 3:05am 9:14 -
And that is it...I told you this was a simple, basic PPP server system!
|Setting pppd up to allow users to (successfully) run it||Up||Using PPP across a null modem (direct serial) connection|
Закладки на сайте
Проследить за страницей
Created 1996-2021 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру