From owner-freebsd-net Thu Nov 30 1:41:13 2000 Delivered-To: freebsd-net@freebsd.org Received: from bjapp4.163.net (unknown [202.108.255.214]) by hub.freebsd.org (Postfix) with ESMTP id 501AE37B400 for ; Thu, 30 Nov 2000 01:41:10 -0800 (PST) Received: by bjapp4.163.net (Postfix, from userid 1005) id E3E421D47D402; Thu, 30 Nov 2000 17:40:14 +0800 (CST) MIME-Version: 1.0 Message-Id: <3A26207E.16096@bjapp4.163.net> Date: Thu, 30 Nov 2000 17:40:14 +0800 (CST) From: oscar@163.net To: freebsd-net@freebsd.org Subject: HELP!!! two modem and natd X-Priority: 3 X-Originating-IP: [61.130.54.73] Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I have two modem and two account from isp. I use freebsd as a server. my local LAN (192.168.0.1/24) is linked to Internet via my freebsd box(192.168.0.1) and I WANT same machine connect to Internet via modem1 and others via modem2. I use those commands: /sbin/ppp -nat -ddial modem1 /sbin/ppp -nat -ddial modem2 in ppp.conf I had add "add default HISADDR " to modem1 and not to modem2 /sbin/ifconfig -a tun0: flags=8051 mtu 1500 inet 61.130.54.73 --> 202.96.108.46 netmask 0xffffff00 Opened by PID 4450 tun1: flags=8010 mtu 1500 inet 61.130.62.76 --> 202.96.108.53 netmask 0xffffff00 Opened by PID 4480 /sbin/ipfw add 1000 fwd 202.96.108.53 ip from 192.168.0.3 to any /sbin/ipfw add 8000 allow ip from any to any this work well,the 192.168.0.3 connect to Internet via tun1's ip and other's use tun0's ip. only But when the 192.168.0.3 and other computer connect to same ip. (such as on a same chatroom,or download file from the same website) the other computer will got a Errer:the connect is reset. what's is it.and how can i resolve it ? I want to someone to help me. oscar oscar@163.net ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ “200家连锁网站,让眼睛尝尝鲜” http://www.chinese.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 163电子邮局,给您更完美Email服务! http://www.163.net ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message