Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Nov 2000 00:11:06 +0100
From:      =?iso-8859-1?Q?R=E9mi_Guyomarch?= <rguyom@pobox.com>
To:        freebsd-security@FreeBSD.ORG
Subject:   Re: PPP NAT Gateway security
Message-ID:  <20001118001106.B21621@diabolic-cow.321.net>
In-Reply-To: <20001114211934.B888@grok>; from sreid@sea-to-sky.net on Tue, Nov 14, 2000 at 09:19:34PM -0800
References:  <00c801c04dc4$12a89220$0200a8c0@n2> <20001114144513.A888@grok> <001c01c04e97$c69c3c90$0200a8c0@n2> <20001114211934.B888@grok>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Nov 14, 2000 at 09:19:34PM -0800, Steve Reid wrote:
...
> This is what I've whipped up for my ipfilter config:
> 
> http://sea-to-sky.net/~sreid/ipfinit
> A simple little sh script that takes an interface name (fxp0 in my
> case, tun0 in yours) as an argument and extracts the IP address
> information from ifconfig, then performs the appropriate substitutions
> on ipf.cfg and feeds the results to ipf.

OpenBSD did the same thing but integrated it in the ipfilter source.
Look at src/sbin/ipf/parse.c (search for 'if_addr') and
src/sbin/ipf/ifaddr.[ch] in the obsd CVS tree.

-- 
Rémi


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




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