Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Oct 2000 01:05:10 -0400
From:      "Kennie H. Jones" <khjones@w3rite.com>
To:        freebsd-questions@FreeBSD.org
Subject:   Problems with pppd
Message-ID:  <39EE8106.85659CA1@w3rite.com>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------2AC1D9BD24A660206E8C819F
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

I am trying to use the kernel version of PPP (program, pppd) to connect
to my ISP by a new installation of FreeBSD. I have followed exactly the
instructions in "The Complete FreeBSD" book and in the URL,
http://www.freebsd.org/handbook/ppp.html, using the instructions for
chat instead of kermit. Thes two methods are somewhat different in their
recommended parameters and methods. I have also tried many (if not all)
combinations of parameters (putting in all and then commenting out as I
try to connect).

None of the combinations seem to work. The result is that I appear to
connect: I hear the modem dial and typical noise, the noise stops, and
the system says it connected displaying both local and remote IP
addresses that have been assigned. But, when I try to ping an address at
my ISP, it hangs and never connects. I have found that if I ping the
local connection address, it works. But if I ping the remote connection
address, it hangs as well.

In the file, rc.conf, I have set the parmeter, gateway_enable="NO", to
keep things as simple as possible. My eventual goal is for this computer
to be a gateway for my local network to the ISP. My local network is
working OK.

So, my questions are:

1) How do I get this system to be able to communicate with the Internet
through my ISP (i.e. what is wrong with my currnet configuration that is
not allowing me to do this?)

2) Once this connection is working for this computer, how do I make it
serve as a gateway for my local network.

3) If I uncommment the line, "demand", in the file, "options", it
displays an error, (see attached file, "pppd-demand.out", that says I
must set a static IP address for the ISP. My ISP uses dynamic addresses
on both the local and remote end, and apparently the addresses are not
even from the same subnet with each connection. How so I use pppd to
dial on demand with dynamic addresses?

The following files are attached (all but rc.conf in /etc/ppp):

options - option file for pppd
dial.chat - input for the chat
pap.secrets - username and password  for pap. (changed to "<username>"
and
                    "<password>". Found that the options file (login
method)
                     would not work without this file, so evidently my
ISP uses pap.
/etc/rc.conf
connect-errors - log file from pppd
pppd.out - output from execution of pppd
pppd-demand.out - output from execution of pppd with demand option in
"options"
ifconfig.before - output of ifconfig before execution of pppd
ifconfig.after - output of "ifconfig -a" after execution of pppd
netstat.before - output of "netstat -rn" before execution of pppd
netstat.after - output of "netstat -rn" after execution of pppd
ping.local - output of ping to local address assigned by ISP
ping.remote - output of ping to remote address assigned by ISP

I also tried User ppp  as describe in both the book and the www.freebsd
handbook trying different options. I executed it with the command:
ppp -auto -alias demand
which should start ppp in the auto mode whcih should not connect until I
execute a command that needs the network. However, when I execute ping,
they hang as with pppd and the modem never dials.

The following file are attached relative to User ppp:

ppp.conf
ppp.linkup
ppp.out - output from execution of ppp

Thanks in advance for your time and experience.






--------------2AC1D9BD24A660206E8C819F
Content-Type: text/plain; charset=us-ascii; name="options"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="options"

# Options file for pppd
/dev/cuaa1 115200
crtscts
modem
noipdefault
passive
domain ppp.jones.com
defaultroute
#demand
idle 60
connect "/usr/bin/chat -f /etc/ppp/dial.chat -V -s"
user <username>
lock
debug
#deflate 12,12

--------------2AC1D9BD24A660206E8C819F
Content-Type: text/plain; charset=us-ascii; name="dial.chat"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="dial.chat"

ABORT BUSY
ABORT 'NO CARRIER'
"" AT OK ATDT3699436
CONNECT ""
TIMEOUT 10
#ogin:\\r-ogin: <username>
#TIMEOUT 5
#sword: <password>

--------------2AC1D9BD24A660206E8C819F
Content-Type: text/plain; charset=us-ascii; name="pap-secrets"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="pap-secrets"

<username> * <password>

--------------2AC1D9BD24A660206E8C819F
Content-Type: text/plain; charset=us-ascii; name="rc.conf"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="rc.conf"

# This file now contains just the overrides from /etc/defaults/rc.conf
# please make all changes to this file.

# -- sysinstall generated deltas -- #
ifconfig_ep0="inet 10.0.0.1  netmask 255.255.255.0"
defaultrouter="10.0.0.1"
hostname="firewall.jones.com"
linux_enable="YES"
gateway_enable="YES"
nfs_server_enable="YES"
nfs_client_enable="YES"
ifconfig_ppp0="inet 0.0.0.0 netmask 255.255.255.255"

#natd_enable="YES"
#natd_interfaces="ppp0"

--------------2AC1D9BD24A660206E8C819F
Content-Type: text/plain; charset=us-ascii; name="connect-errors"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="connect-errors"

AT
OK
ATDT3699436
CONNECT

--------------2AC1D9BD24A660206E8C819F
Content-Type: text/plain; charset=us-ascii; name="pppd.out"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="pppd.out"

Oct 18 22:20:12 firewall pppd[536]: ppps 2.3.5 started by root, uid 0
Oct 18 22:20:39 firewall pppd[536]: Connect: ppp0 <--> /dev/cuaa1
ppp0: IPv6 not supported
Oct 18 22:20:45 firewall /kernel: ppp0 IPv6 not supported
Oct 18 22:20:45 firewall /kernel: ppp0 IPv6 not supported
Oct 18 22:20:45 firewall pppd[536]: Couldn't add default route: File exists
Oct 18 22:20:45 firewall pppd[536]: Couldn't add default route: File exists
Oct 18 22:20:45 firewall pppd[536]: Couldn't add default route: File exists
Oct 18 22:20:45 firewall pppd[536]: local IP address 209.96.179.92
Oct 18 22:20:45 firewall pppd[536]: remote IP address 204.17.220.65
Oct 18 22:20:45 firewall pppd[536]: Connection terminated, connected for 1 minutes

--------------2AC1D9BD24A660206E8C819F
Content-Type: text/plain; charset=us-ascii; name="pppd-demand.out"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="pppd-demand.out"

pppd: remote IP address required for demand-dialling

Oct 18 22:10:16 firewall pppd[506]: remote IP address required for demand-dialling
Oct 18 22:10:16 firewall pppd[506]: remote IP address required for demand-dialling
Oct 18 22:10:16 firewall pppd[506]: remote IP address required for demand-dialling


--------------2AC1D9BD24A660206E8C819F
Content-Type: text/plain; charset=us-ascii; name="ifconfig.before"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="ifconfig.before"

lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
ep0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	inet 10.0.0.1 netmask 0xffffff00 broadcast 10.0.0.255
	inet6 fe80::2a0:24ff:fe11:8682%ep0 prefixlen 64 scopeid 0x2 
	ether 00:a0:24:11:86:82 
	media: 10baseT/UTP
	supported media: 10baseT/UTP 10base5/AUI
sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 552
ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 
	inet6 ::1 prefixlen 128 
	inet 127.0.0.1 netmask 0xff000000 
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
gif1: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
gif2: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
gif3: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
faith0: flags=8000<MULTICAST> mtu 1500

--------------2AC1D9BD24A660206E8C819F
Content-Type: text/plain; charset=us-ascii; name="ifconfig.after"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="ifconfig.after"

lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
ep0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	inet 10.0.0.1 netmask 0xffffff00 broadcast 10.0.0.255
	inet6 fe80::2a0:24ff:fe11:8682%ep0 prefixlen 64 scopeid 0x2 
	ether 00:a0:24:11:86:82 
	media: 10baseT/UTP
	supported media: 10baseT/UTP 10base5/AUI
sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 552
ppp0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
	inet 206.246.249.227 --> 204.17.220.65 netmask 0xffffff00 
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 
	inet6 ::1 prefixlen 128 
	inet 127.0.0.1 netmask 0xff000000 
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
gif1: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
gif2: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
gif3: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
faith0: flags=8000<MULTICAST> mtu 1500

--------------2AC1D9BD24A660206E8C819F
Content-Type: text/plain; charset=us-ascii; name="netstat.before"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="netstat.before"

Routing tables

Internet:
Destination        Gateway            Flags      Netif Expire
default            10.0.0.1           UGSc        0        0      ep0
10/24              link#2             UC          0        0      ep0 =>
10.0.0.1           0:a0:24:11:86:82   UHLW        1       24      lo0
127.0.0.1          127.0.0.1          UH          1       26      lo0

Internet6:
Destination                       Gateway                       Flags      Netif Expire
::1                               ::1                           UH          lo0
fe80::%ep0/64                     link#2                        UC          ep0
fe80::%lo0/64                     fe80::1%lo0                   Uc          lo0
ff01::/32                         ::1                           U           lo0
ff02::%ep0/32                     link#2                        UC          ep0
ff02::%lo0/32                     fe80::1%lo0                   UC          lo0

--------------2AC1D9BD24A660206E8C819F
Content-Type: text/plain; charset=us-ascii; name="netstat.after"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="netstat.after"

Routing tables

Internet:
Destination        Gateway            Flags      Netif Expire
default            10.0.0.1           UGSc        0        0      ep0
10/24              link#2             UC          0        0      ep0 =>
10.0.0.1           0:a0:24:11:86:82   UHLW        1       40      lo0
127.0.0.1          127.0.0.1          UH          1       26      lo0
204.17.220.65      206.246.249.227    UH          0        0     ppp0

Internet6:
Destination                       Gateway                       Flags      Netif Expire
::1                               ::1                           UH          lo0
fe80::%ep0/64                     link#2                        UC          ep0
fe80::%lo0/64                     fe80::1%lo0                   Uc          lo0
ff01::/32                         ::1                           U           lo0
ff02::%ep0/32                     link#2                        UC          ep0
ff02::%lo0/32                     fe80::1%lo0                   UC          lo0

--------------2AC1D9BD24A660206E8C819F
Content-Type: text/plain; charset=us-ascii; name="ping.local"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="ping.local"

PING 206.246.249.227 (206.246.249.227): 56 data bytes
64 bytes from 206.246.249.227: icmp_seq=0 ttl=255 time=0.567 ms
64 bytes from 206.246.249.227: icmp_seq=1 ttl=255 time=0.493 ms
64 bytes from 206.246.249.227: icmp_seq=2 ttl=255 time=0.475 ms
64 bytes from 206.246.249.227: icmp_seq=3 ttl=255 time=0.473 ms
64 bytes from 206.246.249.227: icmp_seq=4 ttl=255 time=0.475 ms
64 bytes from 206.246.249.227: icmp_seq=5 ttl=255 time=0.479 ms
64 bytes from 206.246.249.227: icmp_seq=6 ttl=255 time=0.476 ms
64 bytes from 206.246.249.227: icmp_seq=7 ttl=255 time=0.476 ms
64 bytes from 206.246.249.227: icmp_seq=8 ttl=255 time=0.474 ms
64 bytes from 206.246.249.227: icmp_seq=9 ttl=255 time=0.476 ms
64 bytes from 206.246.249.227: icmp_seq=10 ttl=255 time=0.474 ms
64 bytes from 206.246.249.227: icmp_seq=11 ttl=255 time=0.529 ms

--- 206.246.249.227 ping statistics ---
12 packets transmitted, 12 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.473/0.489/0.567/0.028 ms

--------------2AC1D9BD24A660206E8C819F
Content-Type: text/plain; charset=us-ascii; name="ping.remote"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="ping.remote"

PING 204.17.220.65 (204.17.220.65): 56 data bytes

--- 204.17.220.65 ping statistics ---
5 packets transmitted, 0 packets received, 100% packet loss

--------------2AC1D9BD24A660206E8C819F
Content-Type: text/plain; charset=us-ascii; name="ppp.conf"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="ppp.conf"

################################################################
# PPP Configuration File ('/etc/ppp/ppp.conf')
#
# Default settings; These are always executed always when PPP
# is invoked and apply to all system configurations.
################################################################
default:
  set device /dev/cuaa1
  set speed 115200
  disable pred1
  deny pred1
  disable lqr
  deny lqr
  set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATE1Q0M0 OK-AT-OK\\dATDT\\T TIMEOUT 40 CONNECT"
  set redial 3 10
#
#
################################################################
#
# For interactive mode use this configuration:
#
# Invoke with `ppp -alias interactive`
#
################################################################
#interactive:
#  set authname Your_User_ID_On_Remote_System
#  set authkey Your_Password_On_Remote_System
#  set phone 1-800-123-4567
#  set timeout 300
#  set openmode active
#  accept chap
#
################################################################
#
# For demand-dial (automatic) mode we'll use this configuration:
#
# Invoke with: 'ppp -auto -alias demand'
#
################################################################
demand:
  set authname ppp:khjones
  set authkey tlawr!
  set phone 369-9436
  set timeout 300
  set openmode active
  accept chap
  set ifaddr 127.1.1.1/0 127.2.2.2/0 255.255.255.0
  add 0 0 127.2.2.2
################################################################
# End of /etc/ppp/ppp.conf
--------------2AC1D9BD24A660206E8C819F
Content-Type: text/plain; charset=us-ascii; name="ppp.linkup"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="ppp.linkup"

#########################################################################=    
# PPP Link Up File ('/etc/ppp/ppp.linkup')
#
#  This file is checked after PPP establishes a network connection.
# 
#  This file is searched in the following order.
#
#  1) First, the IP address assigned to us is searched and
#     the associated command(s) are executed.
#
#  2) If the IP Address is not found, then the label name specified at    
#     PPP startup time is searched and the associated command(s) 
#     are executed.
#
#  3) If neither of the above are found then commands under the label
#     'MYADDR:' are executed.
#
#########################################################################=    
#
# This section is used for the "demand" configuration in
#   /etc/ppp/ppp.conf:
demand:
  delete ALL
  add 0 0 HISADDR
#
# All other configurations in /etc/ppp/ppp.conf use this:
#
MYADDR:
add 0 0 HISADDR
########################################################################
# End of /etc/ppp/ppp.linkup
--------------2AC1D9BD24A660206E8C819F
Content-Type: text/plain; charset=us-ascii; name="ppp.out"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="ppp.out"

Oct 18 22:01:48 firewall ppp[477]:Warning: -alias is deprecated
-alias is deprecated
Working in auto mode
Using interface: tun0
Warning: Add route failed: default already exists
Oct 18 22:01:49 firewall ppp[447]: Warning: Add route failed: default already exists

--------------2AC1D9BD24A660206E8C819F--



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?39EE8106.85659CA1>