Date: Thu, 20 Jun 2002 10:59:14 +0300 (EEST) From: Dmitry Pryanishnikov <dmitry@atlantis.dp.ua> To: freebsd-stable@freebsd.org Subject: Re: IPFW rules on tunX devices Message-ID: <20020620105712.A72467-100000@atlantis.dp.ua> In-Reply-To: <20020619165721.B438@gsmx07.alcatel.com.au.lucky.freebsd.stable>
next in thread | previous in thread | raw e-mail | index | archive | help
Hello! On Wed, 19 Jun 2002, Peter Jeremy wrote: > I have a situation where I want to have some ipfw rules permanently > associated with tun0. In 4.5-RELEASE, I just included lines like the > following in the rules file specified as firewall_type in rc.conf: > add 11010 allow tcp from 10.2.3.4 to 10.2.3.5 keep-state in recv tun0 setup > > In 4.6-RELEASE, the tun devices are created on demand and so tun0 > doesn't exist don't exist when the firewall rules are added. Other > than starting ppp(8), how do I create tun0? I thought > ifconfig tun0 create > would work, but that returns: > ifconfig: SIOCIFCREATE: Invalid argument I've added the following label to /etc/ppp/ppp.conf: dummy: quit Then the following command should generate tun0: ppp -foreground dummy 1>/dev/null 2>&1 Sincerely, Dmitry Atlantis ISP, System Administrator e-mail: dmitry@atlantis.dp.ua nic-hdl: LYNX-RIPE 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?20020620105712.A72467-100000>