Serial port Configure PPP dial-in mode
Digi Connect IT® 4 User Guide
233
12. For Authentication method, select the method used to authenticate the remote peer.
Allowed values are:
n None: No authentication is required.
n Automatic: Attempt to authenticate using CHAP first, and then PAP.
n CHAP: Use Challenge Handshake Authentication Protocol (CHAP) to authenticate.
n PAP: Use Password Authentication Protocol (PAP) to authenticate.
If Automatic, CHAP, or PAP are selected, type the Username and Password used to
authenticate the remote peer.
13. For Metric, set the priority of routes associated with this interface. If there are multiple active
routes that match a destination, then the route with the lowest metric will be used.
14. For Zone, select the firewall zone for this interface. This can be used by packet filtering rules
and access control lists to restrict network traffic on this interface.
15. (Optional) Configure the serial port to use a custom PPP configuration file:
a. Click to expand Custom PPP configuration.
b. Click Enable to enable the use of a custom PPP configuration file.
c. Click Override to override the default PPP configuration and only use the custom
configuration file.
If Override is not enabled, the custom PPP configuration file is used in addition to the
default configuration.
d. For Configuration file, paste or type the configuration data in the format of a pppd
options file. Because the options are passed directly to the pppd command line, they
should all be entered on a single line. For example:
debug lcp-echo-interval 10 lcp-echo-failure 2
16. (Optional) Configure a script that will be run to prepare the link before PPP negotiations are
started:
a. Click to expand Connect script.
b. Click Enable to enable the use of a connection script.
c. For Connect script filename, type the name of the script. Scripts are located in the
/etc/config/serial directory. An example script, windows_dun.sh is provided.
Example windows_dun.sh file:
#!/bin/sh
# Example connect script for connecting from a PC using a Windows dial-
up
# networking connection with built-in standard 33600 bps modem driver
and phone
# number 123.
# The shell's 'read' builtin breaks on newline, so translate incoming
carriage-
# return to newline, and outgoing newline to carriage-return-newline.
stty icrnl onlcr opost