File:
[ELWIX - Embedded LightWeight unIX -] /
elwix /
config /
etc /
default /
conserver.cf
Revision
1.1.1.1 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue Jul 5 23:43:00 2011 UTC (13 years, 3 months ago) by
misho
Branches:
misho,
MAIN
CVS tags:
start,
elwix2_8,
elwix2_7,
elwix2_6,
elwix2_3,
elwix2_2,
elwix2_1,
elwix2_0,
elwix1_9_mips,
elwix1_9,
elwix1_8,
elwix1_7,
elwix1_6,
elwix1_5,
elwix1_4,
Patch1,
HEAD,
ELWIX2_7,
ELWIX2_6,
ELWIX2_5,
ELWIX2_2p0,
ELWIX2_1,
ELWIX2_0,
ELWIX1_9,
ELWIX1_8,
ELWIX1_7,
ELWIX1_6,
ELWIX1_5
ELWIX project
1: #
2: # Sample conserver.cf file, to give you ideas of what you can do with
3: # the various configuration items.
4: #
5:
6: ### set up global access
7: default full { rw *; }
8:
9: ### define some terminal server specifics
10: # we set portbase and portinc so we can reference the ports in a
11: # physical representation and let conserver do the math to figure
12: # out the actual socket address
13: default cisco { type host; portbase 2000; portinc 1; }
14: default xyplex { type host; portbase 2000; portinc 100; }
15: default iolan { type host; portbase 10000; portinc 1; }
16:
17: ### set up some custom break sequences
18: break 4 { string "+\d+\d+"; delay 300; }
19: break 5 { string "\033c"; }
20:
21: ### set the defaults for all the consoles
22: # these get applied before anything else
23: default * {
24: # The '&' character is substituted with the console name
25: logfile /var/consoles/&;
26: # timestamps every hour with activity and break logging
27: timestamp 1hab;
28: # include the 'full' default
29: include full;
30: # master server is localhost
31: master localhost;
32: }
33:
34: ### define the first terminal server
35: default ts1.conserver.com {
36: # use the xyplex defaults
37: include xyplex;
38: # host to connect to is ts1.conserver.com
39: host ts1.conserver.com;
40: # run login-xyplex when connecting to the term server
41: initcmd /usr/local/sbin/login-xyplex;
42: }
43:
44: # now define the consoles on ts1.conserver.com
45: # bryan isn't allowed on web1.conserver.com
46: console web1.conserver.com { include ts1.conserver.com; port 2; rw !bryan; }
47: console ns1.conserver.com { include ts1.conserver.com; port 10; }
48: console ns2.conserver.com { include ts1.conserver.com; port 8; }
49:
50: ### define the second terminal server
51: # this one is a cisco, with simple socket connections
52: default ts2.conserver.com { include cisco; host ts2.conserver.com; }
53:
54: # and the consoles on ts2.conserver.com
55: console ldap1.conserver.com { include ts2.conserver.com; port 7; }
56:
57: ### and now some one-off consoles
58: # we still inherit the '*' default set
59: # a simple ssh invocation
60: console ssh {
61: type exec;
62: exec ssh localhost;
63: # provide a 'message-of-the-day'
64: motd "just a simple ssh to localhost";
65: }
66:
67: # connect to /dev/ttya
68: console ttya {
69: type device;
70: device /dev/ttya; parity none; baud 9600;
71: idlestring "#";
72: idletimeout 5m; # send a '#' every 5 minutes of idle
73: timestamp ""; # no timestamps on this console
74: }
75:
76: ### define a group of users
77: group sysadmin {
78: users bryan, todd;
79: users dave;
80: }
81:
82: ### reset the defaults for the next set of consoles
83: # again, these get applied before anything else
84: default * {
85: # The '&' character is substituted with the console name
86: logfile /var/consoles/&;
87: timestamp 5m;
88: rw sysadmin; # use the group defined above
89: master localhost;
90: }
91:
92: default cyclades {
93: # sets up /dev/ttyC0 through /dev/ttyC31, for a 32 port card
94: # referenced as ports 1 through 32
95: type device;
96: device /dev/ttyC.;
97: devicesubst .=Pd;
98: portbase -1;
99: portinc 1;
100: host none; # not really used, since devicesubst doesn't use it
101: baud 9600;
102: parity none;
103: }
104:
105: console modem1.conserver.com { include cyclades; port 2; break 4; }
106: # todd isn't allowed on modem2.conserver.com
107: console modem2.conserver.com { include cyclades; port 6; rw !todd; }
108:
109: ### list of clients we allow
110: access * {
111: allowed 10.0.0.0/8 192.168.0.0/16;
112: allowed cs1.conserver.com cs2.conserver.com cs3.conserver.com;
113: trusted 127.0.0.1;
114: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>