From owner-freebsd-questions Mon Jan 29 9:15:17 2001 Delivered-To: freebsd-questions@freebsd.org Received: from palrel1.hp.com (palrel1.hp.com [156.153.255.242]) by hub.freebsd.org (Postfix) with ESMTP id 0B0E037B402 for ; Mon, 29 Jan 2001 09:14:59 -0800 (PST) Received: from omgw1.boi.hp.com (omgw1.boi.hp.com [15.56.8.101]) by palrel1.hp.com (Postfix) with ESMTP id 48275171D; Mon, 29 Jan 2001 09:10:24 -0800 (PST) Received: from xrosebh3.rsvl.itc.hp.com (xrosebh3.rsvl.itc.hp.com [15.34.240.67]) by omgw1.boi.hp.com (8.9.3 (PHNE_18979)/8.9.3 SMKit6.0.6 OpenMail) with ESMTP id KAA02593; Mon, 29 Jan 2001 10:10:23 -0700 (MST) Received: by xrosebh3.rsvl.itc.hp.com with Internet Mail Service (5.5.2653.19) id ; Mon, 29 Jan 2001 09:10:22 -0800 Message-ID: From: "DINKEY,GENE (HP-Loveland,ex1)" To: "'ben@cahostnet.net'" , "'freebsd-questions@freebsd.org'" Subject: RE: NATd configurations- where? Date: Mon, 29 Jan 2001 09:10:19 -0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > -----Original Message----- > From: Benjamin Ossei [mailto:ben@cahostnet.net] > Sent: Monday, January 29, 2001 8:44 AM > To: questions@freebsd.org > Subject: NATd configurations- where? > > > Where are the configuration files located for natd? I need to > setup some nating rules. In your /etc/rc.conf you should have a fw lines that look like this. natd_program="/sbin/natd" # path to natd, if you want a different one. natd_enable="YES" # Enable natd (if firewall_enable == YES). natd_interface="ed1" # Public interface or IPaddress to use. natd_flags="-f /usr/local/etc/natd.conf" # Additional flags for natd. The line that says natd_flags is what you want to add your config file to. -f tells natd to use the specified config file (in my case it's /usr/local/etc/natd.conf) Then just add your configs to the conf file. If you don't want to reboot the server just kill natd and restart it using: natd -f /usr/local/etc/natd.conf IIRC natd does not respond to SIGHUP so you need to kill and restart. Gene To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message