Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Jan 2001 09:10:19 -0800
From:      "DINKEY,GENE (HP-Loveland,ex1)" <gene_dinkey@hp.com>
To:        "'ben@cahostnet.net'" <ben@cahostnet.net>, "'freebsd-questions@freebsd.org'" <freebsd-questions@freebsd.org>
Subject:   RE: NATd configurations- where?
Message-ID:  <F341E03C8ED6D311805E00902761278C531549@xfc04.fc.hp.com>

next in thread | raw e-mail | index | archive | help
> -----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




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