#
# 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. If commandon launches a daemon (e.g. pppd) start with dwunwaitcommandon dwunwait pon
# How to disconnect. If the commandoff line is commented out, we will just kill
# commandon
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/dwun-log.pid`

# If you change this, various scripts will break
external /usr/lib/dwun-msg

# Log extra information
#debug

# 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

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

# Maximum socket connections per client IP address (-1 for unlimited)
#max_from_one 1

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

# Behaviour upon fatal commandon error
#fatal user

#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
