Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Jun 2002 13:33:06 -0400
From:      "Scott Ware" <wsware@hotmail.com>
To:        freebsd-questions@FreeBSD.ORG
Subject:   natd and peer-to-peer applications
Message-ID:  <F287Q9rk0kQU2weIfsd00021734@hotmail.com>

next in thread | raw e-mail | index | archive | help
I have a problem were I need natd to translate when a local client tries to 
connect to my external IP address with a port forwarded back to a local 
client.

Let me try to make this clear...

The application I'm trying to run is totally peer-to-peer.

I can set the ports for he application to use....
192.168.1.5  uses 2302-2306
192.168.1.6  uses 2307-2311

I have these forwarded on the external IP address 216.239.35.100 (for 
example)

192.168.1.5 contacts an external server. all peers are told about this new 
connection and they all talk to each other.. all is well
192.168.1.6 connects to the same external server and can talk to everyone 
but the other local client and the other local client can not talk back to 
this one... all is bad

192.168.1.5 is told about 192.168.1.6 but it is told about it by using the 
external address of 216.39.35.100 port 2307
192.168.1.6 is told about 192.168.1.5 but it is told about it by using the 
external address of 216.39.35.100 port 2302

These PC's do not talk to each other correctly.. it looks like NAT is not 
translating when the internal client are redirected back to another internal 
client. IE 192.168.1.5-->216.39.35.100:2307  is redirected to 
192.168.1.6:2307.

Right now I have a friend that has a Linksys router and it handles this 
correctly, but I can't get FreeBSD to do it.

Any Ideas?

please respond to wsware@hotmail.com


rc.conf
-----------
natd_enable="YES"
natd_interface="fxp1"
natd_flags="-f /etc/natd.conf"

natd.conf
-------------
log yes
use_sockets yes
same_ports yes
dynamic yes
unregistered_only yes

redirect_port tcp 192.168.1.5:2302-2306 2302-2306
redirect_port udp 192.168.1.5:2302-2306 2302-2306

redirect_port tcp 192.168.1.6:2307-2311 2307-2311
redirect_port udp 192.168.1.6:2307-2311 2307-2311


_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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?F287Q9rk0kQU2weIfsd00021734>