[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PPP demand dial



Help...? My PPP demand dial 'idle' option does not work... it never wants to
time out. 
I have a RH6.1 pc using ppp with demand dial connecting to my ISP.  I think
I need to use the 
active-filter 'filter-expression'   option which says...
              Specifies a packet filter to  be  applied  to  data
              packets  to  determine  which  packets  are  to  be
              regarded as link activity, and therefore reset  the
              idle  timer,  or cause the link to be brought up in
              demand-dialling mode.  This  option  is  useful  in
              conjunction with the idle option if there are pack-
              ets being sent or received regularly over the  link
              (for  example,  routing  information packets) which
              would otherwise prevent the link from ever  appear-
              ing to be idle.  The filter-expression syntax is as
              described for tcpdump(1),  except  that  qualifiers
              which  are  inappropriate  for  a PPP link, such as
              ether and arp, are not  permitted.   Generally  the
              filter  expression  should  be  enclosed in single-
              quotes to prevent whitespace in the expression from
              only if both the kernel and pppd were compiled with
              PPP_FILTER defined. 

has anyone used the active-filter?  I'm not quite sure how to define
'filter-expression' even after reading tcpdump(1)...

These are the basic ppp files that I am using...


#!/bin/sh
####################     rc.local  #################
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
  <snip> 
# rc.firewall script
/etc/rc.d/rc.firewall     (IP Masq) 
/etc/ppp/ppp-on

#!/bin/sh
###################### ppp-on  ########################
TELEPHONE=355-1082  	# The telephone number for the connection
ACCOUNT=paulvan.ppp	
PASSWORD=my_password	
export TELEPHONE ACCOUNT PASSWORD DIALER_SCRIPT
DIALER_SCRIPT=/etc/ppp/ppp-on-dialer
echo 1 > /proc/sys/net/ipv4/ip_dynaddr
/usr/sbin/pppd
sleep 3
route del default
route add default ppp0

####################  options  ############################
lock
192.168.0.1:192.168.0.1
debug
defaultroute
noipdefault
modem
/dev/ttyS0
115200
crtscts
# noauth
passive
asyncmap 0
name paulvan.ppp
demand
idle 600
ipcp-accept-remote
ipcp-accept-local
lcp-max-configure 30
holdoff 10
connect $DIALER_SCRIPT

#!/bin/sh
#################  ppp-on-dialer  ##########################
#
exec /usr/sbin/chat -v						\
	TIMEOUT		5				\
	ABORT		'\nBUSY\r'			\
	ABORT		'\nNO ANSWER\r'			\
	ABORT		'\nRINGING\r\n\r\nRINGING\r'	\
	''		\rAT				\
	'OK-+++\c-OK'	ATH0				\
	TIMEOUT		30				\
	OK		ATDT$TELEPHONE			\
	CONNECT	\d\c
	 	
Thanks in advance!
Paul Van Allsburg
paul.vanallsburg@wl.com   work
paulvan@macatawa.org     play