Date: Sun, 11 Apr 1999 14:58:31 +0100 From: Brian Somers <brian@Awfulhak.org> To: Christopher Michaels <ChrisMic@clientlogic.com> Cc: "FreeBSD Mailing List (E-mail)" <questions@FreeBSD.ORG> Subject: Re: IPFW filtering on a dynamic linkup. Message-ID: <199904111358.OAA62305@keep.lan.Awfulhak.org> In-Reply-To: Your message of "Sun, 11 Apr 1999 01:48:17 EDT." <6C37EE640B78D2118D2F00A0C90FCB441A605C@site2s1>
next in thread | previous in thread | raw e-mail | index | archive | help
You can kick off a script when your link comes up, passing it the IP address and interface: !bg /usr/local/bin/myscript MYADDR INTERFACE or you could use the ``set filter'' command in your config file if you just want to block things. > FreeBSD-2.2.8 > > Hello, > I've been trying to figure out how to do this with no avail. I have a > dialup link, using usermode ppp on the tun0 device. What I would like to be > able to do is filter requests going to specific ports, via the dialup link. > So for example, if someone tries to connect to my machine's telnet port (23) > it'll be filtered. I don't want to filter out requests via the fxp0 > interface though. I also do not was to filter out any requests to port 23 > going out over the tun0 device. The thing is, most of the example rules in > the ipfw config file need the machine's IP address to do this, and it is a > dynamic address. > > Also, is there anyway/anywhere that ipfw logs packets that matched a > specific rule, as in where and where it originated? > > Any help, pointers, references (other than 'man ipfw' unless you are > pointing out a specific thing I missed) would be appreciated. > -Chris > > P.S. I don't want to use tcpwrappers, citing the telnet port was just an > example. -- Brian <brian@Awfulhak.org> <brian@FreeBSD.org> <http://www.Awfulhak.org> <brian@OpenBSD.org> Don't _EVER_ lose your sense of humour ! <brian@uk.FreeBSD.org> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199904111358.OAA62305>