Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Aug 1999 18:57:07 -0400
From:      "Carleton A. Williams" <carl@williams.mv.com>
To:        <freebsd-questions@FreeBSD.org>
Subject:   Problem setting up PPP filters
Message-ID:  <00c201beedba$d43f49d0$322aa8c0@home.net>

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

[-- Attachment #1 --]
I have scanned the newsgroups, but find nothing relating to this problem.

PPP seems to be ignoring the lowest numbered and highest numbered filters when the "set filter ..." commands are edited into ppp.conf

If I place the following commands in ppp.conf:

  set filter dial 0 deny icmp
  set filter dial 1 deny 0/0 198.168.0.0/16
  set filter dial 6 permit 0/0 0/0

then do "show filter dial", either by running ppp in interactive mode or by connecting to a diagnostic port, I get:

1  deny     0.0.0.0/0 198.168.0.0/16

Just that one line! If I then (re)enter the missing filter commands interactively, the show command produces:

0  deny     0.0.0.0/0 0.0.0.0/0 icmp
1  deny     0.0.0.0/0 198.168.0.0/16
6  permit   0.0.0.0/0 0.0.0.0/0

after which the filter seems to work as intended.

Any idea what gives?

Thanks,

Carl

[-- Attachment #2 --]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2516.1900" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I have scanned the newsgroups, but find nothing 
relating to this problem.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>PPP seems to be ignoring the lowest numbered and 
highest numbered filters when the "set filter ..." commands are edited into 
ppp.conf</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>If I place the following commands in 
ppp.conf:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp; set filter dial 0 deny icmp</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp; set filter dial 1 deny 0/0 
198.168.0.0/16</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp; set filter dial 6 permit 0/0 
0/0</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>then do "show filter dial", either by running ppp 
in interactive mode or by connecting to a diagnostic port, I get:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>1&nbsp; deny&nbsp;&nbsp;&nbsp;&nbsp; 0.0.0.0/0 
198.168.0.0/16</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Just that one line! If I then (re)enter the missing 
filter commands interactively, the show command produces:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>0&nbsp; deny&nbsp;&nbsp;&nbsp;&nbsp; 0.0.0.0/0 
0.0.0.0/0 icmp</FONT></DIV>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>1&nbsp; deny&nbsp;&nbsp;&nbsp;&nbsp; 0.0.0.0/0 
198.168.0.0/16</FONT></DIV>
<DIV>6&nbsp; permit&nbsp;&nbsp; 0.0.0.0/0 0.0.0.0/0</DIV>
<DIV>&nbsp;</DIV>
<DIV>after which the filter seems to work as intended.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Any idea what gives?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Carl</DIV></FONT></DIV></BODY></HTML>

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00c201beedba$d43f49d0$322aa8c0>