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, 5 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
#
# Sample conserver.cf file, to give you ideas of what you can do with
# the various configuration items.
#
### set up global access
default full { rw *; }
### define some terminal server specifics
# we set portbase and portinc so we can reference the ports in a
# physical representation and let conserver do the math to figure
# out the actual socket address
default cisco { type host; portbase 2000; portinc 1; }
default xyplex { type host; portbase 2000; portinc 100; }
default iolan { type host; portbase 10000; portinc 1; }
### set up some custom break sequences
break 4 { string "+\d+\d+"; delay 300; }
break 5 { string "\033c"; }
### set the defaults for all the consoles
# these get applied before anything else
default * {
# The '&' character is substituted with the console name
logfile /var/consoles/&;
# timestamps every hour with activity and break logging
timestamp 1hab;
# include the 'full' default
include full;
# master server is localhost
master localhost;
}
### define the first terminal server
default ts1.conserver.com {
# use the xyplex defaults
include xyplex;
# host to connect to is ts1.conserver.com
host ts1.conserver.com;
# run login-xyplex when connecting to the term server
initcmd /usr/local/sbin/login-xyplex;
}
# now define the consoles on ts1.conserver.com
# bryan isn't allowed on web1.conserver.com
console web1.conserver.com { include ts1.conserver.com; port 2; rw !bryan; }
console ns1.conserver.com { include ts1.conserver.com; port 10; }
console ns2.conserver.com { include ts1.conserver.com; port 8; }
### define the second terminal server
# this one is a cisco, with simple socket connections
default ts2.conserver.com { include cisco; host ts2.conserver.com; }
# and the consoles on ts2.conserver.com
console ldap1.conserver.com { include ts2.conserver.com; port 7; }
### and now some one-off consoles
# we still inherit the '*' default set
# a simple ssh invocation
console ssh {
type exec;
exec ssh localhost;
# provide a 'message-of-the-day'
motd "just a simple ssh to localhost";
}
# connect to /dev/ttya
console ttya {
type device;
device /dev/ttya; parity none; baud 9600;
idlestring "#";
idletimeout 5m; # send a '#' every 5 minutes of idle
timestamp ""; # no timestamps on this console
}
### define a group of users
group sysadmin {
users bryan, todd;
users dave;
}
### reset the defaults for the next set of consoles
# again, these get applied before anything else
default * {
# The '&' character is substituted with the console name
logfile /var/consoles/&;
timestamp 5m;
rw sysadmin; # use the group defined above
master localhost;
}
default cyclades {
# sets up /dev/ttyC0 through /dev/ttyC31, for a 32 port card
# referenced as ports 1 through 32
type device;
device /dev/ttyC.;
devicesubst .=Pd;
portbase -1;
portinc 1;
host none; # not really used, since devicesubst doesn't use it
baud 9600;
parity none;
}
console modem1.conserver.com { include cyclades; port 2; break 4; }
# todd isn't allowed on modem2.conserver.com
console modem2.conserver.com { include cyclades; port 6; rw !todd; }
### list of clients we allow
access * {
allowed 10.0.0.0/8 192.168.0.0/16;
allowed cs1.conserver.com cs2.conserver.com cs3.conserver.com;
trusted 127.0.0.1;
}
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>