Subject: how to setup the active-filter-in for pppd
To: None <current-users@netbsd.org>
From: Chan Yiu Wah <c5666305@hkstar.com>
List: current-users
Date: 01/07/2000 22:58:23
Hello,

I am trying to write the  active-filter-in for my demand dial up to ISP. 
However, I am not skill enough to work it out. Here is part of the 
tcpdump and the pppd call to my local ISP.  Should I put the port number
in the active-filter-in "ip 1514 or ip 60" and so on.  I need your help.
Thanks.

Clarence


======= pppd call script =======
/dev/modem 115200		# modem port and speed
connect '/etc/ppp/chat-script "12345678"' # connect script
welcome '/sbin/route delete default' # delete any current default routes first
ipparam "hkstar.com aaa.bbb.ccc.ddd"
passive				# wait for remote to come up
crtscts				# use hardware flow control
defaultroute			# add default routing when link comes up
lock				# lock the modem port on connect
modem				# use full modem control
noipdefault			# no local defaults for IP addresses
lcp-echo-interval 30		# ping the remote every 30 seconds
lcp-echo-failure 10		# declare link down after 10 pings fail
ipcp-accept-local		# allow remote to specify our IP address
noauth

# conditions for disconnecting
idle 600                # = 10 minutes
#
# demand dailing additions
demand
holdoff 86400  #intend to let the internet request from client to dial
202.66.33.97:202.82.0.0
active-filter-in "udp or (tcp and not tcp port ntp)"

ipcp-accept-remote		# allow remote to specify his IP address
netmask 255.255.255.0		# netmask for our assigned IP address
domain hkstar.com		# domain name we're connecting into
user ltslib			# account name to use to log onto remote
mtu 1500			# maximum transmission size for link
======= pppd call script =======

======= tcpdump =======
22:40:53.803289 0:0:b4:55:bb:5f 0:0:e8:c3:93:4b ip 1514:
   wttwww.netvigator.com.www > 202.66.33.160.1079:
   P 508276364:508277824(1460) ack 202471 win 64240 (DF)
22:40:53.805794 0:0:e8:c3:93:4b 0:0:b4:55:bb:5f ip 60:
   202.66.33.160.1079 > wttwww.netvigator.com.www: . ack 5927 win 8760 (DF)
22:40:54.291973 0:0:b4:55:bb:5f 0:0:e8:c3:93:4b ip 1514:
   wttwww.netvigator.com.www > 202.66.33.160.1079:
   P 1460:2920(1460) ack 1 win 64240 (DF)
22:40:54.294452 0:0:e8:c3:93:4b 0:0:b4:55:bb:5f ip 60:
   202.66.33.160.1079 > wttwww.netvigator.com.www: . ack 5927 win 8760 (DF)
22:40:54.780161 0:0:b4:55:bb:5f 0:0:e8:c3:93:4b ip 1514:
   wttwww.netvigator.com.www > 202.66.33.160.1079:
   P 2920:4380(1460) ack 1 win 64240 (DF)
22:40:54.782678 0:0:e8:c3:93:4b 0:0:b4:55:bb:5f ip 60:
   202.66.33.160.1079 > wttwww.netvigator.com.www: . ack 5927 win 8760 (DF)
22:40:55.239107 0:0:b4:55:bb:5f 0:0:e8:c3:93:4b ip 1514:
   wttwww.netvigator.com.www > 202.66.33.160.1079:
   P 4380:5840(1460) ack 1 win 64240 (DF)
22:40:55.241606 0:0:e8:c3:93:4b 0:0:b4:55:bb:5f ip 60:
   202.66.33.160.1079 > wttwww.netvigator.com.www: . ack 5927 win 8760 (DF)
22:40:55.275647 0:0:b4:55:bb:5f 0:0:e8:c3:93:4b ip 141:
   wttwww.netvigator.com.www > 202.66.33.160.1079:
   P 5840:5927(87) ack 1 win 64240 (DF)
22:40:55.276202 0:0:e8:c3:93:4b 0:0:b4:55:bb:5f ip 60:
   202.66.33.160.1079 > wttwww.netvigator.com.www: . ack 5927 win 8760 (DF)
22:40:55.276440 0:0:b4:55:bb:5f 0:0:e8:c3:93:4b ip 54:
   wttwww.netvigator.com.www > 202.66.33.160.1077: . ack 202035 win 64240 (DF)
22:40:55.283520 0:0:b4:55:bb:5f 0:0:e8:c3:93:4b ip 118:
   wttwww.netvigator.com.www > 202.66.33.160.1079:
   P 5927:5991(64) ack 408 win 64240 (DF)
22:40:55.408230 0:0:e8:c3:93:4b 0:0:b4:55:bb:5f ip 60:
   202.66.33.160.1079 > wttwww.netvigator.com.www: . ack 5991 win 8696 (DF)
22:40:55.702656 0:0:e8:c3:93:4b 0:0:b4:55:bb:5f ip 62:
   202.66.33.160.1085 > wttwww.netvigator.com.www:
   S 224823:224823(0) win 8192 <mss 1460,nop,nop,sackOK> (DF)
======= tcpdump =======