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 Message-ID: <3A26207E.16096@bjapp4.163.net>
next in thread | raw e-mail | index | archive | help
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<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500 inet 61.130.54.73 --> 202.96.108.46 netmask 0xffffff00 Opened by PID 4450 tun1: flags=8010<UP,POINTOPOINT,RUNNING,MULTICAST> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A26207E.16096>