mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-04 12:52:15 +00:00
Use "set log", not "set debug".
Grammar police.
This commit is contained in:
parent
32ec0823e1
commit
e1775301d2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=26538
@ -1,12 +1,12 @@
|
|||||||
#
|
#
|
||||||
# $Id$
|
# $Id: ppp.conf.filter.sample,v 1.4 1997/02/23 09:21:10 peter Exp $
|
||||||
#
|
|
||||||
# An example of packet filter definition.
|
|
||||||
#
|
#
|
||||||
|
# An example of packet filter definitions. Merge whatever rules you
|
||||||
|
# want into your ppp.conf file.
|
||||||
#
|
#
|
||||||
filterd:
|
filterd:
|
||||||
#
|
#
|
||||||
# Don't keep Alive with ICMP,DNS and RIP packet
|
# Don't keep Alive with ICMP,DNS and RIP packets
|
||||||
#
|
#
|
||||||
set afilter 0 deny icmp
|
set afilter 0 deny icmp
|
||||||
set afilter 1 deny udp src eq 53
|
set afilter 1 deny udp src eq 53
|
||||||
@ -15,17 +15,17 @@ filterd:
|
|||||||
set afilter 4 deny udp dst eq 520
|
set afilter 4 deny udp dst eq 520
|
||||||
set afilter 5 permit 0/0 0/0
|
set afilter 5 permit 0/0 0/0
|
||||||
#
|
#
|
||||||
# Don't dial with ICMP packet
|
# Don't let ICMP packets cause us to dial
|
||||||
#
|
#
|
||||||
set dfilter 0 deny icmp
|
set dfilter 0 deny icmp
|
||||||
set dfilter 1 permit 0/0 0/0
|
set dfilter 1 permit 0/0 0/0
|
||||||
#
|
#
|
||||||
# Allow ident packet pass through
|
# Allow ident packets to pass through
|
||||||
#
|
#
|
||||||
set ifilter 0 permit tcp dst eq 113
|
set ifilter 0 permit tcp dst eq 113
|
||||||
set ofilter 0 permit tcp src eq 113
|
set ofilter 0 permit tcp src eq 113
|
||||||
#
|
#
|
||||||
# Allow telnet connection to the Internet
|
# Allow telnet connections to the Internet
|
||||||
#
|
#
|
||||||
set ifilter 1 permit tcp src eq 23 estab
|
set ifilter 1 permit tcp src eq 23 estab
|
||||||
set ofilter 1 permit tcp dst eq 23
|
set ofilter 1 permit tcp dst eq 23
|
||||||
@ -37,7 +37,7 @@ filterd:
|
|||||||
set ifilter 3 permit tcp src eq 20 dst gt 1023
|
set ifilter 3 permit tcp src eq 20 dst gt 1023
|
||||||
set ofilter 3 permit tcp dst eq 20
|
set ofilter 3 permit tcp dst eq 20
|
||||||
#
|
#
|
||||||
# Allow access to DNS
|
# Allow access to any DNS
|
||||||
#
|
#
|
||||||
set ifilter 4 permit udp src eq 53
|
set ifilter 4 permit udp src eq 53
|
||||||
set ofilter 4 permit udp dst eq 53
|
set ofilter 4 permit udp dst eq 53
|
||||||
@ -54,5 +54,5 @@ filterd:
|
|||||||
set ifilter 7 permit udp dst gt 33433
|
set ifilter 7 permit udp dst gt 33433
|
||||||
set ofilter 7 permit udp dst gt 33433
|
set ofilter 7 permit udp dst gt 33433
|
||||||
#
|
#
|
||||||
# If none of above rules matches, then packet is blockd.
|
# If none of the above rules matche, then the packet is blocked.
|
||||||
#
|
#
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
# In all cases, you can use same username and password assigned
|
# In all cases, you can use same username and password assigned
|
||||||
# from IIJ.
|
# from IIJ.
|
||||||
#
|
#
|
||||||
# $Id$
|
# $Id: ppp.conf.iij.sample,v 1.3 1997/02/23 09:21:10 peter Exp $
|
||||||
#
|
#
|
||||||
#############################################################################
|
#############################################################################
|
||||||
#
|
#
|
||||||
@ -38,7 +38,6 @@ iij-pap:
|
|||||||
set authkey MyPassword
|
set authkey MyPassword
|
||||||
set login "TIMEOUT 5 login:-\\r-login:"
|
set login "TIMEOUT 5 login:-\\r-login:"
|
||||||
set timeout 0
|
set timeout 0
|
||||||
set openmode active
|
|
||||||
dial
|
dial
|
||||||
#
|
#
|
||||||
# Use "% ppp iij-chap" for CHAP authentication
|
# Use "% ppp iij-chap" for CHAP authentication
|
||||||
@ -51,7 +50,6 @@ iij-chap:
|
|||||||
set authkey MyPassword
|
set authkey MyPassword
|
||||||
set login "TIMEOUT 5 login:-\\r-login:"
|
set login "TIMEOUT 5 login:-\\r-login:"
|
||||||
set timeout 0
|
set timeout 0
|
||||||
set openmode active
|
|
||||||
dial
|
dial
|
||||||
#
|
#
|
||||||
# Here, we assume that IIJ server has 192.244.177.2 as their address.
|
# Here, we assume that IIJ server has 192.244.177.2 as their address.
|
||||||
@ -65,8 +63,8 @@ iij-chap:
|
|||||||
# % ping 192.244.177.2
|
# % ping 192.244.177.2
|
||||||
#
|
#
|
||||||
iij-demand:
|
iij-demand:
|
||||||
set debug lcp
|
set log lcp
|
||||||
set phone 0355118852
|
set phone 0355118852
|
||||||
set login "TIMEOUT 5 login:-\\r-login: MyUserName word: MyPassword PPP"
|
set login "TIMEOUT 5 login:-\\r-login: MyUserName word: MyPassword PPP"
|
||||||
set ifaddr 0 192.244.177.2/20
|
set ifaddr 10.10.10.10/0 192.244.177.2/20
|
||||||
add 0 0 192.244.177.2
|
add 0 0 192.244.177.2
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
#
|
#
|
||||||
# Written by Toshiharu OHNO
|
# Written by Toshiharu OHNO
|
||||||
#
|
#
|
||||||
# $Id: ppp.conf.sample,v 1.13 1997/05/08 01:45:48 brian Exp $
|
# $Id: ppp.conf.sample,v 1.14 1997/05/12 14:07:14 brian Exp $
|
||||||
#
|
#
|
||||||
#################################################################
|
#################################################################
|
||||||
|
|
||||||
@ -123,14 +123,14 @@ direct-client:
|
|||||||
set line /dev/cuaa0
|
set line /dev/cuaa0
|
||||||
set sp 115200
|
set sp 115200
|
||||||
set timeout 900
|
set timeout 900
|
||||||
set debug Phase Chat LQM
|
set log Phase Chat LQM
|
||||||
set login "TIMEOUT 5 -\\r-login:-\\r-login: ppp word: ppp HELLO"
|
set login "TIMEOUT 5 -\\r-login:-\\r-login: ppp word: ppp HELLO"
|
||||||
set ifaddr 10.0.4.2 10.0.4.1
|
set ifaddr 10.0.4.2 10.0.4.1
|
||||||
add 10.0.4.2 255.255.255.255 127.0.0.1
|
add 10.0.4.2 255.255.255.255 127.0.0.1
|
||||||
|
|
||||||
direct-server:
|
direct-server:
|
||||||
set timeout 900 10 3
|
set timeout 900 10 3
|
||||||
set debug Phase LQM
|
set log Phase LQM
|
||||||
set ifaddr 10.0.4.1 10.0.4.2
|
set ifaddr 10.0.4.1 10.0.4.2
|
||||||
add 10.0.4.1 255.255.255.255 127.0.0.1
|
add 10.0.4.1 255.255.255.255 127.0.0.1
|
||||||
|
|
||||||
@ -158,7 +158,7 @@ users:
|
|||||||
callback:
|
callback:
|
||||||
set phone 0312345678
|
set phone 0312345678
|
||||||
set login "ABORT NO\\sCARRIER TIMEOUT 5 login:-\\r-login: MyName word: MySecret TIMEOUT 20 DUMMY"
|
set login "ABORT NO\\sCARRIER TIMEOUT 5 login:-\\r-login: MyName word: MySecret TIMEOUT 20 DUMMY"
|
||||||
set debug phase chat
|
set log phase chat
|
||||||
dial
|
dial
|
||||||
quit
|
quit
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
disable lqr
|
disable lqr
|
||||||
set debug phase lcp chat
|
set log phase lcp chat
|
||||||
set timeout 0
|
set timeout 0
|
||||||
enable msext
|
enable msext
|
||||||
set ns xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx
|
set ns xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
#
|
#
|
||||||
# 3) If no label has been found, use MYADDR if it exists.
|
# 3) If no label has been found, use MYADDR if it exists.
|
||||||
#
|
#
|
||||||
# $Id: ppp.linkup.sample,v 1.5 1997/02/23 09:21:11 peter Exp $
|
# $Id: ppp.linkup.sample,v 1.6 1997/02/23 14:04:23 brian Exp $
|
||||||
#
|
#
|
||||||
#########################################################################
|
#########################################################################
|
||||||
|
|
||||||
@ -39,11 +39,16 @@ MYADDR:
|
|||||||
# as our default gateway.
|
# as our default gateway.
|
||||||
# This is vital if you don't already know either sides IP number.
|
# This is vital if you don't already know either sides IP number.
|
||||||
#
|
#
|
||||||
|
# We create a loopback route to ourselves so that we can "ping"
|
||||||
|
# our side of the connection
|
||||||
|
#
|
||||||
# We also want to execute a script on startup. This script can do
|
# We also want to execute a script on startup. This script can do
|
||||||
# nice things such as kick off "sendmail -q", "popclient my.isp" and
|
# nice things such as kick off "sendmail -q", "popclient my.isp" and
|
||||||
# "slurp -d news".
|
# "slurp -d news". It can be passed MYADDR, HISADDR and INTERFACE
|
||||||
|
# too - useful for informing a DNS.
|
||||||
#
|
#
|
||||||
pmdemand:
|
pmdemand:
|
||||||
delete ALL
|
delete ALL
|
||||||
add 0 0 HISADDR
|
add 0 0 HISADDR
|
||||||
|
add MYADDR 255.255.255.255 127.0.0.1
|
||||||
! sh -c "/etc/ppp/ppp.etherup.pmdemand &"
|
! sh -c "/etc/ppp/ppp.etherup.pmdemand &"
|
||||||
|
Loading…
Reference in New Issue
Block a user