ppp connection goes down - requires reboot

2012-07-12 Thread David Banning
Lately I have a problem where the ppp connection goes down. 
Watching the log I see the following;

Jul 12 09:54:58 3s1 ppp[30841]: tun0: Phase: deflink: Connected!
Jul 12 09:54:58 3s1 ppp[30841]: tun0: Phase: deflink: opening - dial
Jul 12 09:54:58 3s1 ppp[30841]: tun0: Phase: deflink: dial - carrier
Jul 12 09:55:12 3s1 ppp[31114]: Phase: Using interface: tun0
Jul 12 09:55:12 3s1 ppp[31114]: Phase: deflink: Created in closed state
Jul 12 09:55:12 3s1 ppp[31114]: tun0: Command: default: disable ipv6cp
Jul 12 09:55:12 3s1 ppp[31114]: tun0: Command: default: set dial
Jul 12 09:55:12 3s1 ppp[31114]: tun0: Command: default: set login
Jul 12 09:55:12 3s1 ppp[31114]: tun0: Command: default: set ifaddr 
209.161.205.12 206.221.248.4
Jul 12 09:55:12 3s1 ppp[31114]: tun0: Command: default: set ifaddr 10.0.0.1/0 
10.0.0.2/0
Jul 12 09:55:12 3s1 ppp[31114]: tun0: Command: default: add default HISADDR
Jul 12 09:55:12 3s1 ppp[31114]: tun0: Command: default: nat enable yes
Jul 12 09:55:12 3s1 ppp[31114]: tun0: Command: default: set device PPPoE:fxp0
Jul 12 09:55:12 3s1 ppp[31114]: tun0: Command: default: set mru 1492
Jul 12 09:55:12 3s1 ppp[31114]: tun0: Command: default: set mtu 1492
Jul 12 09:55:12 3s1 ppp[31114]: tun0: Command: default: set authname [login was 
here]
Jul 12 09:55:12 3s1 ppp[31114]: tun0: Command: default: set authkey 
Jul 12 09:55:12 3s1 ppp[31114]: tun0: Command: default: set log Phase tun 
command
Jul 12 09:55:12 3s1 ppp[31114]: tun0: Command: default: disable ipv6cp
Jul 12 09:55:12 3s1 ppp[31114]: tun0: Command: default: set dial
Jul 12 09:55:12 3s1 ppp[31114]: tun0: Command: default: set login
Jul 12 09:55:12 3s1 ppp[31114]: tun0: Command: default: set ifaddr 
209.161.205.12 206.221.248.4
Jul 12 09:55:12 3s1 ppp[31114]: tun0: Command: default: set ifaddr 10.0.0.1/0 
10.0.0.2/0
Jul 12 09:55:12 3s1 ppp[31114]: tun0: Command: default: add default HISADDR
Jul 12 09:55:12 3s1 ppp[31114]: tun0: Command: default: nat enable yes
Jul 12 09:55:12 3s1 ppp[31115]: tun0: Phase: PPP Started (ddial mode).
Jul 12 09:55:12 3s1 ppp[31115]: tun0: Phase: bundle: Establish
Jul 12 09:55:12 3s1 ppp[31115]: tun0: Phase: deflink: closed - opening
Jul 12 09:55:13 3s1 ppp[31115]: tun0: Phase: deflink: Connected!
Jul 12 09:55:13 3s1 ppp[31115]: tun0: Phase: deflink: opening - dial
Jul 12 09:55:13 3s1 ppp[31115]: tun0: Phase: deflink: dial - carrier
Jul 12 09:55:18 3s1 ppp[31115]: tun0: Phase: deflink: Disconnected!
Jul 12 09:55:18 3s1 ppp[31115]: tun0: Phase: deflink: carrier - hangup
Jul 12 09:55:18 3s1 ppp[31115]: tun0: Phase: deflink: Connect time: 5 secs: 0 
octets in, 0 octets out
Jul 12 09:55:18 3s1 ppp[31115]: tun0: Phase: deflink: 0 packets in, 0 packets 
out
Jul 12 09:55:18 3s1 ppp[31115]: tun0: Phase:  total 0 bytes/sec, peak 0 
bytes/sec on Thu Jul 12 09:55:13 2012
Jul 12 09:55:18 3s1 ppp[31115]: tun0: Phase: deflink: hangup - opening
Jul 12 09:55:18 3s1 ppp[31115]: tun0: Phase: deflink: Enter pause (30) for 
redialing.

I shutdown ppp and restart it with no luck.  I shutoff modem and 
reboot it and wait for connection light to go solid - still no go. 

I called ISP and they say there is no problem.
I try to login to the ISP with a windows box and am successful.

Having no luck connecting with my server, I reboot, and all is fine. 

What could it be about rebooting the server that allows connection
where otherwise it is not possible?

Any ideas where I can look for answers?

my ppp.conf follows;

default: # or name_of_service_provider
  set device PPPoE:fxp0 # replace xl1 with your ethernet device
  set mru 1492
  set mtu 1492
  set authname ***
  set authkey ***
  set log Phase tun command # you can add more detailed logging if you wish
  disable ipv6cp
  set dial
  set login
  set ifaddr 209.161.205.12 206.221.248.4
  set ifaddr 10.0.0.1/0 10.0.0.2/0
  add default HISADDR
  nat enable yes 


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: ppp connection goes down - requires reboot

2012-07-12 Thread Mike Tancsa
On 7/12/2012 10:18 AM, David Banning wrote:
 Lately I have a problem where the ppp connection goes down. 
 Watching the log I see the following;
 Jul 12 09:55:13 3s1 ppp[31115]: tun0: Phase: deflink: opening - dial
 Jul 12 09:55:13 3s1 ppp[31115]: tun0: Phase: deflink: dial - carrier
 Jul 12 09:55:18 3s1 ppp[31115]: tun0: Phase: deflink: Disconnected!
 Jul 12 09:55:18 3s1 ppp[31115]: tun0: Phase: deflink: carrier - hangup
 Jul 12 09:55:18 3s1 ppp[31115]: tun0: Phase: deflink: Connect time: 5 secs: 0 
 octets in, 0 octets out


5 seconds seems like a pretty tight for it to give up. Do you have any
other defaults in your ppp.conf not shown below ?

also add

 enable echo
 disable vjcomp
 set lqrperiod 10
 set cd 10

and when its not working, try

tcpdump -nei fxp0

You should see responses to your PADI requests from the remote BAS.
Also get rid of the 209.161.205.12 line. Typically your ISP will assign
you the static IP out of RADIUS and you dont need to specify it.

---Mike

 
 I shutdown ppp and restart it with no luck.  I shutoff modem and 
 reboot it and wait for connection light to go solid - still no go. 
 

 
 my ppp.conf follows;
 
 default: # or name_of_service_provider
   set device PPPoE:fxp0 # replace xl1 with your ethernet device
   set mru 1492
   set mtu 1492
   set authname ***
   set authkey ***
   set log Phase tun command # you can add more detailed logging if you 
 wish
   disable ipv6cp
   set dial
   set login
   set ifaddr 209.161.205.12 206.221.248.4
   set ifaddr 10.0.0.1/0 10.0.0.2/0
   add default HISADDR
   nat enable yes 
 
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
 
 


-- 
---
Mike Tancsa, tel +1 519 651 3400
Sentex Communications, m...@sentex.net
Providing Internet services since 1994 www.sentex.net
Cambridge, Ontario Canada   http://www.tancsa.com/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


How to configure ppp connection

2010-08-23 Thread Jakub Nowacki
Hello!

(First of all - forgive me my language, I'am form Poland)
I'am new in FreeBSD, but I have used Linux for a few year. 
I have got mobile modem: Huawei e1750c. As far as I know it is supported by 
u3g driver. On Linux I use wvdial as a dialer, and there are no problems with 
connection. On FreeBSD I just can't find propper ppp.conf, however I spend many 
hours googling and trying some. 

---
There are data needed to establish connection:
ASP: internet
user: 
password: 
phone: *99#
---

my wvdial (Linux) config file:
Modem = /dev/ttyUSB0
Baud = 57600
Init1 = ATH
Init2 = ATE1
Init3 = AT+CGDCONT=1,IP,internet
Dial Command = ATD
Phone = *99#
Stupid mode = yes
Username = blank
Password = blank
Auto DNS = yes
---

There is one of ppp.conf I tried:
default:
set log Phase Chat LCP IPCP CCP tun command
ident user-ppp VERSION (built COMPILATIONDATE)

set device /dev/cuaU0.0

set speed 115200
set dial ABORT BUSY TIMEOUT 2 \
\\ \
AT OK-AT-OK \
AT+CFUN=1 OK-AT-OK \
AT+CMEE=2 OK-AT-OK \
AT+CSQ OK \
AT+CGDCONT=1,\\\IP\\\,\\\internet\\\ OK \
AT+CGACT? OK-AT-OK \
AT+CGATT? OK \
AT+CGCLASS? OK \
AT+COPS? OK \
ATD*99# CONNECT

set timeout 180
enable dns
set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
add default HISADDR
---

After i plug modem i got:
ugen4.2: HUAWEI Technology at usbus4
ugen4.2: HUAWEI Technology at usbus4 (disconnected)
ugen4.2: HUAWEI Technology at usbus4
[b]u3g0: HUAWEI Technology HUAWEI Mobile, class 0/0, rev 2.00/0.00, addr 2 
on usbus4
u3g0: Found 3 ports.[/b]
umass0: HUAWEI Technology HUAWEI Mobile, class 0/0, rev 2.00/0.00, addr 2 on 
usbus4
umass0:  SCSI over Bulk-Only; quirks = 0x
umass0:0:0:-1: Attached to scbus0
umass1: HUAWEI Technology HUAWEI Mobile, class 0/0, rev 2.00/0.00, addr 2 on 
usbus4
umass1:  SCSI over Bulk-Only; quirks = 0x
(probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 
(probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error
(probe0:umass-sim0:0:0:0): SCSI status: Check Condition
(probe0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present)
cd0 at umass-sim0 bus 0 scbus0 target 0 lun 0
cd0: HUAWEI Mass Storage 2.31 Removable CD-ROM SCSI-2 device 
cd0: 40.000MB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not present
umass1:1:1:-1: Attached to scbus1
(probe0:umass-sim1:1:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 
(probe0:umass-sim1:1:0:0): CAM status: SCSI Status Error
(probe0:umass-sim1:1:0:0): SCSI status: Check Condition
(probe0:umass-sim1:1:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present)
da0 at umass-sim1 bus 1 scbus1 target 0 lun 0
da0: HUAWEI SD Storage 2.31 Removable Direct Access SCSI-2 device 
da0: 40.000MB/s transfers
da0: Attempt to query device size failed: NOT READY, Medium not present
---

when i try to use ppp default and then dial i got:
# ppp default
Loading /lib/libalias_cuseeme.so
Loading /lib/libalias_ftp.so
Loading /lib/libalias_irc.so
Loading /lib/libalias_nbt.so
Loading /lib/libalias_pptp.so
Loading /lib/libalias_skinny.so
Loading /lib/libalias_smedia.so
Working in interactive mode
Using interface: tun0
Warning: Bad label in /etc/ppp/ppp.conf (line 2) - missing colon
Warning: Bad label in /etc/ppp/ppp.conf (line 2) - missing colon
ppp ON localhost dial
Warning: deflink: /dev/cuad1: Bad file descriptor
Warning: deflink: /dev/cuad0: Bad file descriptor
---

Nothing happens, there is still no connection.

Some device nodes are created after I plug a modem. There is diff result
of listed /dev pre and post pluging:
 ja...@iac-deb:~$ diff /media/disk/pre_dev /media/disk/post_dev 
17a18
 cd0
20a22,30
 cuaU0.0
 cuaU0.0.init
 cuaU0.0.lock
 cuaU0.1
 cuaU0.1.init
 cuaU0.1.lock
 cuaU0.2
 cuaU0.2.init
 cuaU0.2.lock
23a34
 da0
43a55,56
 pass0
 pass1
51a65,73
 ttyU0.0
 ttyU0.0.init
 ttyU0.0.lock
 ttyU0.1
 ttyU0.1.init
 ttyU0.1.lock
 ttyU0.2
 ttyU0.2.init
 ttyU0.2.lock
77a100
 ugen4.2
---

I would be very gratefull if You could help me to configure ppp.conf.
FreeBSD without internt connection is useless for me... :(

Thanks,
Jakub Nowacki.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: How to configure ppp connection

2010-08-23 Thread Polytropon
On Mon, 23 Aug 2010 20:05:32 +0200, Jakub Nowacki poczta.jnowa...@gmail.com 
wrote:
 Hello!
 
 (First of all - forgive me my language, I'am form Poland)

Dobre. :-)



 I'am new in FreeBSD, but I have used Linux for a few year. 

As a first note, know that FreeBSD has *excellent* manpages. Know
the apropos and man commands, as they will always help you.



 I have got mobile modem: Huawei e1750c. As far as I know it is supported by 
 u3g driver. On Linux I use wvdial as a dialer, and there are no problems with 
 connection. On FreeBSD I just can't find propper ppp.conf, however I spend 
 many 
 hours googling and trying some. 

You don't need google as a means of OS documentation. :-)

First, check /etc/ppp/ppp.conf which is the PPP configuration file.
Also, read man ppp. I have used ppp.conf in the past for
dealing with PPPoE, and it worked without any problems.



 when i try to use ppp default and then dial i got:

You should define your own label for the connection in ppp.conf, e. g. the
name of the provider (doesn't have to be very verbose).



 # ppp default
 Warning: Bad label in /etc/ppp/ppp.conf (line 2) - missing colon
 Warning: Bad label in /etc/ppp/ppp.conf (line 2) - missing colon

Check those.



 ppp ON localhost dial
 Warning: deflink: /dev/cuad1: Bad file descriptor
 Warning: deflink: /dev/cuad0: Bad file descriptor

PPP tries to access regular serial lines.



 Nothing happens, there is still no connection.

Sorry, I don't know enough about wireless network to be more specific,
but allow me this guess: If your connection requires PPPoE, you could
code something like this:

blah:
set device PPPoE:device
set authname accountname
set authkey password
set dial
set login
add default HISADDR

Then, ppp blah would be used for manual dialing. I'm not sure in how
far you are required to code AT dialing sequences.



 Some device nodes are created after I plug a modem. There is diff result
 of listed /dev pre and post pluging:
  ja...@iac-deb:~$ diff /media/disk/pre_dev /media/disk/post_dev 
 17a18
  cd0
 20a22,30
  cuaU0.0
  cuaU0.0.init
  cuaU0.0.lock
  cuaU0.1
  cuaU0.1.init
  cuaU0.1.lock
  cuaU0.2
  cuaU0.2.init
  cuaU0.2.lock
 23a34
  da0
 43a55,56
  pass0
  pass1
 51a65,73
  ttyU0.0
  ttyU0.0.init
  ttyU0.0.lock
  ttyU0.1
  ttyU0.1.init
  ttyU0.1.lock
  ttyU0.2
  ttyU0.2.init
  ttyU0.2.lock
 77a100
  ugen4.2
 ---
 
 I would be very gratefull if You could help me to configure ppp.conf.

The ttyU* and cuaU* devices obviously belong to the modem.



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: How to configure ppp connection

2010-08-23 Thread Jakub Nowacki
Dnia poniedziałek, 23 sierpnia 2010 o 21:03:32 Polytropon napisał(a):

 
  ppp ON localhost dial
  Warning: deflink: /dev/cuad1: Bad file descriptor
  Warning: deflink: /dev/cuad0: Bad file descriptor
 
 PPP tries to access regular serial lines.
 
  Nothing happens, there is still no connection.
 
 Sorry, I don't know enough about wireless network to be more specific,
 but allow me this guess: If your connection requires PPPoE, you could
 code something like this:
 
   blah:
   set device PPPoE:device
   set authname accountname
   set authkey password
   set dial
   set login
   add default HISADDR
 
 Then, ppp blah would be used for manual dialing. I'm not sure in how
 far you are required to code AT dialing sequences.
 
It's broadband, mobile (celluar?) connection via Play (www.playmobile.pl)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Normal CPU usage with a PPP connection

2008-02-26 Thread Nikos Vassiliadis
On Sunday 24 February 2008 14:34:37 Dylan Smith wrote:
 Hey guys, i'm running 6.3-R with (i think) userland ppp to connect to my
 ADSL provider over PPPoE.
 I build a number of graphs(mrtg) for system stats and i am noticing that
 under heavy load on my ppp connection, that is sustained 150KB/s for an
 hour or so my cpu usage, based on my graph, hovers around 20% (haven't
 looked at it in top yet but if there isn't a simple solution/reason for
 this i will look into what sort of usage it is). 

You should check top and tcpdump, it might be a big number of small
packets causing the load.

 The box is a home 
 router/server so at any 1 time isn't doing anything else that i can see
 would account for this. I also noticed that this usage increase does not
 occur with traffic coming/going on the inward facing interface, which
 regularly has transfer speeds around 10 MB/s.

 I'm running a AMD X2 3800+ with 2GB ram. Is this sort of usage normal?

Can't really tell if it's normal, but it is known that userland ppp uses
much resources. I have seen it too using 20% CPU time running on
a much slower machine(I faintly remember that it was a Pentium
Celeron at 300MHz) and a much slower(384/128?) ADSL line.

 Is there something i can do to bring it down?

Fortunately yes, you could use net/mpd. The CPU load then,
will probably be near zero for normal traffic, the 150KB/s you
mention. If a million of small packets arrive at your router the
load will be higher, nevertheless orders of magnitude lower
than the load caused by userland ppp.

HTH, Nikos

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Normal CPU usage with a PPP connection

2008-02-26 Thread Ted Mittelstaedt


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Nikos
 Vassiliadis
 Sent: Tuesday, February 26, 2008 1:49 AM
 To: freebsd-questions@freebsd.org
 Cc: Dylan Smith
 Subject: Re: Normal CPU usage with a PPP connection


 On Sunday 24 February 2008 14:34:37 Dylan Smith wrote:
  Hey guys, i'm running 6.3-R with (i think) userland ppp to connect to my
  ADSL provider over PPPoE.
  I build a number of graphs(mrtg) for system stats and i am noticing that
  under heavy load on my ppp connection, that is sustained 150KB/s for an
  hour or so my cpu usage, based on my graph, hovers around 20% (haven't
  looked at it in top yet but if there isn't a simple solution/reason for
  this i will look into what sort of usage it is).

 You should check top and tcpdump, it might be a big number of small
 packets causing the load.

  The box is a home
  router/server so at any 1 time isn't doing anything else that i can see
  would account for this. I also noticed that this usage increase does not
  occur with traffic coming/going on the inward facing interface, which
  regularly has transfer speeds around 10 MB/s.
 
  I'm running a AMD X2 3800+ with 2GB ram. Is this sort of usage normal?

 Can't really tell if it's normal, but it is known that userland ppp uses
 much resources. I have seen it too using 20% CPU time running on
 a much slower machine(I faintly remember that it was a Pentium
 Celeron at 300MHz) and a much slower(384/128?) ADSL line.

  Is there something i can do to bring it down?

 Fortunately yes, you could use net/mpd. The CPU load then,
 will probably be near zero for normal traffic, the 150KB/s you
 mention. If a million of small packets arrive at your router the
 load will be higher, nevertheless orders of magnitude lower
 than the load caused by userland ppp.


Or, you can ignore it?  You still have 80% of the CPU doing nothing

Ted

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Normal CPU usage with a PPP connection

2008-02-24 Thread Dylan Smith
Hey guys, i'm running 6.3-R with (i think) userland ppp to connect to my
ADSL provider over PPPoE.
I build a number of graphs(mrtg) for system stats and i am noticing that
under heavy load on my ppp connection, that is sustained 150KB/s for an
hour or so my cpu usage, based on my graph, hovers around 20% (haven't
looked at it in top yet but if there isn't a simple solution/reason for
this i will look into what sort of usage it is). The box is a home
router/server so at any 1 time isn't doing anything else that i can see
would account for this. I also noticed that this usage increase does not
occur with traffic coming/going on the inward facing interface, which
regularly has transfer speeds around 10 MB/s.

I'm running a AMD X2 3800+ with 2GB ram. Is this sort of usage normal?
Is there something i can do to bring it down?

Dylan
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Running scripts after ppp connection

2006-01-17 Thread Adam Clark
Hey all,

  I was wondering if there was any way for ppp to run scripts after
connections are built or torn down.

 

I have things like a dynamic dns updater script and a vpn script that
needs to run once the external ip changes on me.

 

Thanks

 

 

 



Adam Clark
Network Administrator

National Gallery of Victoria
PO Box 7259 Melbourne Vic 8004
Telephone: +61 3 8620 2369 
Fax: +61 3 8620 2565
www.ngv.vic.gov.au

Keep informed of the latest NGV exhibitions, special events and programs at The 
Ian Potter Centre: NGV Australia and NGV International by subscribing to [EMAIL 
PROTECTED], the NGV's free e-newsletter.

DISCLAIMER: This email and any files transmitted with it are confidential and 
intended solely for [EMAIL PROTECTED] If you are not the named addressee you 
should not disseminate, copy or alter this email. WARNING: Although National 
Gallery of Victoria has taken reasonable precautions to ensure no viruses are 
present in this email, the organisation cannot accept responsibility for any 
loss or damage arising from the use of this email or attachment.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Running scripts after ppp connection

2006-01-17 Thread Lowell Gilbert
Adam Clark [EMAIL PROTECTED] writes:

   I was wondering if there was any way for ppp to run scripts after
 connections are built or torn down.

According to man ppp, that's what /etc/ppp/ppp.linkup is for.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: PPP Connection.

2005-02-25 Thread Jonathan Chen
On Fri, Feb 25, 2005 at 12:11:34PM -0500, Peterhin wrote:
 I have 5.3 installed, and am trying to get my dial-up going.
 In the handbook under 21.2.1.2 when   I try to do a 
 'cd /dev'
 'sh MAKEDEV tun0'
  I get can't open makedev: No such file or directory

The 5.x series uses a devfs filesystem which creates devices on the
fly. You don't have to make the devices manually anymore.

 I also tried using G. Lehey instructions from his book, I get to the 
 point where  the external modem dials at reboot, but no connection. I 
 have looked in the log files and it looks like Authentication failure 
 is my problem. 

Username and password is incorrect? Post us the actual contents of the
logs and your ppp.conf (with the username/password blanked out) and we
will have a better idea just what is going wrong with your system.
-- 
Jonathan Chen [EMAIL PROTECTED]
--
char *p=char *p=%c%s%c;main(){printf(p,34,p,34);};main(){printf(p,34,p,34);}
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: PPP Connection.

2005-02-25 Thread Hauan David A


-Original Message-
From: Jonathan Chen [mailto:[EMAIL PROTECTED]
Sent: Friday, February 25, 2005 11:09 AM
To: Peterhin
Cc: freebsd-questions@freebsd.org
Subject: Re: PPP Connection.


On Fri, Feb 25, 2005 at 12:11:34PM -0500, Peterhin wrote:
 I have 5.3 installed, and am trying to get my dial-up going.
 In the handbook under 21.2.1.2 when   I try to do a 
 'cd /dev'
 'sh MAKEDEV tun0'
  I get can't open makedev: No such file or directory

The 5.x series uses a devfs filesystem which creates devices on the
fly. You don't have to make the devices manually anymore.

 I also tried using G. Lehey instructions from his book, I get to the 
 point where  the external modem dials at reboot, but no connection. I 
 have looked in the log files and it looks like Authentication failure 
 is my problem. 

Username and password is incorrect? Post us the actual contents of the
logs and your ppp.conf (with the username/password blanked out) and we
will have a better idea just what is going wrong with your system.
-- 

Note, if you have special characters in the username or password
you need o escape them i.e., [EMAIL PROTECTED] would be [EMAIL PROTECTED]
However, this is not always the case depending on the isp.
Good luck.

dave 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: PPP Connection.

2005-02-25 Thread Peterhin
On February 25, 2005 14:09, you wrote:
 On Fri, Feb 25, 2005 at 12:11:34PM -0500, Peterhin wrote:
  I have 5.3 installed, and am trying to get my dial-up going.
  In the handbook under 21.2.1.2 when I try to do a
  'cd /dev'
  'sh MAKEDEV tun0'
   I get can't open makedev: No such file or directory

 The 5.x series uses a devfs filesystem which creates devices on the
 fly. You don't have to make the devices manually anymore.

  I also tried using G. Lehey instructions from his book, I get to
  the point where  the external modem dials at reboot, but no
  connection. I have looked in the log files and it looks like
  Authentication failure is my problem.

OK, finger trouble on my part I have a connection now.

 Username and password is incorrect? Post us the actual contents of
 the logs and your ppp.conf (with the username/password blanked out)
 and we will have a better idea just what is going wrong with your
 system.
I have a good connection however if I try to disconnect by typing
at the 'PPP ON localhost' close
'PPP ON Localhost
or use the 'q'
I get back to the #
however the modem has not disconnected. I did a 'ping' to confirm on 
(ttyv1) 
-- 
Peter

Civil Liberties are at the whim of those in power


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: PPP Connection.

2005-02-25 Thread Andrew L. Gould
On Friday 25 February 2005 02:12 pm, Peterhin wrote:
 On February 25, 2005 14:09, you wrote:
  On Fri, Feb 25, 2005 at 12:11:34PM -0500, Peterhin wrote:
   I have 5.3 installed, and am trying to get my dial-up going.
   In the handbook under 21.2.1.2 when   I try to do a
   'cd /dev'
   'sh MAKEDEV tun0'
I get can't open makedev: No such file or directory
 
  The 5.x series uses a devfs filesystem which creates devices on the
  fly. You don't have to make the devices manually anymore.
 
   I also tried using G. Lehey instructions from his book, I get to
   the point where  the external modem dials at reboot, but no
   connection. I have looked in the log files and it looks like
   Authentication failure is my problem.

 OK, finger trouble on my part I have a connection now.

  Username and password is incorrect? Post us the actual contents of
  the logs and your ppp.conf (with the username/password blanked out)
  and we will have a better idea just what is going wrong with your
  system.

 I have a good connection however if I try to disconnect by typing
 at the 'PPP ON localhost' close
 'PPP ON Localhost
 or use the 'q'
 I get back to the #
 however the modem has not disconnected. I did a 'ping' to confirm on
 (ttyv1)

Is ppp still active in the background?  What does 'ps ax | grep ppp' 
return?

I used to kill ppp using a hangup python script:


#!/usr/local/bin/python
# /usr/local/bin/hangup.py

import os, string, sys

a = 'ps ax | grep ppp'
b = os.popen(a).readlines()
c = b[0]
d = string.split(c)
os.popen('kill ' + d[0])



Best regards,

Andrew Gould
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


PPP Connection.

2005-02-25 Thread Peterhin
OK here is what I get when I 
'ps ax | grep ppp'

'202 ?? ls 0:00.04 /usr/sbin/ppp  -quiet -auto -nat papchap'

FYI. the modem does disconnect after the '300sec'.
and I can re-dial to get the connection again, so that all works fine. 
Also I think what is happening is that on boot-up once it gets to
'looking for host time.nrc.ca and service NTP' the modem starts, so that 
explains why it starts at boot-up, it needs to satisfy that call. 

Part of this stp learning curve for a newbie like me is also 
learning the logic behind the sequencing of different activities.

Now having said that, a further question, and I have read the man pages, 
handbook, and sundry other books, is I can't seem to understand how I 
can setup 'ppp' to dial out manually. (ie. only when I want it to, as I 
have another computer that shares the one phone line that  I have 
avail. for this purpose).
If you could shed some light on this function I would be very 
appreciative.

As for your suggestion:  'I used to kill ppp using a hangup python 
script:'
At this stage that is over my head.

Peter

Civil Liberties are at the whim of those in power


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: PPP Connection.

2005-02-25 Thread Andrew L. Gould
On Friday 25 February 2005 03:47 pm, Peterhin wrote:
 OK here is what I get when I
 'ps ax | grep ppp'

 '202 ?? ls 0:00.04 /usr/sbin/ppp  -quiet -auto -nat papchap'

 FYI. the modem does disconnect after the '300sec'.
 and I can re-dial to get the connection again, so that all works
 fine. Also I think what is happening is that on boot-up once it gets
 to 'looking for host time.nrc.ca and service NTP' the modem starts,
 so that explains why it starts at boot-up, it needs to satisfy that
 call.

 Part of this stp learning curve for a newbie like me is also
 learning the logic behind the sequencing of different activities.

 Now having said that, a further question, and I have read the man
 pages, handbook, and sundry other books, is I can't seem to
 understand how I can setup 'ppp' to dial out manually. (ie. only when
 I want it to, as I have another computer that shares the one phone
 line that  I have avail. for this purpose).
 If you could shed some light on this function I would be very
 appreciative.

If you have 2 computers needing to dial-out, you might consider sharing 
the ppp connection.  The online handbook covers this at:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/userppp.html


 As for your suggestion:  'I used to kill ppp using a hangup python
 script:'
 At this stage that is over my head.

 Peter

 Civil Liberties are at the whim of those in power
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Can't reach to a FreeBSD 5.3 machine trough a ppp connection

2004-11-24 Thread Mauricio Brunstein
 
Hi!

I'm installing a machine that will be a firewall and a samba server for a 4
people office. The machine has 2 NICs and is connecting to the Internet
using PPPoE. It is using pf and ALTQ. Initially there was problems to
establish the PPPoE connection in the office, using the same ppp.conf that
previously worked in my lab (only changing the username/passwd). Here is my
ppp.conf file:

 server:~ $ sudo cat /etc/ppp/ppp.conf
default:
 set log Phase Chat LCP IPCP CCP tun command
 set device PPPoE:fxp0 
 set mtu 1492
 set mru 1492
 enable mssfixup
 set speed sync
 disable acfcomp protocomp
 deny acfcomp
 set authname x
 set authkeyx
 add default HISADDR
 enable lqr
 set lqrperiod 25
 enable dns

I got some messages in ppp.log like this one, 

Nov 23 15:00:35 server ppp[533]: tun0: LCP: deflink: -- Protocol 0x8057
(Internet Protocol V6 Control Pro
tocol) was rejected!
Nov 23 15:00:41 server ppp[533]: tun0: Phase: deflink: IPV6CP protocol
reject closes IPV6CP !

After that added  disable ipv6cp, and commented out  enable lqr and
set lqrperiod 25 and the connection didn't drop anymore.  It seems that
this provider doesn't support lqr.

It appeared that everything was working fine, but when I tried to use ssh to
login to this box from outside was not possible.  After some time of issuing
the ssh command, get the following error:
ssh: connect to host dsuaya.ath.cx port 22: Operation timed out.

After some tests, I discovered that changing router_enable to YES in the
/etc/rc.conf  solved the problem. 

But in the section 21.2.1.5 Final System Configuration of the FreeBSD
handbook  states:

Make sure the router program set to NO with following line in your
/etc/rc.conf:
router_enable=NO
It is important that the routed daemon is not started (it is by default), as
routed tends to delete the default routing table entries created by ppp.

So, is there another manner to resolve this? Note that I'm always able to
establish connections from this box to a host in the Internet but I can't
establish a connection from that hosts to this one if router_enable=NO.

Thanks in advance,

Mauricio.

Some data of interest:

server:~ $ uname -a
FreeBSD server.estudio 5.3-RELEASE-p1 FreeBSD 5.3-RELEASE-p1 #1: Tue Nov 23
02:13:24 ART 2004 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERICWALTQ
i386
server:~ $


server:~ $ cat /etc/rc.conf
# -- sysinstall generated deltas -- # Sun Nov 21 13:07:41 2004
# Created: Sun Nov 21 13:07:41 2004
# Enable network daemons for user convenience.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# This file now contains just the overrides from /etc/defaults/rc.conf.
#
hostname=server.estudio
ifconfig_rl0=inet 192.168.2.1  netmask 255.255.255.0
netd_enable=YES
saver=dragon
scrnmap=NO
sshd_enable=YES
sshd_flags=-4 -p 22
usbd_enable=YES
network_interfaces=lo0 tun0 rl0
fconfig_tun0=
router_enable=YES# remember to disable this!
#router_enable=NO  # Set to YES to enable a routing daemon.
router=/sbin/routed   # Name of routing daemon to use if enabled.
router_flags=-q   # Flags for routing daemon.

gateway_enable=YES  # Set to YES if this host will be a gateway
pf_enable=YES # Enable PF (load module if required)
pf_rules=/etc/pf.conf # rules definition file for pf
pf_flags= # additional flags for pfctl startup
#pflog_enable=YES  # start pflogd(8)
#pflog_logfile=/var/log/pflog  # where pflogd should store the logfile
#pflog_flags=  # additional flags for pflogd startup

inetd_enable=YES   # Run the network daemon dispatcher
(YES/NO).
inetd_program=/usr/sbin/inetd # path to inetd, if you want a different
one.
inetd_flags=-wW -C 60 # Optional flags to inetd

server:~ $

server:~ $ cat /etc/start_if.tun0
ppp -ddial default; /usr/local/etc/ez-ipupdate.conf


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Monitoring a PPP Connection

2003-11-19 Thread Doug Hardie
I have a device that connects via PPP on a phone line (V.90) to my ISP. 
 However, I am seeing significant delays on the connection but can't 
find a cause.  I am looking for something that will monitor the phone 
line - like tcpdump for a phone line.  I know that there are some 
expensive devices out there that do that, but this doesn't warrant 
spending that much.  I don't see any easy way to capture both the 
uplink and downlink signals though.  Regular modems only monitor the 
downlink side.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


setting up a second ppp connection

2003-09-13 Thread David Banning
Sometimes my pppoe connection goes down, and since I want to find
out about it right away, I was thinking it would be helpful to have
my freebsd box connect to the net via a dialup line, and then 
email my cell phone that the connection is down. I don 't want to 
disable the pppoe connection which is still attempting to connect.

Any idea if something like this is possible? 

-- 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


SOLVED: user PPP connection problems.

2003-09-10 Thread Tadimeti Keshav
Thanks to Heiko, Rex, David and Mark,
I got my internet connection working. Problem was, I
didn't know which port the modem was connected to.
I tried /dev/cuaa0  it worked.

Thanks guys
Sincerely
Keshav


Want to chat instantly with your online friends?  Get the FREE Yahoo!
Messenger http://mail.messenger.yahoo.co.uk
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: User PPP connection problems

2003-09-09 Thread David Banning
On Tue, Sep 09, 2003 at 04:03:33AM +0100, Tadimeti Keshav wrote:
 Hi all,
 I a newbie here. 
 I compiled the kernel with COM3 and COM4 enabled.
 
 I tried connecting to the internet but failed.
 I am pasting the relavant portion of /var/ppp/ppp.log.
 Please help!!
 Thanks in advance
 Keshav

I agree with Mark. It looks like your box is not seeing the modem.
You could try cu -l cuaa0 for com1, cuaa0 for com2.   
Then you can try some hayes command from the prompt.
Try ATZ (reset). AT to check OK response. 
Then try ATDT12345678 for dialing (the 12345678 is to be replaced
with a phone number.)

Once you have the right port and you are talking to your modem, then
we can look at the ppp.log again.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: User PPP connection problems

2003-09-09 Thread Heiko Recktenwald
 Try ATZ (reset). AT to check OK response.
 Then try ATDT12345678 for dialing (the 12345678 is to be replaced
 with a phone number.)

 Once you have the right port and you are talking to your modem, then
 we can look at the ppp.log again.

There once was a sample in /etc/ppp, it has moved, the Gods have decided,
somewhere to /usr/share/examples (IMHO)


H.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


User PPP connection problems

2003-09-08 Thread Tadimeti Keshav
Hi all,
I a newbie here. 
I compiled the kernel with COM3 and COM4 enabled.

I tried connecting to the internet but failed.
I am pasting the relavant portion of /var/ppp/ppp.log.
Please help!!
Thanks in advance
Keshav
 
Sep  8 22:25:12  ppp[220]: Phase: Using interface:
tun0
 
Sep  8 22:25:12  ppp[220]: Phase: deflink: Created in
closed state
 
Sep  8 22:25:12  ppp[220]: tun0: Command: default:
ident user-ppp VERSION (built COMPILATIONDATE)
 
Sep  8 22:25:12  ppp[220]: tun0: Command: default: set
device /dev/cuaa1
 
Sep  8 22:25:12  ppp[220]: tun0: Command: default: set
speed 57600 

 Sep  8 22:25:12  ppp[220]: tun0: Command: default:
set dial ABORT BUSY ABORT NO\sCARRIER TIMEOUT 5   
 AT OK-AT-OK ATE1Q0 OK \dATDT\T TIMEOUT 40
CONNECT 

 Sep  8 22:25:12  ppp[220]: tun0: Command: default:
set timeout 180
 
Sep  8 22:25:12  ppp[220]: tun0: Command: default:
enable dns
 
Sep  8 22:25:12  ppp[220]: tun0: Command: papchap: set
phone 5571090
 
Sep  8 22:25:12  ppp[220]: tun0: Command: papchap: set
authname dtitg
 
Sep  8 22:25:12  ppp[220]: tun0: Command: papchap: set
authkey  

 Sep  8 22:25:12  ppp[220]: tun0: Command: papchap:
set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
 
Sep  8 22:25:12  ppp[220]: tun0: Command: papchap: add
default HISADDR
 
Sep  8 22:25:12  ppp[221]: tun0: Phase: PPP Started
(background mode).
 
Sep  8 22:25:12  ppp[221]: tun0: Phase: bundle:
Establish
 
Sep  8 22:25:12  ppp[221]: tun0: Phase: deflink:
closed - opening
 
Sep  8 22:25:12  ppp[221]: tun0: Phase: deflink:
Connected!
 
Sep  8 22:25:12  ppp[221]: tun0: Phase: deflink:
opening - dial
 
Sep  8 22:25:12  ppp[221]: tun0: Chat: Phone: 5571090
 
Sep  8 22:25:12  ppp[221]: tun0: Chat: deflink: Dial
attempt 1 of 1
 
Sep  8 22:25:12  ppp[221]: tun0: Chat: Send: AT^M
 
Sep  8 22:25:12  ppp[221]: tun0: Chat: Expect(5): OK
 
Sep  8 22:25:17  ppp[221]: tun0: Chat: Expect timeout
 
Sep  8 22:25:17  ppp[221]: tun0: Chat: Send: AT^M 

 Sep  8 22:25:17  ppp[221]: tun0: Chat: Expect(5): OK
 
Sep  8 22:25:22  ppp[221]: tun0: Chat: Expect timeout
 
Sep  8 22:25:22  ppp[221]: tun0: Warning: Chat script
failed
 
Sep  8 22:25:22  ppp[221]: tun0: Phase: deflink: dial
- hangup
 
Sep  8 22:25:22  ppp[221]: tun0: Phase: deflink:
Disconnected!
 
Sep  8 22:25:22  ppp[221]: tun0: Phase: deflink:
Connect time: 10 secs: 0 octets in, 0 octets out
 
Sep  8 22:25:22  ppp[221]: tun0: Phase: deflink: : 0
packets in, 0 packets out
 
Sep  8 22:25:22  ppp[221]: tun0: Phase:  total 0
bytes/sec, peak 0 bytes/sec on Mon Sep  8 22:25:22
2003 

 Sep  8 22:25:22  ppp[221]: tun0: Phase: deflink:
hangup - closed
 
Sep  8 22:25:22  ppp[221]: tun0: Phase: bundle: Dead
 
Sep  8 22:25:22  ppp[221]: tun0: Phase: PPP Terminated
(normal).
 
Sep  8 22:25:22  ppp[221]: tun0: Chat: Parent notified
of failure
 
Sep  8 22:25:22  ppp[220]: tun0: Phase: Parent: Child
failed (errdead)


Want to chat instantly with your online friends?  Get the FREE Yahoo!
Messenger http://mail.messenger.yahoo.co.uk
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


User PPP connection problems

2003-09-08 Thread Mark C. Perreault
Hello,


I am also a newbie to FreeBSD, and have also had problems connecting to
an ISP. While I can actually make the connection, I cannot yet complete
a logon successfully ;(.

But I may have some insight as to your problem. Having looked at your
ppp.log, it appears that your system is never actually dialing the
number to connect.

 
These lines explain it:

 
Sep  8 22:25:12  ppp[221]: tun0: Chat: Phone: 5571090
This line is your ppp being informed of the phone number.
 
Sep  8 22:25:12  ppp[221]: tun0: Chat: deflink: Dial
attempt 1 of 1
 
Sep  8 22:25:12  ppp[221]: tun0: Chat: Send: AT^M
This line is the modem being sent an attention signal.
 
 
Sep  8 22:25:12  ppp[221]: tun0: Chat: Expect(5): OK
This line tells that ppp is expecting the modem to responds with an OK -
the standard response to an attention signal, and that it expects the
response in 5 seconds (this is due to your set dial command in
/etc/ppp/ppp.conf.)
 
 
Sep  8 22:25:17  ppp[221]: tun0: Chat: Expect timeout
Here, (5 seconds later), the system has not gotten the expected
response, so it times out and tries again.
 
Sep  8 22:25:17  ppp[221]: tun0: Chat: Send: AT^M 
 
 Sep  8 22:25:17  ppp[221]: tun0: Chat: Expect(5): OK
 
Sep  8 22:25:22  ppp[221]: tun0: Chat: Expect timeout
 
Sep  8 22:25:22  ppp[221]: tun0: Warning: Chat script
failed
 
The same thing has happened again - and the connection fails.
 
Sep  8 22:25:22  ppp[221]: tun0: Phase: deflink: dial
- hangup
 

 

Your problems are indicative of a configuration problem or possible a
modem hardware problem.

Do you ever actually hear the modem pick up the phone (do you get a dial
tone)? Can you post a copy of your ppp.conf file?


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: User PPP connection problems

2003-09-08 Thread RexFelis
Hello,

I am no expert, but I use PPP exclusively to set
up a connection to the net.

One thing I see different in your configuration
than in mine is this:

set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0
 0.0.0.0

If you are using PPP and you are doing dynamic IP
addressing, I succeed with this, instead:

set ifaddr 0 0 255.255.255.0 0.0.0.0

This, of course, would be found in
/etc/ppp/ppp.conf.  I suggest getting your hands
on a copy of The Complete FreeBSD.  That book has
saved my life many times.

Hope this helps a bit.



--- Tadimeti Keshav [EMAIL PROTECTED]
wrote:
 Hi all,
 I a newbie here. 
 I compiled the kernel with COM3 and COM4
 enabled.
 
 I tried connecting to the internet but failed.
 I am pasting the relavant portion of
 /var/ppp/ppp.log.
 Please help!!
 Thanks in advance
 Keshav
  
 Sep  8 22:25:12  ppp[220]: Phase: Using
 interface:
 tun0
  
 Sep  8 22:25:12  ppp[220]: Phase: deflink:
 Created in
 closed state
  
 Sep  8 22:25:12  ppp[220]: tun0: Command:
 default:
 ident user-ppp VERSION (built COMPILATIONDATE)
  
 Sep  8 22:25:12  ppp[220]: tun0: Command:
 default: set
 device /dev/cuaa1
  
 Sep  8 22:25:12  ppp[220]: tun0: Command:
 default: set
 speed 57600 
 
  Sep  8 22:25:12  ppp[220]: tun0: Command:
 default:
 set dial ABORT BUSY ABORT NO\sCARRIER TIMEOUT 5
   
  AT OK-AT-OK ATE1Q0 OK \dATDT\T TIMEOUT
 40
 CONNECT 
 
  Sep  8 22:25:12  ppp[220]: tun0: Command:
 default:
 set timeout 180
  
 Sep  8 22:25:12  ppp[220]: tun0: Command:
 default:
 enable dns
  
 Sep  8 22:25:12  ppp[220]: tun0: Command:
 papchap: set
 phone 5571090
  
 Sep  8 22:25:12  ppp[220]: tun0: Command:
 papchap: set
 authname dtitg
  
 Sep  8 22:25:12  ppp[220]: tun0: Command:
 papchap: set
 authkey  
 
  Sep  8 22:25:12  ppp[220]: tun0: Command:
 papchap:
 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0
 0.0.0.0
  
 Sep  8 22:25:12  ppp[220]: tun0: Command:
 papchap: add
 default HISADDR
  
 Sep  8 22:25:12  ppp[221]: tun0: Phase: PPP
 Started
 (background mode).
  
 Sep  8 22:25:12  ppp[221]: tun0: Phase: bundle:
 Establish
  
 Sep  8 22:25:12  ppp[221]: tun0: Phase:
 deflink:
 closed - opening
  
 Sep  8 22:25:12  ppp[221]: tun0: Phase:
 deflink:
 Connected!
  
 Sep  8 22:25:12  ppp[221]: tun0: Phase:
 deflink:
 opening - dial
  
 Sep  8 22:25:12  ppp[221]: tun0: Chat: Phone:
 5571090
  
 Sep  8 22:25:12  ppp[221]: tun0: Chat: deflink:
 Dial
 attempt 1 of 1
  
 Sep  8 22:25:12  ppp[221]: tun0: Chat: Send:
 AT^M
  
 Sep  8 22:25:12  ppp[221]: tun0: Chat:
 Expect(5): OK
  
 Sep  8 22:25:17  ppp[221]: tun0: Chat: Expect
 timeout
  
 Sep  8 22:25:17  ppp[221]: tun0: Chat: Send:
 AT^M 
 
  Sep  8 22:25:17  ppp[221]: tun0: Chat:
 Expect(5): OK
  
 Sep  8 22:25:22  ppp[221]: tun0: Chat: Expect
 timeout
  
 Sep  8 22:25:22  ppp[221]: tun0: Warning: Chat
 script
 failed
  
 Sep  8 22:25:22  ppp[221]: tun0: Phase:
 deflink: dial
 - hangup
  
 Sep  8 22:25:22  ppp[221]: tun0: Phase:
 deflink:
 Disconnected!
  
 Sep  8 22:25:22  ppp[221]: tun0: Phase:
 deflink:
 Connect time: 10 secs: 0 octets in, 0 octets
 out
  
 Sep  8 22:25:22  ppp[221]: tun0: Phase:
 deflink: : 0
 packets in, 0 packets out
  
 Sep  8 22:25:22  ppp[221]: tun0: Phase:  total
 0
 bytes/sec, peak 0 bytes/sec on Mon Sep  8
 22:25:22
 2003 
 
  Sep  8 22:25:22  ppp[221]: tun0: Phase:
 deflink:
 hangup - closed
  
 Sep  8 22:25:22  ppp[221]: tun0: Phase: bundle:
 Dead
  
 Sep  8 22:25:22  ppp[221]: tun0: Phase: PPP
 Terminated
 (normal).
  
 Sep  8 22:25:22  ppp[221]: tun0: Chat: Parent
 notified
 of failure
  
 Sep  8 22:25:22  ppp[220]: tun0: Phase: Parent:
 Child
 failed (errdead)
 


 Want to chat instantly with your online
 friends?  Get the FREE Yahoo!
 Messenger http://mail.messenger.yahoo.co.uk
 ___
 [EMAIL PROTECTED] mailing list

http://lists.freebsd.org/mailman/listinfo/freebsd-newbies
 To unsubscribe, send any mail to [EMAIL PROTECTED]

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


ppp connection problem

2003-07-23 Thread Brian Henning
Greetings all:

I am connecting to my isp with the following ppp.conf using the command
ppp -auto isp
when i run the command i usually connect on the second try.
for some reason the connection drops after the first try, but my 
true problem is i can ping internal ips and not ips outside the network.
I think my problem is with my default route is not setup properly.

here is a snip of my ifconfig, for some reason i have two tun devices.
i think that is caused by trying to dial up twice? any thought on 
how to setup my default route properly?

Thanks,

brian

ifconfig

tun0: flags=8051UP,POINTOPOINT,RUNNING,MULTICAST mtu 1500
inet 199.17.4.229 -- 199.17.4.4 netmask 0xff00
Opened by PID 111
tun1: flags=8051UP,POINTOPOINT,RUNNING,MULTICAST mtu 1500
inet 10.0.0.1 -- 10.0.0.2 netmask 0xff00
Opened by PID 121



Routing tables

Internet:
DestinationGatewayFlagsRefs  Use  Netif Expire
default199.17.4.4UGSc4 2620   tun0
10.0.0.2   10.0.0.1   UH  00   tun1
127.0.0.1  127.0.0.1  UH  00lo0
199.17.4.4199.17.4.229  UH  40   tun0


/etc/ppp/ppp.conf
-
default:
  set device /dev/cuaa1
  set speed 115200
  set dial ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
   \\ AT OK-AT-OK ATE1Q0 OK \\dATDP\\T TIMEOUT 40 CONNECT
  set timeout 180
  enable dns

isp:
  set phone xxx
  set authname xxx
  set authkey xxx
  set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
  add default HISADDR
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ppp connection problem

2003-07-23 Thread Adam
On Wed, 2003-07-23 at 09:10, Brian Henning wrote:
 I am connecting to my isp with the following ppp.conf using the command
 ppp -auto isp
 when i run the command i usually connect on the second try.
 for some reason the connection drops after the first try, but my 
 true problem is i can ping internal ips and not ips outside the network.
 I think my problem is with my default route is not setup properly.

Removing the 'set ifaddr' line fixed some weird problems for me.
However, I use ppp for PPPoE. It might be worth a try, though. I know
several people that have removed that line successfully.

-- 
Adam [EMAIL PROTECTED]

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: ppp connection problem

2003-07-23 Thread fbsd_user
Please post /var/log/ppp.log   be sure to empty ppp.log before you
run last test so log only contains last 2 dials

Try  starting using this command  ppp -background -nat isp
 Also post your /etc/rc.conf

Add this to your ppp.conf isp section

 set timeout 0   # no idle time out, will not disconnect

 disable pred1 deflate lqr# compression features  line quality
reporting
 denypred1 deflate lqr  # compression features  line quality
reporting


 set log Phase Chat LCP IPCP CCP tun command   #use for testing
 #set log Phase tun   #use to avoid
excessive log sizes


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Brian
Henning
Sent: Wednesday, July 23, 2003 9:10 AM
To: freebsd
Subject: ppp connection problem

Greetings all:

I am connecting to my isp with the following ppp.conf using the
command
ppp -auto isp
when i run the command i usually connect on the second try.
for some reason the connection drops after the first try, but my
true problem is i can ping internal ips and not ips outside the
network.
I think my problem is with my default route is not setup properly.

here is a snip of my ifconfig, for some reason i have two tun
devices.
i think that is caused by trying to dial up twice? any thought on
how to setup my default route properly?

Thanks,

brian

ifconfig

tun0: flags=8051UP,POINTOPOINT,RUNNING,MULTICAST mtu 1500
inet 199.17.4.229 -- 199.17.4.4 netmask 0xff00
Opened by PID 111
tun1: flags=8051UP,POINTOPOINT,RUNNING,MULTICAST mtu 1500
inet 10.0.0.1 -- 10.0.0.2 netmask 0xff00
Opened by PID 121



Routing tables

Internet:
DestinationGatewayFlagsRefs  Use  Netif
Expire
default199.17.4.4UGSc4 2620   tun0
10.0.0.2   10.0.0.1   UH  00   tun1
127.0.0.1  127.0.0.1  UH  00lo0
199.17.4.4199.17.4.229  UH  40   tun0


/etc/ppp/ppp.conf
-
default:
  set device /dev/cuaa1
  set speed 115200
  set dial ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
   \\ AT OK-AT-OK ATE1Q0 OK \\dATDP\\T TIMEOUT 40 CONNECT
  set timeout 180
  enable dns

isp:
  set phone xxx
  set authname xxx
  set authkey xxx
  set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
  add default HISADDR
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
[EMAIL PROTECTED]

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ppp connection

2003-07-19 Thread Matthew Graybosch
On Friday 18 July 2003 08:20 pm, Marvin J. Kosmal wrote:

 I can't ping anyone.

 TIA

Send me copies of your /etc/ppp/ppp.conf and /etc/resolv.conf so I can 
diagnose your problem. I need firsthand info if I'm to properly 
troubleshoot your problem.

-- 
Matthew Graybosch
http://www.starbreaker.net
I am become root, shatterer of kernels.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ppp connection

2003-07-19 Thread Marvin J. Kosmal
These are the files
++/etc/ppp/ppp.conf++

#
# PPP  Sample Configuration File
# Originally written by Toshiharu OHNO
# Simplified 5/14/1999 by [EMAIL PROTECTED]
#
# See /usr/share/examples/ppp/ for some examples
#
# $FreeBSD: src/etc/ppp/ppp.conf,v 1.2.2.5 2001/07/13 10:55:23 brian Exp $
#

default:
 set log Phase Chat LCP IPCP CCP tun command
 ident user-ppp VERSION (built COMPILATIONDATE)

 # Ensure that device references the correct serial port
 # for your modem. (cuaa0 = COM1, cuaa1 = COM2)
 #
 set device /dev/cuaa0

 set speed 115200
 set dial ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
   \\ AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT
 set timeout 180# 3 minute idle timer (the default)
 enable dns # request DNS info (for resolv.conf)

papchap:
 #
 # edit the next three lines and replace the items in caps with
 # the values which have been assigned by your ISP.
 #

 set phone 360.314.4221 
 set authname lamsokvr
 set authkey *

 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
 add default HISADDR# Add a (sticky) default route


++/etc/resolv.conf***

domain xprt.net
nameserver 209.102.124.11

nameserver 209.102.124.10


Thank YOU





On Sat, 2003-07-19 at 07:46, Matthew Graybosch wrote:
 On Friday 18 July 2003 08:20 pm, Marvin J. Kosmal wrote:
 
  I can't ping anyone.
 
  TIA
 
 Send me copies of your /etc/ppp/ppp.conf and /etc/resolv.conf so I can 
 diagnose your problem. I need firsthand info if I'm to properly 
 troubleshoot your problem.
 
 -- 
 Matthew Graybosch
 http://www.starbreaker.net
 I am become root, shatterer of kernels.
 
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
 
-- 
Marvin J. Kosmal
Linux Activist
Registered User # 88512
Brought to by Libranet 2.7

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: ppp connection

2003-07-19 Thread fbsd_user

Marvin,
You say user ppp is not dialing out. What makes you think your modem
is working at all. Does the dmesg.boot file show your modem being
found? Are you using an MS/Winmodem, is your modem an external
serial modem, USB external, internal PCI modem. Do you have
plug-n-play disabled and serial ports enabled in the motherboards
bios? What version of FBSD you are using? Does the 'TIP' command
connect to the modem and can you issue Hayes 'AT' commands to modem?
You have to provide much greater details about what you are trying
to do and what you have tried to do to debug problem. There is no
size limit to how big your email message can be so do not spare the
details.
The most important question HAVE YOU GOOLGE THE FBSD QUESTIONS LIST
EMAIL ARCHIVES FOR MODEMS OR USER PPP,  to try to find the answer to
your problem your self. For your information that is your first
place you should look when you have a problem. Your question has
been answered many times before on this list so please do the same
leg work the rest of us do when we have problems before throwing
your hands up into the air and asking for help. Take the time to
learn from the archives, the true fun of FBSD comes from figuring
out a problem on your own.  I use the this link to google all the
time.
http://groups.google.com/groups?hl=engroup=mailing.freebsd.question
s
If you still need help, post these files, /var/run/dmesg.boot
/etc/ppp/ppp.conf  /etc/rc.conf  /ver/log/ppp.log containing only
the last start of user ppp, and give all the details you can so
people have the complete picture of you're files to look for
problems.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ppp connection

2003-07-19 Thread Jonathan Chen
On Sat, Jul 19, 2003 at 03:20:21PM -0700, Marvin J. Kosmal wrote:
 papchap:
  #
  # edit the next three lines and replace the items in caps with
  # the values which have been assigned by your ISP.
  #
 
  set phone 360.314.4221 

Your phone number value is incorrect. Take out the ..
-- 
Jonathan Chen [EMAIL PROTECTED]
--
  Build a man a fire, and he'll be warm for a day.
Set a man on fire, and he'll be warm for the rest of his life.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


ppp connection

2003-07-18 Thread Marvin J. Kosmal

Hi

 trying to get my ppp connection to work

I created a /etc/resolv.conf
/etc/ppp/options
/etc/ppp/chat.script
/etc/ppp/pap-secrets



I launch it with

/usr/sbin/pppd


And nothing happens

Any ideas??

-- 
Marvin J. Kosmal
Linux Activist
Registered User # 88512
Brought to by Libranet 2.7

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ppp connection

2003-07-18 Thread Matthew Graybosch
On Friday 18 July 2003 06:00 pm, Marvin J. Kosmal wrote:
 Hi

  trying to get my ppp connection to work

 And nothing happens

 Any ideas??

It sounds like you're trying to use kernel ppp. Use user ppp 
instead. Edit /etc/ppp/ppp.conf to set the modem device, phone 
number, userid, and password. Then invoke it with ppp -foreground 
papchap.

-- 
Matthew Graybosch
http://www.starbreaker.net
I am become root, shatterer of kernels.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ppp connection

2003-07-18 Thread Marvin J. Kosmal
On Fri, 2003-07-18 at 16:23, Matthew Graybosch wrote:
 On Friday 18 July 2003 06:00 pm, Marvin J. Kosmal wrote:
  Hi
 
   trying to get my ppp connection to work
 
  And nothing happens
 
  Any ideas??
 
 It sounds like you're trying to use kernel ppp. Use user ppp 
 instead. Edit /etc/ppp/ppp.conf to set the modem device, phone 
 number, userid, and password. Then invoke it with ppp -foreground 
 papchap.
 


This is what I get now..



rl0: flags=8802BROADCAST,SIMPLEX,MULTICAST mtu 1500
ether 00:4f:4e:05:32:b6
media: Ethernet autoselect (10baseT/UTP)
status: no carrier
lp0: flags=8810POINTOPOINT,SIMPLEX,MULTICAST mtu 1500
faith0: flags=8002BROADCAST,MULTICAST mtu 1500
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384
inet6 ::1 prefixlen 128 
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 
inet 127.0.0.1 netmask 0xff00 
ppp0: flags=8010POINTOPOINT,MULTICAST mtu 1500
sl0: flags=c010POINTOPOINT,LINK2,MULTICAST mtu 552
tun0: flags=8010POINTOPOINT,MULTICAST mtu 1500


I can't ping anyone.

TIA












 -- 
 Matthew Graybosch
 http://www.starbreaker.net
 I am become root, shatterer of kernels.
 
-- 
Marvin J. Kosmal
Linux Activist
Registered User # 88512
Brought to by Libranet 2.7

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ppp connection

2003-07-18 Thread Colin Alston
tun0: flags=8010POINTOPOINT,MULTICAST mtu 1500

Seems the ppp connection has obviously failed

man ppp

and make sure you set it up properly...

Did you not notice any errors?

otherwise tail -40 /var/log/ppp.log and try see what went wrong.


- Original Message -
From: Marvin J. Kosmal [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, July 19, 2003 2:20 AM
Subject: Re: ppp connection


 On Fri, 2003-07-18 at 16:23, Matthew Graybosch wrote:
  On Friday 18 July 2003 06:00 pm, Marvin J. Kosmal wrote:
   Hi
  
trying to get my ppp connection to work
  
   And nothing happens
  
   Any ideas??
 
  It sounds like you're trying to use kernel ppp. Use user ppp
  instead. Edit /etc/ppp/ppp.conf to set the modem device, phone
  number, userid, and password. Then invoke it with ppp -foreground
  papchap.
 


 This is what I get now..



 rl0: flags=8802BROADCAST,SIMPLEX,MULTICAST mtu 1500
 ether 00:4f:4e:05:32:b6
 media: Ethernet autoselect (10baseT/UTP)
 status: no carrier
 lp0: flags=8810POINTOPOINT,SIMPLEX,MULTICAST mtu 1500
 faith0: flags=8002BROADCAST,MULTICAST mtu 1500
 lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384
 inet6 ::1 prefixlen 128
 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
 inet 127.0.0.1 netmask 0xff00
 ppp0: flags=8010POINTOPOINT,MULTICAST mtu 1500
 sl0: flags=c010POINTOPOINT,LINK2,MULTICAST mtu 552
 tun0: flags=8010POINTOPOINT,MULTICAST mtu 1500


 I can't ping anyone.

 TIA












  --
  Matthew Graybosch
  http://www.starbreaker.net
  I am become root, shatterer of kernels.
 
 --
 Marvin J. Kosmal
 Linux Activist
 Registered User # 88512
 Brought to by Libranet 2.7

 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
[EMAIL PROTECTED]

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: PPP connection via a GMC router

2002-09-20 Thread dfolkins

From: Fuji Zhang [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 19, 2002 11:22 PM
Subject: PPP connection via a GMC router


 hi, i had ADSL working via a D-Link card to Bell Sympatico just fine. then
 my roommate wanted to share the ISP w/ me. so we bought a GMC router. He
 had his Linux box working behind the router. but my FreeBSD box stopped
 working. what am i missing? your help would certainly be appreciated.
 please respond to this address directly as i am not subscribing to list
 now.

maybe if you specify what exactly is not working someone could help you out.
if you mean the network functions are not working, i would recommend going
into your config files to see what's up.  if you previously set your ip
statically in your conf files, you probably now will want to set it through
dhcp (as in, set that interface = to DHCP in your rc.conf), because that
gmc router is probably using dhcp to assign your box an internal ip.  to
test out this theory, try running /sbin/dhclient if0, where if0 is the
name of your ethernet NIC (e.g. xl0, dc0, etc).
hope this helps.
--
dfolkins


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



PPP connection via a GMC router

2002-09-19 Thread Fuji Zhang

hi, i had ADSL working via a D-Link card to Bell Sympatico just fine. then
my roommate wanted to share the ISP w/ me. so we bought a GMC router. He
had his Linux box working behind the router. but my FreeBSD box stopped
working. what am i missing? your help would certainly be appreciated.
please respond to this address directly as i am not subscribing to list
now.

Sincerely,

Fujie Zhang


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: What kind of PPP connection do you have?

2002-09-18 Thread Mikko Työläjärvi

On Sat, 14 Sep 2002, Greg 'groggy' Lehey wrote:

 I'm currently revising my book The Complete FreeBSD.  The new
 edition should be out in the bookstores in a couple of months.  Right
 now I'm revising the chapter on PPP setup, which was written in 1997.
 Since then, the ISP landscape has changed dramatically, and I suspect
 that large parts of the chapter are no longer relevant.  I'd like your
 feedback on the following issues:

 1.  What kind of authentication do you use?  Please don't reply if
 it's PAP or CHAP; I think that's almost universal.  I'm just
 interested if anybody is using anything else (like a UNIX login,
 for example).

Haven't used a login chat script with ppp for at least five years... :)

 2.  Do you use user PPP or kernel PPP?  I'd like answers in each case
 here, please.  I note that other books have decided to describe
 only one or the other, but currently I think there's a reason for
 both.

User PPP.  Hmm... can kernel PPP do PPPoE?

 /Mikko

 Mikko Työläjä[EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message