>PPP is very difficult to configure when I want to use it as server !
True, most descriptions apply to clients only. However, it's actually
simple, even simpler than setting up a client. Below I'll describe how I
did it. However, just yesterday I found a reference to a possibly
I haven't looked at it much yet, I think it uses mgetty though (which is
what I'm using).
Here is a quick description of how I did it a while back:
- Installed pppd as per pppd's installation description
- Enabled ppp in kernel, rebuilt & restarted
- got mgetty, enabled AUTO_PPP in the Makefile (-DAUTO_PPP in CFLAGS),
built and installed it
- In the directory /usr/local/etc/mgetty+sendfax/ I edited the file
login.config to enable automatic PPP startup on receipt of LCP config
request, that was just to remove a # in front of /AutoPPP something
(Actually, I removed the whole file, made a new one, and put in this
slightly different single line:)
/AutoPPP/ - a_ppp /usr/sbin/pppd
THEN (important, or nothing works): chmod 0600 login.config
- In /etc/inittab I put this line:
s2:45:respawn:/sbin/mgetty -x 9 -s 38400 -D /dev/ttyS1
You must find what your own serial port is, of course.
- In /etc/ppp I have these files:
Here you just put in something like:
username servername passwd ipaddress(of client)
Let's say your user is 'santa', your server's pppd interface address
is 'serverppp', santa's password is christmas, santa's connection should
be given the address 'dial3' (all defined in /etc/hosts or somewhere)
Then /etc/ppp/chap-secrets should look like this:
santa serverppp "christmas" dial3
These /etc/ppp files should be read/writable by root only.
That's all I think. But have a look at that web page, it could be more
useful than my description, I don't know.