Installing and Administering PPP

Contents
9
Open Policy Default Rulesets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .116
A Note on Using the ‘log rejected’ Filter . . . . . . . . . . . . . . . . . . . . . . .116
Closed Policy Default Rulesets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .116
Block All Packets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .117
Block All Packets Except Electronic Mail. . . . . . . . . . . . . . . . . . . . . .117
Limiting Electronic Mail to a Gateway. . . . . . . . . . . . . . . . . . . . . . . .117
Unresolvable Hostnames and Changing IP Addresses . . . . . . . . . . .117
Conclusion. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .118
A Note - Blocking Loose Source and Strict Source Routing Options.118
Closed Policy Filter Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .119
Complete Filter Example. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .123
Open Policy Filter Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .125
Common Mistakes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .127
Complete Filter Example. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .128
Time-To-Call Restrictions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .130
Dial-Back . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .131
Dial-Back Process. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .131
Blocking SIGHUP with Chat Script \M Option. . . . . . . . . . . . . . . . .131
Reversing Instructions with \m Option . . . . . . . . . . . . . . . . . . . . . . .132
Link Peer Authentication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .133
Replacing getty with pppd. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .134
6. Troubleshooting pppd
A. Modem Connections
RS-232 Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .145
DB-25 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .146
DB-9 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .146
DB-9 to DB-25 Conversion. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .147