#
# dwun configuration file
# 
# Comments are lines starting with # or blank lines.
# These are *not* the default settings. See the html documentation or
# dwunrc(5) manpage for more useful info; this is just to show the syntax used 
# in case you get stuck.

# listen on these interfaces
#bind 192.168.1.1 127.0.0.1
#port 5540

# How to connect.
#commandon pon
# How to disconnect. If this line is commented out, we will just kill
# commandon. We must have a commandoff line if commandon launches a daemon.
#commandoff poff

#logfile /var/log/dwun.log
#command_logfile /var/log/dwun-command.log

# As lines containing 'pppd[' are added to /var/log/messages, they will be sent 
# to CONNECTed users.
#pre_commandon dwunlog 'pppd[' /var/log/messages &
#post_commandon kill `cat /var/run/dwunlog.pid`

# Enable this and do "mkfifo -m 0600 /usr/lib/dwun-msg" if you use my
# chatscripts (/usr/doc/dwun-ver/examples/chatscripts).
#external /usr/lib/dwun-msg

# Log extra information.
#debug on

# Keep alive is in seconds.
#keepalive 0

# Wait this many seconds before disconnecting in case someone wants the
# connection up in the meantime. (So we don't need to disconnect).
#disconnect_wait 30

# Wait for all processes launched by commandon to exit before considering
# ourselves "#Disconnected". Useful for running daemons like pppd.
#waitpipe on

# Maximum number of clients (-1 for unlimited).
#maxcon 100

# Maximum times commandon can exit in a row without us becoming connected
# before a fatal commandon error. (-1 for unlimited). Set to zero if dwun
# shouldn't redial.
#redials 0

# If commandon dies when we are in the #Connected state, register a fatal error
# instead of redialing. Useful when using the 'idle' option to pppd.
#staydropped true

#hostmask 192.168.1.0/255.255.255.0 127.0.0.0/255.0.0.0
#authfile /etc/dwunauth
#pidfile /var/run/dwun.pid

# Enable Linux 2.2 masquerading for users when they CONNECT, and disable it for
# them when they DISCONNECT.
#onconnect /sbin/ipchains -A forward -j MASQ -s %b -i ppp0
#ondisconnect /sbin/ipchains -D forward -j MASQ -s %b -i ppp0

# Don't tell a user they're #Connected until after the onconnect command has
# exited.
#onconnect_wait on
