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

# Listen on these interfaces
bind 127.0.0.1

# 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

# Use a file instead of syslog for the main log.
#logfile /var/log/dwun.log

# As lines are added to /var/log/ppp.log or lines containing 'pppd[' are added
# to /var/log/syslog, they will be sent to CONNECTed users.
pre_commandon if [ -e /var/log/ppp.log ]; then dwunlog /var/log/ppp.log & else dwunlog 'pppd[' /var/log/syslog & fi
post_commandon kill `cat /var/run/dwunlog.pid`

# Log extra information.
#debug on

# 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
