Date: Tue, 25 Apr 2006 10:07:54 -0300 From: Gilberto Villani Brito <linux@giboia.org> To: freebsd-ipfw@freebsd.org Subject: Re: question about ipfw syntax Message-ID: <20060425100754.24eb7d66@giboia> In-Reply-To: <444c2c7c.6e806909.2a41.3c8e@mx.gmail.com> References: <444c2c7c.6e806909.2a41.3c8e@mx.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Add this rules: $cmd 00540 divert natd all from any to <external ip> 5000 in via fxp1 $cmd 00541 divert natd all from <internal ip of computer> 5000 to any out via fxp1 Gilberto On Sun, 23 Apr 2006 21:44:17 -0400 "Tom Cruickshank" <tcruicksh@gmail.com> wrote: > Hello, > > I_m running Freebsd 6.0 and trying to do port forwarding on port 5000 > using ipfw. > > > > Here is what I currently have. > > Cmd = _ipfw _q add _ > > > > > > $cmd 00530 accept all from any any to <external ip> 5000 in via fxp0 > > $cmd 00535 accept all from any any to <internal ip of computer> 5000 out via > fxp0 > > /sbin/natd -n fxp0 redirect_port tcp <internal ip>:5000 5000 > > > > > > Would this be the correct method to have port 5000 open on my firewall? > > > > Please let me know. Thanks. > > > > Tom > > > > > -- > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.1.385 / Virus Database: 268.4.5/322 - Release Date: 4/22/2006 > > _______________________________________________ > freebsd-ipfw@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ipfw > To unsubscribe, send any mail to "freebsd-ipfw-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060425100754.24eb7d66>