Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Feb 2004 20:24:49 +1100
From:      Tony Frank <tfrank@optushome.com.au>
To:        Roberto Pereyra <rjpereyra@gualeguaychu.gov.ar>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: dialup question ?
Message-ID:  <20040221092449.GE98919@marvin.home.local>
In-Reply-To: <20040220223749.GA3693@gualeguaychu.gov.ar>
References:  <20040220223749.GA3693@gualeguaychu.gov.ar>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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