From owner-freebsd-stable Fri Apr 6 19:59:21 2001 Delivered-To: freebsd-stable@freebsd.org Received: from nanguo.chalmers.com.au (gateway.chalmers.com.au [203.1.96.1]) by hub.freebsd.org (Postfix) with ESMTP id 0076C37B43E for ; Fri, 6 Apr 2001 19:59:05 -0700 (PDT) (envelope-from robert@chalmers.com.au) Received: from carbon (carbon.chalmers.com.au [203.1.96.26]) by nanguo.chalmers.com.au (8.11.0/8.11.0) with SMTP id f3730FU01140; Sat, 7 Apr 2001 13:00:15 +1000 (EST) From: "Robert" To: "Jeff Gardner" Cc: "FreeBSD" Subject: Thanks for all the help - fixed - ya party. RE: Sorry, but this 4.3 box has me totally stumped. Date: Sat, 7 Apr 2001 13:01:53 +1000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 In-Reply-To: <3ACE6E5E.DDE031B8@journey.com> Importance: Normal Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Thanks Jeff I think that did it. I looked at that before - and then didn't get back to do anything with it. Just let me check. Yup, after rebooting everything ... brute force :-) It all works. All I did was uncomment the "enable proxy" line ..... "Takes branch and begins seriously whipping self around room..." Let me tell you all - I've learnt a hell of a lot about how 4.3 networking works now. Firewalls, filtering, routing - even darn it, printing. SO. To all who replied to my wails of anguish, it is now going and many many thanks. (Isn't it always as simple as one '#' in the wrong place?) ... and now. Party time. Life begins again for one sysadmin. Thanks heaps to all. Robert Just for interests sake... from ppp.log ---------------------- Apr 7 12:47:25 ruby ppp[222]: IPCP: deflink: SendConfigAck(3) state = Ack-Rcvd Apr 7 12:47:25 ruby ppp[222]: IPCP: COMPPROTO[6] 16 VJ slots with slot compression Apr 7 12:47:25 ruby ppp[222]: IPCP: IPADDR[6] 203.1.96.3 Apr 7 12:47:25 ruby ppp[222]: IPCP: PRIDNS[6] 203.1.96.5 Apr 7 12:47:25 ruby ppp[222]: IPCP: PRINBNS[6] 203.1.96.26 Apr 7 12:47:25 ruby ppp[222]: IPCP: SECDNS[6] 203.1.96.6 Apr 7 12:47:25 ruby ppp[222]: IPCP: deflink: State change Ack-Rcvd --> Opened Apr 7 12:47:25 ruby ppp[222]: IPCP: deflink: LayerUp. Apr 7 12:47:25 ruby ppp[222]: IPCP: myaddr 203.1.96.6 hisaddr = 203.1.96.3 Apr 7 12:47:25 ruby ppp[222]: Phase: Found interface ed0 for 203.1.96.3 ====================== ppp.conf accept dns accept chap enable proxy set dns 203.1.96.5 203.1.96.6 set nbns 203.1.96.26 ppp.linkup add HISADDR 203.1.96.6 add 203.1.96.0 203.1.96.6 ppp.linkdown delete ALL ppp.secret [ this is where I'm teling it what IP to use ] merlin xxxxxx 203.1.96.3 > > > Well, the only thing I could see missing is where the laptop is getting > assigned .3! From the ppp man page, it looks like you would need a set > ifaddr line in your ppp.conf file. Where is it assigning the laptop .3? > > Second, you have enable proxy commented out. > proxy > Default: Disabled. Enabling this option will tell ppp to > proxy > ARP for the peer. This means that ppp will make an entry > in the > ARP table using HISADDR and the MAC address of the local > network > in which HISADDR appears. This allows other machines > connecteed > to the LAN to talk to the peer as if the peer itself was > connect- > ed to the LAN. The proxy entry cannot be made unless > HISADDR is > an address from a LAN. > > Thus, if you are actually getting .3 on the lap top, without this > option, the other machines would know that .3 even existed on the LAN. > Thus, enabling it would make .3 appear on .6's ethernet adapter and > therefore your .5 box would know which ethernet adapter to send packets > for .3. > > Also, our route table after the laptop connects confuses me. > > The last two lines: > > 203.1.96.3/32 203.1.96.6 UGSc 0 0 ed0 > > 203.1.96.6/32 203.1.96.3 UGSc 0 0 tun0 > > I am not sure these two lines are needed. > > For example, my route table is: > Internet: > Destination Gateway Flags Refs Use Netif > Expire > default 207.241.130.2 UGSc 15 18 tun0 > 127.0.0.1 127.0.0.1 UH 0 240 lo0 > 192.168 link#9 UC 0 0 vmnet1 => > 192.168.5 link#1 UC 0 0 xl0 => > 207.241.130.2 207.241.132.168 UH 16 0 tun0 > > Now, read the description of my set up so it makes sense. > > > My set up is as such: > > I have 1 freebsd box and 1 vmware box. > > Ethernet card is assigned 192.168.5.1 > tun0 assigned 207.241.132.168 from ISP > vmnet1 assigned 192.168.0.1 > > IP assigned to vmware system running Win2000 is 192.168.5.2 default > gateway 192.168.5.1. > > I am using nat to translate my internal network attached to the internet > via ppp. > In the kernel I have bridging turned on and the vmware modules are using > netgraph bridge. It loads kernel modules for netgraph support. > > The windows 2000 vmware box can browse the web. Since I am playing with > private IPs and nat, I can not talk to the 2000 box directly unless I > instruct nat to redirect a port and I can connect to 207.241.132.168 and > directly talk to the win2000 box. But, having never had a chance to set > up your scenario, I am not sure what your problem is. > > Jeff - who created a dial-up ppp server using Linux several years ago > but not with FreeBSD. I hope this was helpful. > > Robert wrote: > > > > Really, > > this is becoming a mystery. I'm reasonably familiar with dns, > routing, and > > so on. This is all the detail I have, and all the configs I > have in place. > > Yet..... I can not get that laptop visible on the newtork. On > .96.6 yes. > > But no where else. > > > > If anyone can see what I'm missing here, I'd love to know. When > I had the > > laptop talking to the .96.5 box it works fine. > > Talking to the .96.6 box. It will ONLY talk to the 96.6 box. > > > > Network: 203.1.96.0 > > > > +---------+ ----> WAN Internet Connection > > | FreeBSD | \ > > | 2.2 |-------- > > | ".96.5" | > > | | > > +----+----+ > > | > > |----+-------------+-------------+----| <-- Ethernet Network > > | | | > > | | | > > +----+----+ +----+----+ +----+----+ > > | | | | | 4.3 | > > | W2K | | W98 | | FreeBSD | > > | ".96.26 | |".96.18 | | ".96.6 | > > | | | | | | > > +---------+ +---------+ +---------+ > > | > > \ > > | PPP link > > / > > | > > +---------+ > > | Laptop | > > | | > > | ".96.3" | > > | | > > +----+----+ > > > > ROUTING: > > This is the .96.6 FreeBSD, 4.3 server prior to the dialin from > the laptop. > > ruby# netstat -rn > > Routing tables > > > > Internet: > > Destination Gateway Flags Refs Use Netif > > Expire > > default 203.1.96.5 UGSc 28 1645 ed0 > > 127.0.0.1 127.0.0.1 UH 0 0 lo0 > > 203.1.96 link#1 UC 0 0 ed0 => > > > > This is the .96.6 FreeBSD, 4.3 server _after_ the dialin from > the laptop. > > ruby# netstat -rn > > Routing tables > > > > Internet: > > Destination Gateway Flags Refs Use Netif > > Expire > > default 203.1.96.5 UGSc 28 1645 ed0 > > 127.0.0.1 127.0.0.1 UH 0 0 lo0 > > 203.1.96 link#1 UC 0 0 ed0 => > > 203.1.96.3 203.1.96.6 UH 1 0 tun0 => > > 203.1.96.3/32 203.1.96.6 UGSc 0 0 ed0 > > 203.1.96.6/32 203.1.96.3 UGSc 0 0 tun0 > > > > ....................................... > > This is the ppp.linkup entry > > # > > pap: > > add MYADDR HISADDR > > # > > ..................................... > > This is the ppp.linkdown entry > > pap: > > delete MYADDR HISADDR > > .................................... > > This is the ppp.conf entry > > pap: > > allow users merlin > > set log Phase Chat Connect IPCP > > enable pap > > enable chap > > enable passwdauth > > set timeout 900 > > accept dns > > accept chap > > #enable proxy > > set dns 203.1.96.5 203.1.96.6 > > set nbns 203.1.96.26 > > add 203.1.96.3 203.1.96.6 > > ................................... > > > > And last but not least, the rc.conf lines > > > > ifconfig_lo0="inet 127.0.0.1" > > ifconfig_ed0="inet 203.1.96.6 netmask 255.255.255.0" > > hostname="ruby.chalmers.com.au" > > named_enable="YES" > > linux_enable="YES" > > moused_port="/dev/cuaar1" > > moused_type="logitech" > > moused_enable="NO" > > saver="green" > > firewall_enable="NO" > > defaultrouter="203.1.96.5" > > static_routes="" > > gateway_enable="YES" > > router_enable="NO" > > mrouted_enable="NO" > > #forward_sourceroute="YES" > > #accept_sourceroute="YES" > > inetd_enable=NO > > tcp_extensions="YES" > > ................................... > > > > Now if anyone can tell me why that laptop isn't talking through > the 4.3 box, > > I'll be really interested to hear. > > > > Regards > > Robert > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-stable" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message