View Single Post
  #2   (View Single Post)  
Old 25th February 2010
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,128
Default

How about following the example in pppoe(4) closely:
Code:
EXAMPLES
     A typical /etc/hostname.pppoe0 file looks like this:

           inet 0.0.0.0 255.255.255.255 NONE \
                   pppoedev ne0 authproto pap \
                   authname 'testcaller' authkey 'donttell' up
           dest 0.0.0.1
           !/sbin/route add default -ifp pppoe0 0.0.0.1

     The physical interface must also be marked `up':

           # echo "up" > /etc/hostname.ne0

     Since this is a PPP interface, the addresses assigned to the interface
     may change during PPP negotiation.  There is no fine grained control
     available for deciding which addresses are acceptable and which are not.
     For the local side and the remote address there is exactly one choice:
     hard coded address or wildcard.  If a real address is assigned to one
     side of the connection, PPP negotiation will only agree to exactly this
     address.  If one side is wildcarded, every address suggested by the peer
     will be accepted.

     To wildcard the local address set it to 0.0.0.0; to wildcard the remote
     address set it to 0.0.0.1.
BTW OBSD 4.4 is quite old, 4.6 is the latest release. And 4.7 will be released in a couple of months
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote