Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 03 Jul 1998 18:10:05 +0200
From:      Martin Blapp <blapp@attic.ch>
To:        "freebsd-stable@FreeBSD.ORG" <freebsd-stable@FreeBSD.ORG>
Subject:   PPPd with option 'active-filter'
Message-ID:  <359D025C.D9BE4B31@attic.ch>

next in thread | raw e-mail | index | archive | help
Hello

I use at home natd in connection with pppd. To use
dial on demand, I made a custom kernel with these
options :

pseudo-device   bpfilter        16      # Berkeley packet filter
options             IPFIREWALL    #Firewall
options             IPDIVERT    #Natd
options             PPP_FILTER      #enable bpf filtering (needs
bpfilter)
options             PPP_BSDCOMP     #PPP BSD-compress support
options             PPP_DEFLATE     #PPP zlib/deflate/gzip support

All's working great, with one exeption. pppd refuses to know
the option "active-filter". So I tried to recompile pppd with
the option -DPPP_FILTER. But I got an error after depend and make:

[/usr/src/usr.sbin/pppd] make -DPPP_FILTER
cc -O -DHAVE_PATHS_H -DPPP_FILTER   -c /usr/src/usr.sbin/pppd/main.c
cc -O -DHAVE_PATHS_H -DPPP_FILTER   -c /usr/src/usr.sbin/pppd/magic.c
cc -O -DHAVE_PATHS_H -DPPP_FILTER   -c /usr/src/usr.sbin/pppd/fsm.c
cc -O -DHAVE_PATHS_H -DPPP_FILTER   -c /usr/src/usr.sbin/pppd/lcp.c
cc -O -DHAVE_PATHS_H -DPPP_FILTER   -c /usr/src/usr.sbin/pppd/ipcp.c
cc -O -DHAVE_PATHS_H -DPPP_FILTER   -c /usr/src/usr.sbin/pppd/ipxcp.c
cc -O -DHAVE_PATHS_H -DPPP_FILTER   -c /usr/src/usr.sbin/pppd/upap.c
cc -O -DHAVE_PATHS_H -DPPP_FILTER   -c /usr/src/usr.sbin/pppd/chap.c
cc -O -DHAVE_PATHS_H -DPPP_FILTER   -c /usr/src/usr.sbin/pppd/ccp.c
cc -O -DHAVE_PATHS_H -DPPP_FILTER   -c /usr/src/usr.sbin/pppd/demand.c
cc -O -DHAVE_PATHS_H -DPPP_FILTER   -c /usr/src/usr.sbin/pppd/auth.c
cc -O -DHAVE_PATHS_H -DPPP_FILTER   -c /usr/src/usr.sbin/pppd/options.c
cc -O -DHAVE_PATHS_H -DPPP_FILTER   -c /usr/src/usr.sbin/pppd/sys-bsd.c
cc -O -DHAVE_PATHS_H -DPPP_FILTER    -o pppd main.o magic.o fsm.o lcp.o
ipcp.o i
pxcp.o upap.o chap.o ccp.o demand.o auth.o options.o sys-bsd.o  -lcrypt
-lutil -
lmd
demand.o: Undefined symbol `_bpf_filter' referenced from text segment
options.o: Undefined symbol `_pcap_compile' referenced from text segment

options.o: Undefined symbol `_pcap_geterr' referenced from text segment
options.o: Undefined symbol `_pcap_compile' referenced from text segment

options.o: Undefined symbol `_pcap_geterr' referenced from text segment
*** Error code 1

Stop.
[/usr/src/usr.sbin/pppd]

What made I wrong ? Why isn't "PPP_FILTER" a default option
in pppd ? I thing if i make cvsup and a make buildworld, I have
also to recompile pppd. Are I'm right ?

Is active-filter in pppd working fore somebody. Can you give me
a hint :) ? Thanks for your answer.

Martin.
--
------------------------------------------------------------------------

Martin Blapp, (blapp@attic.ch)
Attic Internet Services, Bechburgstrasse 8, 4702 Oensingen, Switzerland
Phone: +41 62 396 43 70, Fax: +41 62 396 43 72
PGP fingerprint: 4E96 1AE8 4AA6 AB40 1AD6  DB42 7623 995D 522A 1D38
------------------------------------------------------------------------

Public key available at:   http://www.attic.ch/pgp-public.html



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?359D025C.D9BE4B31>