dialup question ?

Tony Frank tfrank at optushome.com.au
Sat Feb 21 01:24:54 PST 2004


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


More information about the freebsd-questions mailing list