File: pslave.conf.sample

package info (click to toggle)
portslave 2005.04.03
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, sarge
  • size: 860 kB
  • ctags: 690
  • sloc: ansic: 7,309; sh: 176; makefile: 121
file content (60 lines) | stat: -rw-r--r-- 1,641 bytes parent folder | download | duplicates (5)
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
# You can delete the examples below and unused ports above
# if you wish to clean up the config file, ofcourse.

# S30 is an external modem.
#
s30.tty		ttyS0

# S31 is a test port with a terminal on it.
#
# NOTE: you can ofcourse also enter tty9 here instead of ttyS1.
#	That way you can test portslave on a virtual console by
#	switching to it with ALT-F9.
#
s31.tty		ttyS1
s31.speed	9600
s31.flow	soft
s31.dcd		0
s31.initchat	""

# S32 is my builtin 9600 baud modem
#
s32.tty		ttyS3
s32.speed	19200

# S33 is connected to a macine that _thinks_ it is connected to a modem.
# In this case, portslaves emulates a Hayes compatible modem. We use it
# to hook up our Mac with MACPPP over a serial null modem cable.
#
s33.tty		ttyS2
s33.speed	57600
s33.emumodem	yes

# Leased Lines.
#
# Note that we change the lcp-timeout (lcp-restart) from 3 (default) to 4.
# PPP 2.2.0f in combination with some other PPP implementations may
# otherwise get stuck in an endless negotiation loop. Dialin lines do
# not have this problem because both sides start up at the same time.
#
# Do this only one _one_ side ofcourse.
s34.tty		ttyR47
s34.initchat	TIMEOUT 10 \
		ABORT "NO CARRIER" \
		ABORT VOICE \
		"" \d\l\dATZ \
		OK\r\n-ATZ-OK\r\n "\c" \
		STATUS Incoming %p:I.HANDSHAKE \
		"" ATA \
		TIMEOUT 75 \
		CONNECT@ "\c" \
		STATUS LEASED %p:%c
s34.authtype	none
s34.issue	""
s34.protocol	ppp
s34.rem_host	192.168.5.249
s34.netmask	255.255.255.248
s34.pppopt	proxyarp modem asyncmap 0 %i:%j netmask %m \
		-ipx-protocol -ccp-protocol passive mtu 576 mru 576 \
		lcp-restart 4 ip-up-script /etc/ppp/ip-up.leased \
		ip-down-script /etc/ppp/ip-down.leased