#
# dwun configuration file
# 
# See man 5 dwunrc, /usr/doc/dwun-ver/examples/complete-rcfile, 
# /usr/doc/dwun-ver/html

# listen on these interfaces
bind 127.0.0.1

# How to connect. If commandon launches a daemon (e.g. pppd) start with dwunwait
commandon dwunwait ifup ppp0
# How to disconnect. If the commandoff line is commented out, we will just kill
# commandon
commandoff ifdown ppp0

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`

# 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

# 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
