From owner-freebsd-questions@FreeBSD.ORG Sat Feb 21 01:24:54 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 36E0F16A4CE; Sat, 21 Feb 2004 01:24:54 -0800 (PST) Received: from mail015.syd.optusnet.com.au (mail015.syd.optusnet.com.au [211.29.132.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1B64443D3F; Sat, 21 Feb 2004 01:24:53 -0800 (PST) (envelope-from tfrank@optushome.com.au) Received: from marvin.home.local (c211-28-241-189.eburwd5.vic.optusnet.com.au [211.28.241.189])i1L9OnL31480; Sat, 21 Feb 2004 20:24:50 +1100 Received: by marvin.home.local (Postfix, from userid 1001) id 8D1EC3DA; Sat, 21 Feb 2004 20:24:49 +1100 (EST) Date: Sat, 21 Feb 2004 20:24:49 +1100 From: Tony Frank To: Roberto Pereyra Message-ID: <20040221092449.GE98919@marvin.home.local> References: <20040220223749.GA3693@gualeguaychu.gov.ar> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040220223749.GA3693@gualeguaychu.gov.ar> User-Agent: Mutt/1.4.2.1i cc: freebsd-isp@freebsd.org cc: freebsd-questions@freebsd.org Subject: Re: dialup question ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Feb 2004 09:24:54 -0000 Hi, On Fri, Feb 20, 2004 at 07:37:49PM -0300, Roberto Pereyra wrote: > > A question: > > I want to configure a simple dial-up server and have this ppp.conf > > -------------------------- > default: > > pap: > set debug phase lcp chat > set timeout 0 set debug phase lcp chat > enable pap > set ifaddr 192.168.0.1 192.168.0.101-192.168.0.104 255.255.255.0 > enable proxy > accept dns > set dns 192.168.0.1 > load server > set radius /etc/radius.conf > ------------------------------------ > > My dial-up server (192.168.0.170) is not the internet gateway (192.168.0.1) > > The line: > > set ifaddr 192.168.0.1 192.168.0.101-192.168.0.104 255.255.255.0 > > is right ? the first ip must be the system gateway or must be the dial-up server ip ? I think it should be the gateway as you are going to be proxying the dialup users onto your local LAN. The dialup box will proxy-arp the dialup users to the LAN and will forward their packets to the gateway. I have a similar setup to what you describe. In my case the dialup is also the gateway which makes it simpler. My config is: server: set timeout 0 set enddisc mac enable chap chap81 pap passwdauth enable proxy set ifaddr 192.168.3.2 192.168.3.80-192.168.3.100 255.255.255.255 set server /var/run/ppp/ppp-server-%d "" 0177 set dns 192.168.3.2 set nbns 192.168.3.2 accept dns Regards, Tony