From owner-freebsd-questions Sat Jun 15 10:33:12 2002 Delivered-To: freebsd-questions@freebsd.org Received: from hotmail.com (f287.law10.hotmail.com [64.4.14.162]) by hub.freebsd.org (Postfix) with ESMTP id 1E04737B400 for ; Sat, 15 Jun 2002 10:33:07 -0700 (PDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sat, 15 Jun 2002 10:33:07 -0700 Received: from 208.5.200.236 by lw10fd.law10.hotmail.msn.com with HTTP; Sat, 15 Jun 2002 17:33:06 GMT X-Originating-IP: [208.5.200.236] From: "Scott Ware" To: freebsd-questions@FreeBSD.ORG Subject: natd and peer-to-peer applications Date: Sat, 15 Jun 2002 13:33:06 -0400 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 15 Jun 2002 17:33:07.0002 (UTC) FILETIME=[B5F099A0:01C21492] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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