aboutsummaryrefslogtreecommitdiff
path: root/etc/ppp/ppp.conf.iij.sample
blob: e667179fb0afa1d23bcddc4b1e1c7680f2fcb8fe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#############################################################################
#
#  Examples to connect to IIJ Dialup PPP service
#
#	1) On IIJ service, both user side and server side address can
#	   not be predicted by a customer. In this circumstance, you need
#	   some trick to use on-demand dialup. See iij-demand for example.
#
#       2) IIJ has 3 kinds of authentication method; getty, PAP and CHAP.
#	   In all cases, you can use same username and password assigned
#	   from IIJ.
#
#  $FreeBSD$
#
#############################################################################
#
#  Very simple case. Note that this example automatically dials into IIJ.
#  Please be sure to check phone number to access nearest location.
#
#	% ppp iij
#
iij:
 set phone 0332425701
 set authname MyUserName
 set authkey  MyPassword
 set login "TIMEOUT 5 login:-\\r-login: \\U word: \\P PPP"
 set timeout 0
 dial
#
#  If you prefer to use PAP authentication, use this one.
#
#	% ppp iij-pap
#
iij-pap:
 set phone 0332425701
 accept pap
 set authname MyUserName
 set authkey  MyPassword
 set login "TIMEOUT 5 login:-\\r-login:"
 set timeout 0
 set openmode active
 dial
#
#  Use "% ppp iij-chap" for CHAP authentication
#
iij-chap:
 set phone 0332425701
 accept chap
 deny pap
 set authname MyUserName
 set authkey  MyPassword
 set login "TIMEOUT 5 login:-\\r-login:"
 set timeout 0
 set openmode active
 dial
#
# Here, we assume that IIJ server has 192.244.177.2 as their address.
# This assumption may not be correct, but we'll fix it later.
# Also, take a look at ppp.linkup.
#
#	% ppp -auto iij-demand
#
# Use dummy ping to generate a call to IIJ.
#
#	% ping 192.244.177.2
#
iij-demand:
 set debug lcp
 set phone 0355118852
 set login "TIMEOUT 5 login:-\\r-login: MyUserName word: MyPassword PPP"
 set ifaddr 0 192.244.177.2/20
 add 0 0 192.244.177.2