Problem
I have an outgoing PPP link configured, and I want the link to be
a "dynamic bringup" link. That is, I want the link to come up
and stay active only when there is meaningful outgoing traffic.
For example, I want the link brought up and kept up when there is
an outgoing FTP request, HTTP traffic (web browsing), or something
like a telnet or ping to some remote destination. I don't want
the link brought up for DNS or routing updates, ICMP messages, and
so on. Solution
You will need to adjust your /usr/lib/mstppp/Filter file slightly. The following file will block most non-essential packets:
# Filter - PPP configuration file binding packet types to actions.# The "default" filter will be used if no filter has been found earlier
# in the file which matches the current interface
default bringup !ntp !3/icmp !5/icmp !11/icmp !who !route !domain !69/udp
!488/tcp !488/udp !60000/udp
keepup !send !ntp !3/icmp !5/icmp !11/icmp !who !route
pass allAfter making these changes, you must either stop and restart pppd, or reboot the machine.
Your machine may have other network services configured, some of
which you may want to block. For example, if you wanted to block
outgoing mail from bringing up the link, you could add "!25/tcp"
(since SMTP only uses TCP packets) to the bringup line as well. See also
ppp.Filter(MST_PPP) and pppd(MST_PPP) manual pages.