From owner-freebsd-questions Fri Oct 30 07:24:45 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA21040 for freebsd-questions-outgoing; Fri, 30 Oct 1998 07:24:45 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from www.eng.uct.ac.za (www.eng.uct.ac.za [137.158.135.175]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA21029 for ; Fri, 30 Oct 1998 07:24:40 -0800 (PST) (envelope-from laurief@eng.uct.ac.za) Received: from eng.uct.ac.za (triton.eng.uct.ac.za [137.158.129.99]) by www.eng.uct.ac.za (8.9.1/8.8.8) with ESMTP id RAA15202 for ; Fri, 30 Oct 1998 17:24:21 +0200 (SAT) (envelope-from laurief@eng.uct.ac.za) Message-ID: <3639DAF2.F6741144@eng.uct.ac.za> Date: Fri, 30 Oct 1998 17:27:46 +0200 From: Laurie Fialkov Organization: University of Cape Town X-Mailer: Mozilla 4.5 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: questions@FreeBSD.ORG Subject: PPP Server Setup Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi I am running 2.2.7-R. There are 3 interfaces, 3com 3c905 ethernet card with an address of 192.168.1.1/26 used to run samba on a WinXX network, and two modem connections. One of the modem connections is using tun0 to connect to an isp, and we would like to setup the second modem to answer ppp incoming connections. The network is setup as follows: (H=pc host, F=FreeBSD, ISP -- working) H H H \-------\-------\ (ppp -dedicated -alias) |---(xl0 192.168.1.1/26)------F---------(tun0)-------ISP We want to add (ppp) dialing to the FreeBSD box: H H H \-------\-------\ (ppp -dedicated -alias) |---(xl0 192.168.1.1/26)------F---------(tun0)-------ISP | ?-------(tun1 192.168.1.193/26) ---\ So far the following is configured and working. 1.The connection to the isp (ppp -dedicated -alias) is working 2. mgetty is configured and is running auto_ppp and runs ppp -direct CHAPserver which is like this in the ppp.conf file: CHAPserver: set device /dev/cuaa1 enable chap enable proxy set ifaddr 192.168.1.194 192.168.1.193 255.255.255.255 ppp.secrets: laurie 123qwe 192.168.1.194/26 When the win95 machine connects using dialup neworking, the machine is autheneticated correctly but the netmask is set to 255.255.255.0, the ip number and gatway are both set to 192.168.1.194. We would like the ip number to be 192.168.1.194, the gateway 192.168.1.193 the netmask 255.255.255.192. Do we have to use ifconfig to set anything and do we need to add extra routes in the routing table (we are using static routing) or do we use ifaddr to set the gateway of the dialing in machine. Thanks laurie To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message