Next: Null Modem Link, Previous: Using Call-back, Up: Usage
Chestnut Dialer can be used as dialin server, it can handle incoming calls to establish a PPP connection with remote machine (client). This can be done by making special account and "dialing" using it. When you dial using dialin account Chestnut Dialer begins to wait for incoming call, and when it occurs do answer and establishes PPP connection.
To make dialin account, create new account and setup following values:
Redial Forever: on
Redial Auto: on
Authentication Type: Terminal
Use Script: Predefined - Dialin
Ask Password: off
Local IP Address: 192.168.5.1
Netmask: 255.255.255.0
Remote IP Address: 192.168.5.2
Add Default Route: off
Note: if you connected to LAN (Local Area Network), make sure that you don't use same network numbers (see ifconfig(8)).
Also you can create this account using command line interface:
chestnut-dialer -c name=dialin redial_attempts=0 redial_auto=on \ auth_type=term use_script=predef-dialin ask_passwd=off \ ip=192.168.5.1 mask=255.255.255.0 remote=192.168.5.2 \ default_route=off
Account that provided bellow don't use any authentication, this means that client may use any user name and password. But if you need authentication, add to PPP Options following options ‘auth require-pap’, and add to /etc/ppp/pap-secrets file following line:
"username" hostname "userpassword" *
where ‘username’ stands for user name, ‘hostname’ stands for your host name (you can get it using hostname(1)), ‘userpassword’ stands for password. You can add multiple lines with different user names and passwords. See details in pppd(8).
Clients must dial to your phone number and use PPP protocol. User name and password depends on your configuration. If you don't configure any authentication, then clients may use any user name and password, otherwise each client must use one of pairs user name/password, that you added to /etc/ppp/pap-secrets file, in this case client must use PAP authentication.
In order to access your services, remote client must use 192.168.5.1 address (or that you type as local IP address). For example:
ftp://192.168.5.1
http://192.168.5.1