Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Mar 2002 09:21:24 +1100
From:      Gregory Bond <>
To:        "Roger Helman" <>
Cc:        freebsd-ipfw@FreeBSD.ORG
Subject:   Re: FreeBSD 4.2 ipfw natd -- Port Forwarding? 
Message-ID:  <>
In-Reply-To: Your message of Tue, 26 Mar 2002 09:03:37 -0700.

Next in thread | Raw E-Mail | Index | Archive | Help
> natd -n rl0 -redirect_port tcp 1723
> natd: Unable to bind divert socket.: Address already in use

> natd_flags=""

> 00100 divert 8668 ip from any to any via rl0
> 00200 allow ip from any to any
> 00300 divert 1723 ip from any to any via rl0
> 65535 deny ip from any to any

You are really, really confused about natd.  

You don't need to run it twice (you can't, that's why it's complaining), and
you don't need the second divert rule.

Remove the rule 300 and then add the "-redirect_port 
 tcp 1723" string to the natd_flags in rc.conf, and reboot.

To Unsubscribe: send mail to
with "unsubscribe freebsd-ipfw" in the body of the message

Want to link to this message? Use this URL: <>