Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 02 Jul 2004 16:29:52 +0000
From:      "Franz Klaus" <klaus_franz@hotmail.com>
To:        freebsd-net@freebsd.org
Subject:   go to the Internet by through a plip link?
Message-ID:  <BAY16-F8mNHP7T0c5WB00024c5f@hotmail.com>

next in thread | raw e-mail | index | archive | help
Hello. I have an old notebook computer (hostname:oldbook) connected to 
another host (hostname:proxy) by through plip link. This link works fine. 

oldbook:plip0:192.168.0.11->192.168.0.10
proxy:plip0:192.168.0.10->192.168.0.11

there is a NIC on the proxy host:
proxy:ed1:192.168.0.250/255.255.255.0 default gateway: 192.168.0.1

now IMHO I have two ways to let oldbook host surf the Internet. I can setup 
natd and do address translation, the oldbook will be set a different subnet 
(say, 10.0.0.0/255.255.255.0). Or, I can use proxy arp, the ed1 repersent 
192.168.0.11, and pass all the packets to oldbook by through plip link.

The first method is mentioned in handbook, it require me rebuild kernel 
with DIVERT and IPFIREWALL and the oldbook become behind firewall, which I 
do not want. 

The second method sounds best to me. I didn't find how to do it on 
handbook. I tried to run on proxy host:
#arp -s 192.168.0.11 <ed1's mac address> pub
but that doesn't work. Any hint how can I do proxy arp? I heard of a port 
'choparp'. Do I need to install that port to have it work?

Thank you.

_________________________________________________________________
享用世界上最大的电子邮件系统— MSN Hotmail。  http://www.hotmail.com  



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BAY16-F8mNHP7T0c5WB00024c5f>