#
# 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.
commandon /etc/sysconfig/network-scripts/ifup ppp0
# 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 /etc/sysconfig/network-scripts/ifdown ppp0

# 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`

# For wvdial, comment out the previous commandon, commandoff, pre_commandon
# and post_commandon lines and enable those below.
#commandon wvdial 2>>/var/log/wvdial.log
#redials 0
#pre_commandon dwunlog /var/log/wvdial.log &
#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
