On Wednesday 02 July 2003 12:58, Ruslan Sulemanov wrote:
> KH> On Wed, 2 Jul 2003, Ruslan Sulemanov wrote:
> >> I'm try configuration NAT (ipfw + natd),
> >> how i need start natd ?
> >>
> >> Kernel options:
> >>
> >> options IPDIVERT
> >> options IPFIREWALL
>
> KH> /etc/rc.conf:
> KH> firewall_enable="YES"           # Set to YES to enable firewall
> functionality KH> firewall_type="open"            # Firewall type (see
> /etc/rc.firewall) KH>                ^
> KH>                Or whatever you want ...
> KH> natd_enable="YES"               # Enable natd (if firewall_enable ==
> YES). KH> natd_interface="de0"            # Public interface or IPaddress
> to use. KH>                 ^
> KH>                 Fill in here the device name of your network adapater.
>
> I do it. How i can start natd?
natd_enable="YES" in your /etc/rc.conf will tell FreeBSD to automatically 
start it when your system boots.
You can start it manually with :
natd -n de0
(assuming de0 is your outside-interface)

> in my /etc/rc.firewall this rules:
> ipfw -f flush
> ipfw add divert natd all from any to any via fxp0
> ipfw add allow all from any to any
That should get it working

grtz,
Daan
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to