NATD Internal Network problems

Chris S. Wilson cswilson at ordizmelby.com
Thu Dec 29 12:34:52 PST 2005


Hello! :)

I am having a problem with freebsd 5.3-release and natd.

When I try to connect to a service on my internal network to an IP on my
external network that has a port redirected, it wont connect. 

IE: 67.128.100.2 is my external IP, on my internal network I try to
connect to 67.128.101.2:80 which is forwarded in my natd.conf and the
connection is refused.

Does anyone know why?

My Config:

IPFW Startup Script:

/sbin/ipfw -f flush
/sbin/ipfw add divert natd all from any to any via xl1
/sbin/ipfw add pass all from any to any

Natd.conf:

use_sockets yes
same_ports yes
redirect_port tcp 10.0.10.2:8- 67.128.100.2:80

Rc.conf

gateway_enable="YES"
firewall_enable="YES"
natd_enable="YES"
natd_interface="xl1"
natd_flags="-m -s -f /etc/natd.conf"

Thanks!

Chris W


More information about the freebsd-questions mailing list