Date: Fri, 24 May 2002 10:56:42 -0700 From: "Patrick Soltani" <psoltani@ultradns.com> To: "Mark-Nathaniel Weisman" <mark@outlander.us>, <freebsd-questions@freebsd.org> Subject: RE: NATD on 4.5 Message-ID: <3DBB075EEB95944492E127F2B9A96FAF5DD816@ultra-exchange.UltraDNS.com>
next in thread | raw e-mail | index | archive | help
Put this line in your /etc/rc.conf file natd_flags=3D"-f /etc/natd.conf" then create a file /etc/natd.conf that has all the redirection you want = to do. All should work. Read the man pages on natd, it has some pointers on how the redirection = is implemented; link list I think, and its side effects. Regards, Patrick Soltani. > -----Original Message----- > From: Mark-Nathaniel Weisman [mailto:mark@outlander.us] > Sent: Thursday, May 23, 2002 11:22 PM > To: freebsd-questions@freebsd.org > Subject: NATD on 4.5 >=20 >=20 > on 5/23/02 9:31 PM, Lubomir Radev at lubomirr@sympatico.ca wrote: >=20 > Hello List; > I've got natd and ipfw setup on my 4.5 freeBSD box. I'm=20 > using the box as my > router/firewall from the public net to a web server on a=20 > class C network for > some protection. I've recompiled the kernel, and got=20 > everything working > except for one minor inconvenence; I can only route one port=20 > to an internal > box in rc.conf? The one port routing works, unless I (un-rem=20 > out) the lines > for the other ports: >=20 > natd_flags=3D"-redirect_port tcp 192.168.100.2:80 80" >=20 > These lines are commented out; > natd_flags=3D"-redirect_port tcp 192.168.100.2:443 443" > natd_flags=3D"-redirect_port tcp 192.168.100.2:21 21" >=20 > If I un-comment either of the lines directly above, then=20 > nothing works. Can > anyone help? >=20 >=20 > --=20 > His Servant, > Mark-Nathaniel Weisman > Webmaster > Infinite Visions Creations > Anchorage, AK > http://www.infinitevisions.ws > mark@infinitevisions.ws >=20 >=20 > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message >=20 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?3DBB075EEB95944492E127F2B9A96FAF5DD816>