Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Jan 1996 11:21:44 +1538425 (MET)
From:      Jason Diesel <jason@dataware.de>
To:        questions@freebsd.org
Subject:   PPP Server ???
Message-ID:  <199601051021.LAA04259@othello.dataware.de>

Next in thread | Raw E-Mail | Index | Archive | Help
Hello Questions

I run a small internet site, with 6 machines running FreeBSD 2.0.5, and a leased line to my internet provider, etc. I have a modem connected to my main server, so that my companies, sales-guys, can dial into us and get onto the internet when they are visiting customers and so on. This modem, is really causing trouble, which maybe you can help and shed some light on for me.

Firsty, what I have done so far:

I have an mgetty running on the modem, meaning that you can dial in perfectly from the outside, you login with a name, and the telnet session works perfectly. But I need the modem to run PPP (or SLIP, but I chose PPP as it is newer and ...)So I created a special user, that has a logon script to run ppp like this:
/usr/sbin/ppp -direct
Once the user has logged on, packet mode is enabled, so you then fire up netscape or something like that. But it cannot find any names on the internet.
Here is a brief listing on how my setup is:
Nameserver: 	othello.dataware.de - 194.77.19.26
PPP user:	dw-slip.dataware.de - 194.77.19.28
I have compiled the tunnel device into my kernel, and my /etc/sysconfig files like this: 
ifconfig_tun0="inet 194.77.19.28 194.77.19.26 netmask 255.255.255.248"
Once connected, I perform a:
netstat -ain:
=============
Name  Mtu   Network     Address            Ipkts Ierrs    Opkts Oerrs  Coll
ed0   1500  <Link>02.60.8c.a7.72.e8        90168   142    74086     0   642
ed0   1500  194.77.19.2 194.77.19.26       90168   142    74086     0   642
lp0*  1500  <Link>                             0     0        0     0     0
lo0   16384 <Link>                          2415     0     2415     0     0
lo0   16384 127         127.0.0.1           2415     0     2415     0     0
sl0*  552   <Link>                             0     0        0     0     0
tun0  1500  <Link>                          8621     0     6959     0     0
tun0  1500  194.77.19   194.77.19.26        8621     0     6959     0     0

Then a netstat -nr:
===================
Routing tables

Internet:
Destination      Gateway            Flags     Refs     Use     Netif Expire
default          194.77.19.25       UGSc        5      107       ed0
127.0.0.1        127.0.0.1          UH          0       51       lo0
194.77.19.24     link#1             UC          0        0 
194.77.19.25     2:60:8c:a1:d8:d7   UHLW        7    41168       ed0    267
194.77.19.26     2:60:8c:a7:72:e8   UHLW        1     2364       lo0
194.77.19.27     8:0:20:74:48:70    UHLW        1      158       ed0    958
194.77.19.28     194.77.19.26       UH          1      117      tun0
224              link#1             UCS         0        0 

But something is not right, the routing seems wrong as there is no true link between systems. Now the question is, what should the routing be and how should it be done?
#/etc/ppp/options
crtscts                         # Hardware flow control
netmask 255.255.255.248         # netmask ( not required )
194.77.19.26:194.77.19.28  	# ip's of local and remote hosts
                                # local ip must be different from one
                                # you assigned to the ethernet ( or other )
                                # interface on your machine.
                                # remote IP is ip address that will be 
                                # assigned to the remote machine
domain dw-slip.dataware.de      # your domain
passive                         # wait for LCP
cuaa1                           # modem line

And:
#/etc/ppp/ppp.linkup
194.77.19.28:
 add 194.77.19.26 255.255.255.0 HISADDR
#
iij-demand:
 delete ALL
 add 0 0 HISADDR
======

So what else can I do to get the system running? I have looked around the internet, and not found too much documentation on PPP server stuff. My internet provider, as well as others I think, are all using netblazers, so this is not applicable.

Do you have any ideas that could help, it would be very much appreciated

JAson
==================================================================
			Jason Diesel
			------------
[jdiesel@dataware.com]	 		Dataware Technologies GmbH
[jason@dataware.de] 			BarthStr. 24
http://www.dataware.de 			80339 Munich Germany
http://www.dataware.de/~jason 		Tel:+49-89-540-924-72
					Fax:+49-89-540-924-10
==================================================================




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?199601051021.LAA04259>