Re: measure traffic caused by pppd (UMTS)

2009-03-18 Thread Matthias Apitz
El día Friday, May 16, 2008 a las 10:08:26PM +0200, Toni Schmidbauer escribió:

 At Fri, 2 May 2008 11:46:46 +0200,
 Matthias Apitz wrote:
  Sometimes when I travel around and can't see any usable WLAN I'm using
  the UMTS and PPPD, which works well but of course one must pay for this;
 
 mb=`netstat -ib|awk '/tun0.*Link/ {mb=($6+$9)/1024^2; printf %.2f,mb}'`
 date=`date +%s`
 ^
I think there is a typo in your script;
and for me the fields of the netstat output are $7 and $10:

 echo MB Transfered: $mb
 echo $date $mb  ~/tmp/grps_kosten.txt
 
 works for me. i'm using the above code snipped after shutting down
 pppd.

will the 'netstat -ib' also count the LCP-echoreq/echo traffic in ppp0?

Thx

matthias

-- 
Matthias Apitz
Manager Technical Support - OCLC GmbH
Gruenwalder Weg 28g - 82041 Oberhaching - Germany
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e matthias.ap...@oclc.org - w http://www.oclc.org/ http://www.UnixArea.de/
___
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: measure traffic caused by pppd (UMTS)

2009-03-18 Thread Matthias Apitz
El día Wednesday, March 18, 2009 a las 09:57:11AM +0100, Matthias Apitz 
escribió:

 El día Friday, May 16, 2008 a las 10:08:26PM +0200, Toni Schmidbauer escribió:
 
  At Fri, 2 May 2008 11:46:46 +0200,
  Matthias Apitz wrote:
   Sometimes when I travel around and can't see any usable WLAN I'm using
   the UMTS and PPPD, which works well but of course one must pay for this;
  
  mb=`netstat -ib|awk '/tun0.*Link/ {mb=($6+$9)/1024^2; printf %.2f,mb}'`
  date=`date +%s`
  ^
 I think there is a typo in your script;
 and for me the fields of the netstat output are $7 and $10:

No, I was wrong with 7 and 10; I was testing the script with a Wifi
interface iwi0; for ppp0 it is 6 and 9 because the MAC addr field is
empty; sorry;


matthias
-- 
Matthias Apitz
Manager Technical Support - OCLC GmbH
Gruenwalder Weg 28g - 82041 Oberhaching - Germany
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e matthias.ap...@oclc.org - w http://www.oclc.org/ http://www.UnixArea.de/
___
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: measure traffic caused by pppd (UMTS)

2008-05-18 Thread Toni Schmidbauer
At Sun, 18 May 2008 07:15:10 +0300,
Odhiambo Washington wrote:
 ..as in from ppp.linkdown?

i was using a custom script for umts startup/shutdown. but it should
work there as well. 

toni
-- 
If you understand what you're doing, you're | toni at stderror dot at
not learning anything.  | Toni Schmidbauer
-- Anonymous|
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: measure traffic caused by pppd (UMTS)

2008-05-17 Thread Toni Schmidbauer
At Fri, 2 May 2008 11:46:46 +0200,
Matthias Apitz wrote:
 Sometimes when I travel around and can't see any usable WLAN I'm using
 the UMTS and PPPD, which works well but of course one must pay for this;

mb=`netstat -ib|awk '/tun0.*Link/ {mb=($6+$9)/1024^2; printf %.2f,mb}'`
date=`date +%s`
echo MB Transfered: $mb
echo $date $mb  ~/tmp/grps_kosten.txt

works for me. i'm using the above code snipped after shutting down
pppd.

hth
toni
-- 
If you understand what you're doing, you're | toni at stderror dot at
not learning anything.  | Toni Schmidbauer
-- Anonymous|
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: measure traffic caused by pppd (UMTS)

2008-05-17 Thread Odhiambo Washington
On Fri, May 16, 2008 at 11:08 PM, Toni Schmidbauer [EMAIL PROTECTED] wrote:

 At Fri, 2 May 2008 11:46:46 +0200,
 Matthias Apitz wrote:
  Sometimes when I travel around and can't see any usable WLAN I'm using
  the UMTS and PPPD, which works well but of course one must pay for this;

 mb=`netstat -ib|awk '/tun0.*Link/ {mb=($6+$9)/1024^2; printf %.2f,mb}'`
 date=`date +%s`
 echo MB Transfered: $mb
 echo $date $mb  ~/tmp/grps_kosten.txt

 works for me. i'm using the above code snipped after shutting down
 pppd.


..as in from ppp.linkdown?


-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Oh My God! They killed init! You Bastards!
--from a /. post
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


measure traffic caused by pppd (UMTS)

2008-05-02 Thread Matthias Apitz

Hello,

Sometimes when I travel around and can't see any usable WLAN I'm using
the UMTS and PPPD, which works well but of course one must pay for this;

Is there some tool which I could put into /etc/ppp/ip_down script which
logs the traffic done into some file; I see /usr/ports/net/ppptraf which
comes without any documentation and is curses based :-(
any other ideas?

I'm not interested in any analysis about to which location the traffic
goes or about speed and bandwidth; just

- cmd line based with output to a file or stdout
- the amount of bytes/megabytes in and out;

thx in advance

matthias
-- 
Matthias Apitz
Manager Technical Support - OCLC GmbH
Gruenwalder Weg 28g - 82041 Oberhaching - Germany
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e [EMAIL PROTECTED] - w http://www.oclc.org/ http://www.UnixArea.de/
b http://gurucubano.blogspot.com/
Don't top-post, read RFC1855 http://www.faqs.org/rfcs/rfc1855.html
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on Usenet and in e-mail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Fwd: Re: pppd crashes, was: kde-freebsd

2007-02-10 Thread Joe Vender
On Saturday 10 February 2007 01:59, Michael Nottebrock wrote:
 In case you didn't get cc'd on this, I think this is actually worthwhile
 trying, it might just get rid of the hanging/rebooting.

 What Hajime means is the debug.mpsafenet loader tunable.

 You can set this by creating the file /boot/loader.conf.local and adding a
 line

 debug.mpsafenet=0


 Cheers,

Well, I've set the tunable as suggested, configured KPPP and am using it now. 
So far, no problem, but I haven't been online for long either, so time will 
tell if thats the problem. I came across this which states that if you are 
using pppd, then you need to set the tunable to 0, if I read it correctly.

http://unix.derkeiler.com/Mailing-Lists/FreeBSD/current/2004-08/2745.html

This all makes me wonder, what is the advantage to having the debug.mpsafenet 
set to 1 as default, anyway, if the computer only has a single processor? 
Shouldn't the installer be smart enough to detect if the computer is single 
or multiprocessor, and set the tunable accordingly, at least until ALL of the 
network features are made MPSAFE so that it is no longer an issue? And, when 
installing FreeBSD 6.2, the kernel that booted from the install CD was 
GENERIC, but after the installation, the bootup showed that the kernel being 
used was SMP. Being that my computer is a single processor, shouldn't it 
default to the GENERIC kernel after installation, unless I request otherwise?

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


A problem with the pppd

2006-02-12 Thread a
Help me, please, with the pppd. The problem is the next. 
I want to connect to Internet Service Provide (ISP) with a callback. 
I use the pppd and the chat with the next scripts, which are inessential
now: 

# pppd script 
 
/dev/cuad1 115200 

debug 
defaultroute 
crtscts 
noipdefault 
connect /usr/bin/chat -v -f
/etc/ppp/peers/login.chat.script.prostointernet.callback 
callback 4504257 
passive 
domain  prostointer.net 
persist 
holdoff 300 

# chat script login.chat.script.prostointernet.callback 
# It is one line really

ABORT BUSY  ABORT 'NO CARRIER'  
 AT 
OK ATS0=1 
OK ATDP5945050 
TIMEOUT 300 CONNECT  
TIMEOUT 30 sername:-\\r-sername: login 
TIMEOUT 30 sword: password 
hostname: 0.0.0.0 

The first step goes well: my side connects with the ISP and
authentication is done successfully. 
After authentication and querying a callback, pppd hangs up the line. 
But then pppd exits. 
The ISP calls me back after some time. But there is no pppd already, and
nobody is waiting for the incoming call. 
(Without callback I have no problem.) 

What do I wrong?

mailto:[EMAIL PROTECTED]

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


RE: A problem with the pppd

2006-02-12 Thread fbsd_user
First of all you are trying to use kernel ppp.
This was completely rewritten because it was so hard to
configure and debug and it now called User ppp.
d (IE: kernel ppp) was kept around for backwards compatibility.
For all practical purposes its dead and just waiting to be removed.
You will get better help here if you change to user ppp.

The install guide at www.a1poweruser.com has a step by step
instructions for seting up user ppp callback function.



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of a
Sent: Sunday, February 12, 2006 7:02 AM
To: freebsd-questions@freebsd.org
Subject: A problem with the pppd


Help me, please, with the pppd. The problem is the next.
I want to connect to Internet Service Provide (ISP) with a callback.
I use the pppd and the chat with the next scripts, which are
inessential
now:

# pppd script

/dev/cuad1 115200

debug
defaultroute
crtscts
noipdefault
connect /usr/bin/chat -v -f
/etc/ppp/peers/login.chat.script.prostointernet.callback
callback 4504257
passive
domain  prostointer.net
persist
holdoff 300

# chat script login.chat.script.prostointernet.callback
# It is one line really

ABORT BUSY  ABORT 'NO CARRIER'
 AT
OK ATS0=1
OK ATDP5945050
TIMEOUT 300 CONNECT 
TIMEOUT 30 sername:-\\r-sername: login
TIMEOUT 30 sword: password
hostname: 0.0.0.0

The first step goes well: my side connects with the ISP and
authentication is done successfully.
After authentication and querying a callback, pppd hangs up the
line.
But then pppd exits.
The ISP calls me back after some time. But there is no pppd already,
and
nobody is waiting for the incoming call.
(Without callback I have no problem.)

What do I wrong?

mailto:[EMAIL PROTECTED]

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

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


RE: A problem with the pppd

2006-02-12 Thread a
Thank You for a link. I will read and try, because I have had some
problems with user ppp too. 
Elisej Babenko

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of fbsd_user
 Sent: Sunday, February 12, 2006 2:31 PM
 To: a; freebsd-questions@freebsd.org
 Subject: RE: A problem with the pppd
 
 
 First of all you are trying to use kernel ppp.
 This was completely rewritten because it was so hard to 
 configure and debug and it now called User ppp. d (IE: 
 kernel ppp) was kept around for backwards compatibility. For 
 all practical purposes its dead and just waiting to be 
 removed. You will get better help here if you change to user ppp.
 
 The install guide at www.a1poweruser.com has a step by step 
 instructions for seting up user ppp callback function.
 
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of a
 Sent: Sunday, February 12, 2006 7:02 AM
 To: freebsd-questions@freebsd.org
 Subject: A problem with the pppd
 
 
 Help me, please, with the pppd. The problem is the next.
 I want to connect to Internet Service Provide (ISP) with a 
 callback. I use the pppd and the chat with the next scripts, 
 which are inessential
 now:
 
 # pppd script
 
 /dev/cuad1 115200
 
 debug
 defaultroute
 crtscts
 noipdefault
 connect   /usr/bin/chat -v -f
 /etc/ppp/peers/login.chat.script.prostointernet.callback
 callback 4504257
 passive
 domainprostointer.net
 persist
 holdoff   300
 
 # chat script login.chat.script.prostointernet.callback
 # It is one line really
 
 ABORT BUSYABORT 'NO CARRIER'
  AT
 OK ATS0=1
 OK ATDP5945050
 TIMEOUT 300 CONNECT 
 TIMEOUT 30 sername:-\\r-sername: login
 TIMEOUT 30 sword: password
 hostname: 0.0.0.0
 
 The first step goes well: my side connects with the ISP and 
 authentication is done successfully. After authentication and 
 querying a callback, pppd hangs up the line. But then pppd 
 exits. The ISP calls me back after some time. But there is no 
 pppd already, and nobody is waiting for the incoming call. 
 (Without callback I have no problem.)
 
 What do I wrong?
 
mailto:[EMAIL PROTECTED]

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

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

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


pppd

2005-10-25 Thread Alexander Pyhalov
I use the last port collection, but there is only 2.3.11 version of pppd 
there. Are there any plans for updating it?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: pppd

2005-10-25 Thread Mark Linimon
On Tue, Oct 25, 2005 at 10:56:35AM +0400, Alexander Pyhalov wrote:
 I use the last port collection, but there is only 2.3.11 version of pppd 
 there. Are there any plans for updating it?

The first place you should always ask about plans to update a port is
the maintainer.  If the maintainer is [EMAIL PROTECTED] (it is not in
this case) then the answer is it's not maintained and so no one is
planning to update it until someone submits a PR.

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


Re: pppd

2005-10-25 Thread Igor Robul

Alexander Pyhalov wrote:

I use the last port collection, but there is only 2.3.11 version of pppd 
there. Are there any plans for updating it?

___
 


AFAIK pppd is in base system, not in ports.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: pppd

2005-10-25 Thread Kris Kennaway
On Tue, Oct 25, 2005 at 01:05:01PM +0400, Igor Robul wrote:
 Alexander Pyhalov wrote:
 
 I use the last port collection, but there is only 2.3.11 version of pppd 
 there. Are there any plans for updating it?
 ___
  
 
 AFAIK pppd is in base system, not in ports.

It's in net/pppd23 as well.

Kris


pgpk3TgSxjNSH.pgp
Description: PGP signature


Please help with pppd and routing

2005-10-25 Thread Roman Serbski
Dear all,

I would appreciate your advise regarding pppd and routing. FreeBSD
5.4-STABLE, pppd with mgetty acting as dial-in server with one
external modem. I can connect to server with no problem but it seems
like routing doesn't work for dial-in user. I cannot even ping the ip
address of dial-in server. Here is my configuration:

The IP address of dial-in server: 192.168.1.35/28
The end address of the PPP link is 192.168.1.41/28
The IP address to be assigned to dial-in user is 192.168.1.44/28

IP forwarding is on.
# sysctl -a | grep forward

net.inet.ip.forwarding: 1

# cat /etc/ppp/ppp.conf

default:
set device /dev/cuaa0
set log Phase Chat LCP IPCP CCP tun command
enable passwdauth
set speed 38400
set dial ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \\ AT OK-AT-OK
ATE1Q0 OK \\dATDT\\TTIMEOUT 40 CONNECT
set timeout 120
set ifaddr 192.168.1.35/28 255.255.255.240 0.0.0.0
add default HISADDR
enable dns

cuaa0:
set ifaddr 192.168.1.41 192.168.1.44
enable passwdauth
allow users ppp mef
accept dns
set dns 192.168.1.3
enable proxy

ttyd0:
set ifaddr 192.168.1.41 192.168.1.44
enable passwdauth
allow users testppp
accept dns
set dns 192.168.1.3
enable proxy

pap:
enable pap
set ifaddr 192.168.1.41 192.168.1.44
enable proxy
enable passwdauth

ifconfig and netstat -rn information before ppp session:

# ifconfig
tl0: flags=108843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
inet 192.168.1.35 netmask 0xfff0 broadcast 192.168.1.47
ether 00:50:8b:50:f2:0e
media: Ethernet autoselect (100baseTX full-duplex)
status: active
plip0: flags=108810POINTOPOINT,SIMPLEX,MULTICAST mtu 1500
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384
inet 127.0.0.1 netmask 0xff00
tun0: flags=8010POINTOPOINT,MULTICAST mtu 1500

# netstat -rn
Destination Gateway Flags Refs Use Netif Expire
default 192.168.1.33 UGS 1 499 tl0
127.0.0.1 127.0.0.1 UH 0 42 lo0
192.168.1.32/28 link#1 UC 0 0 tl0
192.168.1.33 00:09:7c:61:93:30 UHLW 1 0 tl0 953

ifconfig and netstat -rn information after ppp session:

# ifconfig

tl0: flags=108843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
inet 192.168.1.35 netmask 0xfff0 broadcast 192.168.1.47
ether 00:50:8b:50:f2:0e
media: Ethernet autoselect (100baseTX full-duplex)
status: active
plip0: flags=108810POINTOPOINT,SIMPLEX,MULTICAST mtu 1500
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384
inet 127.0.0.1 netmask 0xff00
tun0: flags=8051UP,POINTOPOINT,RUNNING,MULTICAST mtu 1500
inet 192.168.1.41 -- 192.168.1.44 netmask 0xfff0
Opened by PID 747

# netstat -rn

Destination Gateway Flags Refs Use Netif Expire
default 192.168.1.33 UGS 1 599 tl0
127.0.0.1 127.0.0.1 UH 0 42 lo0
192.168.1.32/28 link#1 UC 0 0 tl0
192.168.1.33 00:09:7c:61:93:30 UHLW 1 0 tl0 1002
192.168.1.44 192.168.1.41 UH 0 0 tun0
192.168.1.44 00:50:8b:50:f2:0e UHLS2 0 0 tl0

Dial-in user receives 192.168.1.44 IP address but it cannot be pinged
from dial-in server:

PING 192.168.1.44 (192.168.1.44): 56 data bytes
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host

I think I made a mistake in default: section of ppp.conf. Please advise.

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


Re: pppd

2005-10-25 Thread Alexander Pyhalov
On Tuesday 25 October 2005 11:47, Mark Linimon wrote:
 The first place you should always ask about plans to update a port is
 the maintainer.  If the maintainer is [EMAIL PROTECTED] (it is not in
 this case) then the answer is it's not maintained and so no one is
 planning to update it until someone submits a PR.
I've looked at pppd 2.4.3 and saw - there is an interesting thing. If pppd 
2.3.11 has support for freebsd-3.0 included, pppd 2.4.3 does not have it at 
all, so it'll be more work for making port from it...   
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: pppd server help

2005-10-03 Thread Lowell Gilbert
Please don't top-post.

Efren Bravo [EMAIL PROTECTED] writes:

 Hi,
 
 I have only one modem, my doubt is how and where ppp or pppd are started?
 The Handbook make references to scripts to manage them, but who launch
 those scripts?  
   
 I don't know if I make myself understand
 
 Thanks for your time...
 
 
 Are you going to be running a high-volume dialin server?
 If not, you might try using ppp(8) instead of pppd.  
 It's easier to set up.
 
 
  I don't realize how the pppd server start when the modem answer the phone.  
   
  I've followed the step of the section 21.3.3 Using pppd as a Server of
  the Handbook and I'm not sure what should I do because according to this
  section I've to create a script and this script will tell pppd to behave
  as a server but how this script will be executed?  
   
  I hope you can help me

The documentation is very extensive, so you need to be more precise
about what part you are having trouble with.  

If you are using ppp(8), start by making sure you can get it started
from the command line; once that works, you can worry about startup
scripts to do so automatically.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: pppd server help

2005-10-03 Thread Philip Hallstrom

I have only one modem, my doubt is how and where ppp or pppd are started?
The Handbook make references to scripts to manage them, but who launch
those scripts?

I don't know if I make myself understand

Thanks for your time...


This is what I did... hopefully I'm not forgetting anything...  my box has 
three modems in it so there will be slight differences...  we don't use 
this anymore, but my memory is that you could login as ppp (with a 
password) or any of the valid users (also with a password) and it the 
dialup host would appear to be on the network.  Hope this helps...


I don't start ppp anywhere really...



- install the mgetty port.  I have mgetty-1.1.31.

- set gateway_enable=YES in /etc/rc.conf

- at the end of /etc/ttys add:

ttyd4   /usr/local/sbin/mgetty -s 115200  dialup on insecure
ttyd5   /usr/local/sbin/mgetty -s 115200  dialup on insecure
ttyd6   /usr/local/sbin/mgetty -s 115200  dialup on insecure

The first part will depend on what COM ports your modem gets picked up 
on.


My /usr/local/etc/mgetty+sendfax/mgetty.config looks like this:

--
port cuaa1
debug 9
fax-id 00 00 00
speed 115200
direct NO
blocking NO
port-owner uucp
port-group uucp
port-mode 0660
toggle-dtr YES
toggle-dtr-waittime 500
data-only YES
fax-only NO
modem-type auto
init-chat  ATS0=0Q0D3C1 OK
modem-check-time 3600
rings 1
answer-chat  ATA CONNECT \c \r
answer-chat-timeout 80
autobauding NO
ringback NO
ringback-time 30
ignore-carrier false
issue-file /etc/issue
prompt-waittime 500
login-prompt @!login:
login-time 240
diskspace 1024
notify faxadmin
fax-owner uucp
fax-group modem
fax-mode 0660
--

- My /usr/local/etc/mgetty+sendfax/login.config looks like this:

--
/AutoPPP/ - -   /etc/ppp/AutoPPP.sh
--

- /etc/ppp/AutoPPP.sh looks like this:
--
#!/bin/sh

exec /usr/sbin/ppp -direct $DEVICE
--

- /etc/ppp/ppp.conf looks like this.  Our office network is 10.28.61/24 
btw.

--
default:
  set device /dev/cuaa1
  set log TCP/IP Chat Connect Phase Command Warnin Error Alert
  set speed 115200
  set dial ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \\ AT OK-AT-OK
   ATE1Q0 OK \\dATDT\\TTIMEOUT 40 CONNECT
  set timeout 120
  disable ipv6cp
  enable passwdauth
  accept dns
  set dns 10.28.61.20
  enable proxy
  allow users philip

ttyd4:
  set ifaddr 10.28.61.51 10.28.61.52

ttyd5:
  set ifaddr 10.28.61.53 10.28.61.54

ttyd6:
  set ifaddr 10.28.61.55 10.28.61.56

--

- Then I have a ppp user that looks like this in /etc/passwd:

ppp:*:1003:1003:PPP User:/local/home/ppp:/etc/ppp/ppp-shell.sh

and /etc/ppp/ppp-shell.sh looks like this:

--
#!/bin/sh

IDENT=`echo $0 | sed -e 's/^.*-\(.*\)$/\1/'`
CALLEDAS=$IDENT
TTY=`tty`

if [ x$IDENT = xdialup ]; then
IDENT=`basename $TTY`
fi


echo PPP for $CALLEDAS on $TTY
echo Starting PPP for $IDENT

exec /usr/sbin/ppp -direct $IDENT
--


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


pppd: Could not determine remote IP address

2005-10-02 Thread guru

Hello,

With the helping hand of someone in freebsd-mobile list I've hacked
the 'uftdi' driver to support a PCMCIA card provided by Vodafone
for UMTS. The card works now as it should but the IPCP negotiating
of the pppd 2.3.11 (from ports collection) ends up in:

...
sent [IPCP ConfReq id=0x6 addr 10.227.149.188]
rcvd [IPCP ConfReq id=0x4b]
sent [IPCP ConfAck id=0x4b]
rcvd [IPCP ConfAck id=0x6 addr 10.227.149.188]
Could not determine remote IP address
sent [IPCP TermReq id=0x7 Could not determine remote IP address]
rcvd [IPCP TermAck id=0x7]

I picked up another Linux driven notebook to compare it with Linux
(because I've used the same PCMCIA card in Linux for some monthes)
and it turned out that the IPCP negotiating is ending up the
same way but the Linux pppd picks up some guessed remote IP address
and just put this into the ppp0 interface and the things are fine:

rcvd [IPCP ConfReq id=0x4]
sent [IPCP ConfNak id=0x4 addr 0.0.0.0]
rcvd [IPCP ConfNak id=0x4 addr 10.227.222.211 ms-dns1 139.7.30.125 ms-dns3
139.7.30.126]
sent [IPCP ConfReq id=0x5 addr 10.227.222.211 ms-dns1 139.7.30.125 ms-dns3
139.7.30.126]
rcvd [IPCP ConfAck id=0x5 addr 10.227.222.211 ms-dns1 139.7.30.125 ms-dns3
139.7.30.126]
rcvd [IPCP ConfReq id=0x5]
sent [IPCP ConfAck id=0x5]
Could not determine remote IP address: defaulting to 10.64.64.64

local  IP address 10.227.222.211
remote IP address 10.64.64.64

# ifconfig ppp0
ppp0  Link encap:Point-to-Point Protocol
  inet addr:10.227.222.211  P-t-P:10.64.64.64  Mask:255.255.255.255
  UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
  RX packets:7 errors:0 dropped:0 overruns:0 frame:0
  TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:3
  RX bytes:100 (100.0 b)  TX bytes:139 (139.0 b)

It seems that this feature does not exist in FreeBSD's pppd or
I'm missing something else?

Thx

Matthias
-- 
Matthias Apitz / Sisis Informationssysteme GmbH
Gruenwalder Weg 28g / D-82041 Oberhaching
Fon: ++49 89 / 61308-351, Fax: -399, Mobile ++49 170 4527211
http://www.sisis.de/~guru/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: pppd: Could not determine remote IP address

2005-10-02 Thread Andrew Gordon
On Sun, 2 Oct 2005 [EMAIL PROTECTED] wrote:

 With the helping hand of someone in freebsd-mobile list I've hacked
 the 'uftdi' driver to support a PCMCIA card provided by Vodafone
 for UMTS. The card works now as it should but the IPCP negotiating
 of the pppd 2.3.11 (from ports collection) ends up in:

Why use pppd from ports?  The native /usr/sbin/ppp is usually more
convenient.  The following config file works with Vodafone 3G/gprs.
Note that the '2g' configuration is useful while roaming - the card is
inclined otherwise to lock onto a 3g network that doesn't support data
roaming in preference to a 2g network that does.  The '3g' configuration
is for normal use 'at home'.

2g:
 set device /dev/ucom0
 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
 add default HISADDR
 set phone *99***1#
 disable lqr
 set timeout 0  # Disable timeout
 set dial ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
   \\ AT OK-AT-OK AT_opsys=0,0 OK \\dATDT\\T TIMEOUT 60 CONNECT

3g:
 set device /dev/ucom0
 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
 add default HISADDR
 set phone *99***1#
 disable lqr
 set timeout 0  # Disable timeout
 set dial ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
   \\ AT OK-AT-OK AT_opsys=3,2 OK \\dATDT\\T TIMEOUT 60 CONNECT


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


Re: pppd server help

2005-10-01 Thread Lowell Gilbert
Efren Bravo [EMAIL PROTECTED] writes:

 I don't realize how the pppd server start when the modem answer the phone.  
   
 I've followed the step of the section 21.3.3 Using pppd as a Server of
 the Handbook and I'm not sure what should I do because according to this
 section I've to create a script and this script will tell pppd to behave
 as a server but how this script will be executed?  
   
 I hope you can help me

Are you going to be running a high-volume dialin server?
If not, you might try using ppp(8) instead of pppd.  
It's easier to set up.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


pppd server help

2005-10-01 Thread Efren Bravo
Hi,

I have only one modem, my doubt is how and where ppp or pppd are started?
The Handbook make references to scripts to manage them, but who launch
those scripts?  
  
I don't know if I make myself understand

Thanks for your time...


Are you going to be running a high-volume dialin server?
If not, you might try using ppp(8) instead of pppd.  
It's easier to set up.


 I don't realize how the pppd server start when the modem answer the phone.  
  
 I've followed the step of the section 21.3.3 Using pppd as a Server of
 the Handbook and I'm not sure what should I do because according to this
 section I've to create a script and this script will tell pppd to behave
 as a server but how this script will be executed?  
  
 I hope you can help me




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


pppd server help

2005-09-30 Thread Efren Bravo
Hi,

I don't realize how the pppd server start when the modem answer the phone.  
  
I've followed the step of the section 21.3.3 Using pppd as a Server of
the Handbook and I'm not sure what should I do because according to this
section I've to create a script and this script will tell pppd to behave
as a server but how this script will be executed?  
  
I hope you can help me

Thank...



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


replacing select() with kqueue() for pppd?

2005-08-02 Thread Bsderss
Hi,

Is possible replace all select() functions with
kqueue() and kevent() for FreeBSD 5.x or Current?

Sam





Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


pppd and NAT

2004-12-28 Thread Igor Pokrovsky
Hi,

Does anyone knows if it's possible to do NAT with pppd.
I know it's possible with ppp, but pppd didn't reveal me any clue.

P.S.: please CC me, I'm not on list.

-ip

-- 
If at first you don't succeed,
blame it on your supervisor.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: pppd and NAT

2004-12-28 Thread Igor Pokrovsky
On Tue, Dec 28, 2004 at 11:07:32PM +0300, Igor Pokrovsky wrote:
 Does anyone knows if it's possible to do NAT with pppd.
 I know it's possible with ppp, but pppd didn't reveal me any clue.

Sorry for replying to my own message. I found the solution -
it is possible to use natd and ipfw to do the job.
If anyone is interested I can send complete solution.

-ip

-- 
If at first you don't succeed,
blame it on your supervisor.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: pppd and NAT

2004-12-28 Thread Joshua Lokken
On Tue, 28 Dec 2004 23:33:28 +0300, Igor Pokrovsky [EMAIL PROTECTED] wrote:
 On Tue, Dec 28, 2004 at 11:07:32PM +0300, Igor Pokrovsky wrote:
  Does anyone knows if it's possible to do NAT with pppd.
  I know it's possible with ppp, but pppd didn't reveal me any clue.
 
 Sorry for replying to my own message. I found the solution -
 it is possible to use natd and ipfw to do the job.
 If anyone is interested I can send complete solution.

Also, from man ppp(8):

The -nat flag does the equivalent of a ``nat enable yes'', enabling ppp's
 network address translation features.  This allows ppp to act as a NAT or
 masquerading engine for all machines on an internal LAN.  Refer to
 libalias(3) for details on the technical side of the NAT engine.  Refer
 to the NETWORK ADDRESS TRANSLATION (PACKET ALIASING) 
 section of this manual page for details on how to configure NAT in ppp.

[snip] and...

Supports NAT or packet aliasing.  Packet aliasing (a.k.a. IP masquerad-
 ing) allows computers on a private, unregistered network to access the
 Internet.  The PPP host acts as a masquerading gateway.  IP addresses 
 as well as TCP and UDP port numbers are NAT'd for outgoing packets 
 and de-NAT'd for returning packets.

[snip] and...

NETWORK ADDRESS TRANSLATION (PACKET ALIASING)
 The -nat command line option enables network address translation (a.k.a.
 packet aliasing).  This allows the ppp host to act as a masquerading
 gateway for other computers over a local area network.  Outgoing IP pack-
 ets are NAT'd so that they appear to come from the ppp host, and incoming
 packets are de-NAT'd so that they are routed to the correct machine on
 the local area network.  NAT allows computers on private, unregistered
 subnets to have Internet access, although they are invisible from the
 outside world

So, you can do NAT with ppp, as well ;)   HTH,

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


PPPD connection

2004-05-26 Thread Vetrov Maxim
Hi,
I can't establish connection with my ISP using pppd. I attached several files:
dir - /etc/ppp/ directory layout
system - output of uname -a
chap-secrets   |
chat.vmtc  | - config files for pppd
options.vmtc   |
I start pppd as root 'pppd file /etc/options/options.vmtc'. Then it connects to modem, dial out the 
number, makes connection to a peer and then after half a minute or so closes connection. There is no 
 log information in the /var/log/ppp.log (there is a reference to ppp in a /etc/syslog.conf). So I 
do not know what's going on and why the connection is broken. I checked login and password in 
chap-secrets file - these are correct. What do I do wrong?

Maxim
# Dialout format: our name server name password
#
AFFV01586 * xx
ABORT   ERROR
ABORT   'NO DIALTONE'
TIMEOUT 2
OK-''-'' ATZ OK-+++ATHZ-OK ATDP408200
ABORT 'BUSY'
TIMEOUT 70
CONNECT 
total 12
drwxr-xr-x   2 root  wheel   512 May 26 22:01 .
drwxr-xr-x  16 root  wheel  2048 May 23 00:00 ..
-rw-r--r--   1 root  wheel84 May 25 22:27 chap-secrets
-rwxr-xr-x   1 root  wheel   115 May 26 21:45 chat.vmtc
-rwxr-xr-x   1 root  wheel   157 May 26 21:45 options.vmtc
-rw---   1 root  wheel  1169 Oct  9  2002 ppp.conf
/dev/cuaa1
115200
modem
crtscts
asyncmap 0
debug
connect '/usr/bin/chat -v -f /etc/ppp/chat.vmtc'
defaultroute
noipdefault
persist
holdoff 2
mtu 250
mru 250
FreeBSD router 4.7-RELEASE FreeBSD 4.7-RELEASE #1: Tue May 25 21:47:44 GMT 2004 
[EMAIL PROTECTED]:/usr/src/sys/compile/ROUTER  i386
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


pppd auth-up

2004-05-21 Thread Ian Moore
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,
I've been using pppd on my 5.2 system. I setup a script to run ntpdate and a 
couple of oher things when I connect to my ISP in /etc/ppp/auth-up, but it 
doesn't appear to run.
Just in case it was a timing problem I added a sleep 20 line, but that doesn't 
make any difference.
A listing of the file looks like:

- -- -rwxr-xr--  1 root  wheel   265 May 21 17:30 auth-up
and it's contens are:
#!/bin/sh
#Perform these actions whenever ppp connects
/bin/sleep 20
#Synchronise to network time
/usr/sbin/ntpdate augean.eleceng.adelaide.edu.au
#Keep synchronised while online
/usr/sbin/ntpd

#Update the port vunerability database
/usr/local/bin/portaudit -F

ntpd never runs and there are no entries in /var/log/messages to show ntpdate 
being run either.
Does auth-up work for anyone else? Are my file permissions wrong perhaps?
The sript runs correctly if I run it as root.

Cheers,
Ian

GPG Key: http://homepages.picknowl.com.au/imoore/imoore.asc
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFArbxRfITqkXhImmIRAulhAJ9Rd9Oj5rbLDoZHctRbPilI8VoEVgCgkD0H
m+R2f+gX8n7QvNd0rO7OHcM=
=05hM
-END PGP SIGNATURE-
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


pppd version

2004-04-22 Thread Todd
I'm curently running FreeBSD 4.9-STABLE #1: Fri Mar 26 10:15:04 EST 2004

Which has pppd version 2.3 patch level 5.

I'm trying to use the X-ISP GUI program and it requires pppd version
2.3.9 or later to be able to automatically obtain DNS.  I'm going to be
connecting at various locations, each with it's own DNS, and would like
to be able to pull them automatically as opposed to hard coding them and
carrying around a list.

Anyone know how I can update pppd?

Is pppd even being maintained?

If I update to the latest 4.9-stable what pppd version does it have?




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


pppd (Server)

2004-04-08 Thread gffds fsdff
I have downloaded and installed kermit, typed in the configuration as listed 
in 18.3.3. When I try to run pppd with no setting options, I get this:

192# pppd
~ÿ}#À!}!}!} }.}%}}2z¢;}'}}(} C~~ÿ}#À!}!}!} }.}%}}2z¢;}'}}(} 
C~~ÿ}#À!}!}!} }.}%}}2z¢;}'}}(} C~~ÿ}#À!}!}!} }.}%}}2z¢;}'}}(} 
C~~ÿ}#À!}!}!} }.}%}}2z¢;}'}}(} C~~ÿ}#À!}!}!} }.}%}}2z¢;}'}}(} 
C~~ÿ}#À!}!}!} }.}%}}2z¢;}'}}(} C~~ÿ}#À!}!}!} }.}%}}2z¢;}'}}(} 
C~~ÿ}#À!}!}!} }.}%}}2z¢;}'}}(} C~~ÿ}#À!}!}!} }.}%}}2z¢;}'}}(} C~

When I try to run pppd with terminal options, they are somehow improper. I 
do not know where to set the device for listening (I want to use a v.92/56k 
modem), in kermit.dial, I know I am supposed to change the username and 
password, but I do not understand how it is to be done.

As for my configurations, here you go:









Kermit.ans-
set line /dev/tty01
set speed 19200
set file type binary
set file names literal
set win 8
set rec pack 1024
set send pack 1024
set block 3
set term bytesize 8
set command bytesize 8
set flow none
pau 1
out +++
inp 5 OK
out ATH0\13
inp 5 OK
echo \13
out ATS0=1\13   ; change to ATS0=0\13 if you want to disable autoanswer 
mode.
inp 5 OK
echo \13
exit
---



Kermit.dial-
set line /dev/tty01
set speed 19200
set file type binary
set file names literal
set win 8
set rec pack 1024
set send pack 1024
set block 3
set term bytesize 8
set command bytesize 8
set flow none
set modem hayes
set dial hangup off
set carrier auto
set dial display on
set input echo on
set input timeout proceed
set input case ignore
def \%x 0
goto slhup
:slcmd
echo Put the modem in command mode.
clear
pause 1
output +++
input 1 OK\13\10
if success goto slhup
output \13
pause 1
output at\13
input 1 OK\13\10
if fail goto slcmd
:slhup
clear
pause 1
echo Hanging up the phone.
output ath0\13
input 2 OK\13\10
if fail goto slcmd
:sldial
pause 1
echo Dialing.
output atdt9,550311\13\10
assign \%x 0
:look
clear
increment \%x
input 1 {CONNECT }
if success goto sllogin
reinput 1 {NO CARRIER\13\10}
if success goto sldial
reinput 1 {NO DIALTONE\13\10}
if success goto slnodial
reinput 1 {\255}
if success goto slhup
reinput 1 {\127}
if success goto slhup
if  \%x 60 goto look
else goto slhup
:sllogin
assign \%x 0
pause 1
echo Looking for login prompt.
:slloop increment \%x
clear
output \13
input 1 {Username: }
if success goto sluid
reinput 1 {\255}
if success goto slhup
reinput 1 {\127}
if success goto slhup
if  \%x 10 goto slloop
else goto slhup
:sluid
output ppp-login\13
input 1 {Password: }
output ppp-password\13
input 1 {Entering SLIP mode.}
echo
quit
:slnodial
echo \7No dialtone. Check the telephone line!\7
exit 1
; local variables:
; mode: csh
; comment-start: ; 
; comment-start-skip: ; 
; end:
---
options-
crtscts
netmask 255.255.255.0
domain ppp.solodox.com
passive
modem
---
---pppserv-
#!/bin/sh
ps ax |grep pppd |grep -v grep
pid=`ps ax |grep pppd |grep -v grep|awk '{print $1;}'`
if [ X${pid} != X ] ; then
   echo 'killing pppd, PID=' ${pid}
   kill ${pid}
fi
ps ax |grep kermit |grep -v grep
pid=`ps ax |grep kermit |grep -v grep|awk '{print $1;}'`
if [ X${pid} != X ] ; then
   echo 'killing kermit, PID=' ${pid}
   kill -9 ${pid}
fi
#reset ppp interface
ifconfig ppp0 down
ifconfig ppp0 delete
#enable autoanswer mode
kermit -y /etc/ppp/kermit.ans
#run ppp
pppd /dev/tty01 19200
---
pppservdown-
#!/bin/sh
ps ax |grep pppd |grep -v grep
pid=`ps ax |grep pppd |grep -v grep|awk '{print $1;}'`
if [ X${pid} != X ] ; then
   echo 'killing pppd, PID=' ${pid}
   kill ${pid}
fi
ps ax |grep kermit |grep -v grep
pid=`ps ax |grep kermit |grep -v grep|awk '{print $1;}'`
if [ X${pid} != X ] ; then
   echo 'killing kermit, PID=' ${pid}
   kill -9 ${pid}
fi
ifconfig ppp0 down
ifconfig ppp0 delete
kermit -y /etc/ppp/kermit.noans
---
So there you are, thanks for reading. I would appriciate any help you may be 
willing to give. Thank you

RE: pppd (Server)

2004-04-08 Thread JJB
As you have found out pppd is very hard to configure and debug,
that's why it was re-written along time ago
and is now called user ppp.

Read man ppp  for details on how to config and use.
That's what is most commonly used today.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of gffds fsdff
Sent: Thursday, April 08, 2004 7:26 PM
To: [EMAIL PROTECTED]
Subject: pppd (Server)

I have downloaded and installed kermit, typed in the configuration
as listed
in 18.3.3. When I try to run pppd with no setting options, I get
this:

192# pppd
~ÿ}#À!}!}!} }.}%}}2z¢;}'}}(} C~~ÿ}#À!}!}!} }.}%}}2z¢;}'}}(}
C~~ÿ}#À!}!}!} }.}%}}2z¢;}'}}(} C~~ÿ}#À!}!}!} }.}%}}2z¢;}'}}(}
C~~ÿ}#À!}!}!} }.}%}}2z¢;}'}}(} C~~ÿ}#À!}!}!} }.}%}}2z¢;}'}}(}
C~~ÿ}#À!}!}!} }.}%}}2z¢;}'}}(} C~~ÿ}#À!}!}!} }.}%}}2z¢;}'}}(}
C~~ÿ}#À!}!}!} }.}%}}2z¢;}'}}(} C~~ÿ}#À!}!}!} }.}%}}2z¢;}'}}(}
C~


When I try to run pppd with terminal options, they are somehow
improper. I
do not know where to set the device for listening (I want to use a
v.92/56k
modem), in kermit.dial, I know I am supposed to change the username
and
password, but I do not understand how it is to be done.

As for my configurations, here you go:









Kermit.ans--
---
set line /dev/tty01
set speed 19200
set file type binary
set file names literal
set win 8
set rec pack 1024
set send pack 1024
set block 3
set term bytesize 8
set command bytesize 8
set flow none

pau 1
out +++
inp 5 OK
out ATH0\13
inp 5 OK
echo \13
out ATS0=1\13   ; change to ATS0=0\13 if you want to disable
autoanswer
mode.
inp 5 OK
echo \13
exit

---



Kermit.dial-

set line /dev/tty01
set speed 19200
set file type binary
set file names literal
set win 8
set rec pack 1024
set send pack 1024
set block 3
set term bytesize 8
set command bytesize 8
set flow none
set modem hayes
set dial hangup off
set carrier auto
set dial display on
set input echo on
set input timeout proceed
set input case ignore
def \%x 0
goto slhup

:slcmd
echo Put the modem in command mode.
clear
pause 1
output +++
input 1 OK\13\10
if success goto slhup
output \13
pause 1
output at\13
input 1 OK\13\10
if fail goto slcmd

:slhup
clear
pause 1
echo Hanging up the phone.
output ath0\13
input 2 OK\13\10
if fail goto slcmd

:sldial
pause 1
echo Dialing.
output atdt9,550311\13\10
assign \%x 0

:look
clear
increment \%x
input 1 {CONNECT }
if success goto sllogin
reinput 1 {NO CARRIER\13\10}
if success goto sldial
reinput 1 {NO DIALTONE\13\10}
if success goto slnodial
reinput 1 {\255}
if success goto slhup
reinput 1 {\127}
if success goto slhup
if  \%x 60 goto look
else goto slhup

:sllogin
assign \%x 0
pause 1
echo Looking for login prompt.

:slloop increment \%x
clear
output \13
input 1 {Username: }
if success goto sluid
reinput 1 {\255}
if success goto slhup
reinput 1 {\127}
if success goto slhup
if  \%x 10 goto slloop
else goto slhup

:sluid
output ppp-login\13
input 1 {Password: }
output ppp-password\13
input 1 {Entering SLIP mode.}
echo
quit

:slnodial
echo \7No dialtone. Check the telephone line!\7
exit 1

; local variables:
; mode: csh
; comment-start: ; 
; comment-start-skip: ; 
; end:

---

options-

crtscts
netmask 255.255.255.0
domain ppp.solodox.com
passive
modem

---

---pppserv--
---
#!/bin/sh
ps ax |grep pppd |grep -v grep
pid=`ps ax |grep pppd |grep -v grep|awk '{print $1;}'`
if [ X${pid} != X ] ; then
echo 'killing pppd, PID=' ${pid}
kill ${pid}
fi
ps ax |grep kermit |grep -v grep
pid=`ps ax |grep kermit |grep -v grep|awk '{print $1;}'`
if [ X${pid} != X ] ; then
echo 'killing kermit, PID=' ${pid}
kill -9 ${pid}
fi

#reset ppp interface
ifconfig ppp0 down
ifconfig ppp0 delete

#enable autoanswer mode
kermit -y /etc/ppp/kermit.ans

#run ppp
pppd /dev/tty01 19200

---

pppservdown-

#!/bin/sh
ps ax |grep pppd |grep -v grep
pid=`ps ax |grep pppd |grep -v grep|awk '{print $1;}'`
if [ X${pid} != X ] ; then
echo 'killing pppd, PID=' ${pid}
kill ${pid}
fi
ps ax |grep kermit |grep -v grep
pid=`ps ax |grep kermit |grep -v grep|awk '{print $1

What is wrong with pppd version 2.3.5?

2004-01-02 Thread Achim Gorski
Recently I installed 5.2-RC2 for testing purpose and
saw an unexplainable behaviour of pppd 2.3.5.
I have an old FreeBSD 4.2 running and connecting via
modem with ppp to an ISP using ipfw, natd and pppd.  
Then I configured the 5.2-RC2 install logical identical,
but it does not route any packets. I can ping ppp0 but not
the default gateway. This was pppd 2.3.5.
Because I did not found anything wrong, I just copied the
old pppd binary version 2.3.1 from 1998 to the 5.2-RC2 test
system and this works! I was really surprised, because I
did not change anything except the pppd binary.

Any clue what is wrong here? Is it my configuration or
something in pppd? What changed in version 2.3.5?


Thanks, Achim



--
Here is what I configured.

$ pppd user username /dev/cuaa0  57600 connect 'my script'


/etc/ppp/options:
modem crtscts noipdefault defaultroute netmask 255.255.255.0 

/etc/rc.conf:
firewall_enable=YES
firewall_type=OPEN 
firewall_logging=YES
natd_enable=YES
natd_interface=ppp0 
natd_flags=-dynamic 
gateway_enable=YES

Kernel:
options IPFIREWALL
options IPFIREWALL_VERBOSE
options IPFIREWALL_VERBOSE_LIMIT=100 
options IPFIREWALL_DEFAULT_TO_ACCEPT 
options IPDIVERT 
options TCP_DROP_SYNFIN
options IPSTEALTH


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


pppd

2003-12-05 Thread Lev Klimin
Good morning!

I have 4.9-release. I'm having little problem with time. I live in
Russia on Moscow-west+00 time. My clock is local. My timezome is
/usr/share/zoneinfo/Europe/Moscow.
To resolve this trouble I see following:
1. Say FreeBSD that my clock is local.
2. Set timezone.

I used for it /stand/sysinstall. But FreeBSD think that clock is GMT,
not local.
Let's now 9:46:03 in Moscow
#date
12:46:03 (MSK)

#zdump /usr/share/timezone/Europe/Moscow
/usr/share/timezone/Europe/Moscow Fri Dec 5 12:46:07 2003 MSK
#diff /etc/localtime /usr/share/timezone/Europe/Moscow

Why my FreeDSD work on GMT and not on localtime?

Thank you.

-- 
Lev Klimin   mailto:[EMAIL PROTECTED]
(8362) 42-15-49
19:37:26 2  2003 .

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


Re: pppd

2003-12-05 Thread Matthew Seaman
On Fri, Dec 05, 2003 at 10:02:19AM +0300, Lev Klimin wrote:
 Good morning!
 
 I have 4.9-release. I'm having little problem with time. I live in
 Russia on Moscow-west+00 time. My clock is local. My timezome is
 /usr/share/zoneinfo/Europe/Moscow.
 To resolve this trouble I see following:
 1. Say FreeBSD that my clock is local.
 2. Set timezone.

You mean that the CMOS clock is set to local time?  That is only
necessary when you have non-Unix OSes installed on the machine.

The CMOS clock is also known as the BIOS clock -- it operates on
battery independently of the system being up or down, and independent
of whatever OS you're using.

The default setting of the CMOS clock to UTC gives best results -- you
should use that setting unless you have good reason not to.

If your CMOS clock isn't set to UTC, you should have an empty file
called /etc/wall_cmos_clock, and you need to run adjkerntz(8)
occasionally to update the CMOS clock from the kernel clock (which
always runs UTC) -- amongst other things this will deal with changing
the clock at the beginning/end of daylight savings time. This should
be handled automatically via /etc/crontab.

 I used for it /stand/sysinstall. But FreeBSD think that clock is GMT,
 not local.
 Let's now 9:46:03 in Moscow
 #date
 12:46:03 (MSK)

Try using /usr/sbin/tzsetup to set the timezone -- it will be quite
familiar to you from sysinstall(8).
 
 #zdump /usr/share/timezone/Europe/Moscow
 /usr/share/timezone/Europe/Moscow Fri Dec 5 12:46:07 2003 MSK
 #diff /etc/localtime /usr/share/timezone/Europe/Moscow
 
 Why my FreeDSD work on GMT and not on localtime?

Sounds like CMOS clock is actually running UTC.  If you really have to
set it to wall-clcock time, try setting the kernel clcock date/time
correctly using date(1), and then run 'adjkerntz -a' to set the CMOS
clock from the kernel clock.  Or you can set the CMOS clock from the
BIOS setup screens.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgp0.pgp
Description: PGP signature


pppd

2003-12-02 Thread Lev Klimin
Good evening!

I have 4.9-release. I run pppd to dial ISP. Pppd have persist option
to retrieve lost connections. Today I wanted to check, how it works
with init. I added in /etc/ttys follow:
---begin chunk
# pppd for ISP on com1
#
ttyd0  /usr/sbin/pppd /dev/ttyd0 38400   dialup  on
#ttyd1  /usr/libexec/getty std.9600   dialup  off secure
#ttyd2  /usr/libexec/getty std.9600   dialup  off secure
#ttyd3  /usr/libexec/getty std.9600   dialup  off secure
---end of chunk

After # kill -1 1, I see
[22:48:09][~]:metal# ps -ax | grep pppd
 2363  ??  Ss 0:00,01 /usr/sbin/pppd /dev/ttyd0 38400 ttyd0
 2365  ??  Ss 0:00,00 /usr/sbin/pppd /dev/ttyd0 38400 ttyd0
 2367  ??  Ss 0:00,00 /usr/sbin/pppd /dev/ttyd0 38400 ttyd0
 2369  ??  Ss 0:00,00 /usr/sbin/pppd /dev/ttyd0 38400 ttyd0

Why init run 4 pppd's processes? Can I fix it?

Thank you.

-- 
Lev Klimin   mailto:[EMAIL PROTECTED]
(8362) 42-15-49
19:37:26 2  2003 .

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


Re: ip-up script of pppd no triggered

2003-11-13 Thread Jim Xochellis
Hi Alex, hi list,

On Thursday, November 13, 2003, at 04:23 AM, Alex de Kruijff wrote:

On Wed, Nov 12, 2003 at 07:31:29PM +0200, Jim Xochellis wrote:
Hi list,

I need persuade pppd to call its ip-up script in order to add a
non-default route when the link is up and running. Unfortunately it
seems that my ip-up script is not being called. The mode of the file 
is
rwxr-xr-x and the owner root:wheel. I am calling the pppd from inside 
a
/usr/local/etc/rc.d/ppp.sh script by using the following command:
/usr/sbin/pppd /dev/cuaa0 115200 A.A.A.A:B.B.B.B noauth persist
netmask 255.255.255.252

Am I doing something wrong?
This is, if i'm not mistaiken, written down in the handbook.
--
Alex
Articles based on solutions that I use:
http://www.kruijff.org/alex/index.php?dir=docs/FreeBSD/


I have just read all the chapter #18 of the handbook, but I haven't 
found anything about the ip-up script. On the contrary the PPPD(8) man 
page claims that the /etc/ppp/ip-up is executed when the link is 
available for sending and receiving IP packets. My link becomes 
available for sending/receiving IP packets, but ip-up is never 
executed. Any ideas why?

By the way, I am using kernel PPP, (on ppp0) if it makes any difference.

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


ip-up script of pppd no triggered

2003-11-12 Thread Jim Xochellis
Hi list,

I need persuade pppd to call its ip-up script in order to add a 
non-default route when the link is up and running. Unfortunately it 
seems that my ip-up script is not being called. The mode of the file is 
rwxr-xr-x and the owner root:wheel. I am calling the pppd from inside a 
/usr/local/etc/rc.d/ppp.sh script by using the following command:
/usr/sbin/pppd /dev/cuaa0 115200 A.A.A.A:B.B.B.B noauth persist 
netmask 255.255.255.252

Am I doing something wrong?

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


Re: ip-up script of pppd no triggered

2003-11-12 Thread Alex de Kruijff
On Wed, Nov 12, 2003 at 07:31:29PM +0200, Jim Xochellis wrote:
 Hi list,
 
 I need persuade pppd to call its ip-up script in order to add a 
 non-default route when the link is up and running. Unfortunately it 
 seems that my ip-up script is not being called. The mode of the file is 
 rwxr-xr-x and the owner root:wheel. I am calling the pppd from inside a 
 /usr/local/etc/rc.d/ppp.sh script by using the following command:
 /usr/sbin/pppd /dev/cuaa0 115200 A.A.A.A:B.B.B.B noauth persist 
 netmask 255.255.255.252
 
 Am I doing something wrong?

This is, if i'm not mistaiken, written down in the handbook.
-- 
Alex

Articles based on solutions that I use:
http://www.kruijff.org/alex/index.php?dir=docs/FreeBSD/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


poptop / pppd

2003-10-19 Thread Chris Knipe
Lo all,

Very arb and weird problem... I've followed all the docs that google could
return (they all mostly the same in any case), and yeah...

My PPTP server *does* work.. As long as I don't terminate more than one
connection at a time to the server *shock horror*.  For some reason (and I
suspect I know why), ppp insist on only using one device for all the
incoming PPTP connections from poptop.  Obviously not right, and err, ja.. I
need to get this fixed... Very urgently as well.

My streamlined ppp.conf:
pptp:
  accept dns
  allow mode direct
  disable chap
  disable mschap
  disable mschapv2
  enable lqr
  enable pap
  set device localhost:pptp
  set dial
  set dns 192.168.1.1
  set ifaddr 192.168.1.1 10.255.255.1-10.255.255.254 255.255.255.255
  set log Connect
  set login
  set radius /etc/ppp/ppp.radius
  set server /tmp/loop  0177
  set timeout 0


Now, I suspect that it is only using one device (regardless of the number of
connections), due to the device (socket) specification.  But frankly, if I
don't specify it what device to use, it won't even be able to operate a
single pptp connection.

Any advice is greatly appreciated.  I need to get this resolved asap.  I
didn't send any logs from ppp PPP and the PPTP connections works 100% -
even with Radius.  The problem is purely that PPP always uses the same
device, regardless of the amount of connections (ala tun0).  My kernel does
have allot of tunX devices, and ifconfig -a lists at least two available.
Still, ppp only uses the one.

I'm sad to say, but if I can't get this to work, I'm going to have to be
forced to scrap my BSD box for a W2K Adv server... *sigh*, at least their
RAS server works okish...

Thanks,
me

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


Re: poptop / pppd

2003-10-19 Thread slave-mike
Please use the port mpd instead.

Chris Knipe wrote:
Lo all,

Very arb and weird problem... I've followed all the docs that google could
return (they all mostly the same in any case), and yeah...
My PPTP server *does* work.. As long as I don't terminate more than one
connection at a time to the server *shock horror*.  For some reason (and I
suspect I know why), ppp insist on only using one device for all the
incoming PPTP connections from poptop.  Obviously not right, and err, ja.. I
need to get this fixed... Very urgently as well.
My streamlined ppp.conf:
pptp:
  accept dns
  allow mode direct
  disable chap
  disable mschap
  disable mschapv2
  enable lqr
  enable pap
  set device localhost:pptp
  set dial
  set dns 192.168.1.1
  set ifaddr 192.168.1.1 10.255.255.1-10.255.255.254 255.255.255.255
  set log Connect
  set login
  set radius /etc/ppp/ppp.radius
  set server /tmp/loop  0177
  set timeout 0
Now, I suspect that it is only using one device (regardless of the number of
connections), due to the device (socket) specification.  But frankly, if I
don't specify it what device to use, it won't even be able to operate a
single pptp connection.
Any advice is greatly appreciated.  I need to get this resolved asap.  I
didn't send any logs from ppp PPP and the PPTP connections works 100% -
even with Radius.  The problem is purely that PPP always uses the same
device, regardless of the amount of connections (ala tun0).  My kernel does
have allot of tunX devices, and ifconfig -a lists at least two available.
Still, ppp only uses the one.
I'm sad to say, but if I can't get this to work, I'm going to have to be
forced to scrap my BSD box for a W2K Adv server... *sigh*, at least their
RAS server works okish...
Thanks,
me
___
[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: user-ppp faster then pppd ?

2003-09-12 Thread Jerry McAllister
 
 On Fri, Sep 12, 2003 at 01:37:59AM +0200, [EMAIL PROTECTED] wrote:
  The difference is too small to be meaningful.
  
  when you have 56k modem and ~4.5KB throughput 0.5KB can make a big 
  difference
 
 I wonder if we're thinking of the same numbers. I've seen 56k modems 
 run at 14,000 bps on bad lines, but not often. 4,500 bps is pretty 
 slow.

I was guessing he was mixing bits and bytes and means ~4.5 Kbytes/second
which is pretty good on a 56k line.   But, I could be guessing wrong.

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


user-ppp faster then pppd ?

2003-09-11 Thread [EMAIL PROTECTED]
Hi
I recently tried to connect to the Internet using kernel ppp (pppd) instead
off user ppp. I noticed that the connection was about 0.5 KB slower whith
pppd when downloading the same file from the same server. I'm using a 56 K
modem and have Release 5.1 installed,  I also appended my /etc/ppp/options,
ppp.conf files.
What could be the reason for the different throughputs?
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.8 2001/06/21 15:42:26 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/cuaa1
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)
freenet:
#
# edit the next three lines and replace the items in caps with
# the values which have been assigned by your ISP.
#
set phone 019231770
set authname USERNAME
set authkey PASSWORD
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
options-

# $FreeBSD: src/share/examples/pppd/options.sample,v 1.1 2002/01/29 
00:23:33
cjc Exp $
#
# Example for /etc/ppp/options file.
#

crtscts # enable hardware flow control
115200
modem   # modem control line
noipdefault # remote PPP server must supply your IP address.
passive # wait for LCP packets
defaultroute# put this if you want that PPP server will be your
   # default router
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: user-ppp faster then pppd ?

2003-09-11 Thread Bob Hall
On Thu, Sep 11, 2003 at 09:23:31PM +0200, [EMAIL PROTECTED] wrote:
 Hi
 I recently tried to connect to the Internet using kernel ppp (pppd) instead
 off user ppp. I noticed that the connection was about 0.5 KB slower whith
 pppd when downloading the same file from the same server. I'm using a 56 K
 modem and have Release 5.1 installed,  I also appended my /etc/ppp/options,

The difference is too small to be meaningful. I've seen differences of 
20KB using the same hardware and software. The change means that the 
second connection traveled over wires that were slightly noisier, or 
slightly busier, or one of a hundred other possibilities. The odds that 
there is a difference in connection speeds caused by a difference between 
ppp and pppd lie somewhere between zero and null.

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


user-ppp faster then pppd ?

2003-09-11 Thread [EMAIL PROTECTED]
The difference is too small to be meaningful.
when you have 56k modem and ~4.5KB throughput 0.5KB can make a big difference

The change means that the second connection traveled over wires that were slightly noisier, or 
slightly busier, or one of a hundred other possibilities. The odds that 
there is a difference in connection speeds caused by a difference between 
ppp and pppd lie somewhere between zero and null.
I tried it several times and got the same results, therefore it must be 
caused by the diffrence between ppp and pppd.

Thanks

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


Re: user-ppp faster then pppd ?

2003-09-11 Thread Kris Kennaway
On Fri, Sep 12, 2003 at 01:37:59AM +0200, [EMAIL PROTECTED] wrote:
 The difference is too small to be meaningful.
 
 when you have 56k modem and ~4.5KB throughput 0.5KB can make a big 
 difference
 
 The change means that the second connection traveled over wires that were 
 slightly noisier, or slightly busier, or one of a hundred other 
 possibilities. The odds that there is a difference in connection speeds 
 caused by a difference between ppp and pppd lie somewhere between zero and 
 null.
 
 I tried it several times and got the same results, therefore it must be 
 caused by the diffrence between ppp and pppd.

I don't know that there's much to it.  Since they're different
implementations, they may well perform differently.  For example, user
ppp has had a lot of work done on it over the years, whereas pppd has
essentially been an unmaintained orphan for the last 3-4 years.  Just
stick with whichever one works best for you.

Kris


pgp0.pgp
Description: PGP signature


pppd / poptop

2003-09-01 Thread Chris Knipe
Lo all,

Very arb and weird problem... I've followed all the docs that google could
return (they all mostly the same in any case), and yeah...

My PPTP server *does* work.. As long as I don't terminate more than one
connection at a time to the server *shock horror*.  For some reason (and I
suspect I know why), ppp insist on only using one device for all the
incoming PPTP connections from poptop.  Obviously not right, and err, ja.. I
need to get this fixed... Very urgently as well.

My streamlined ppp.conf:
pptp:
  accept dns
  allow mode direct
  disable chap
  disable mschap
  disable mschapv2
  enable lqr
  enable pap
  set device localhost:pptp
  set dial
  set dns 192.168.1.1
  set ifaddr 192.168.1.1 10.255.255.1-10.255.255.254 255.255.255.255
  set log Connect
  set login
  set radius /etc/ppp/ppp.radius
  set server /tmp/loop  0177
  set timeout 0


Now, I suspect that it is only using one device (regardless of the number of
connections), due to the device (socket) specification.  But frankly, if I
don't specify it what device to use, it won't even be able to operate a
single pptp connection.

Any advice is greatly appreciated.  I need to get this resolved asap.  I
didn't send any logs from ppp PPP and the PPTP connections works 100% -
even with Radius.  The problem is purely that PPP always uses the same
device, regardless of the amount of connections (ala tun0).  My kernel does
have allot of tunX devices, and ifconfig -a lists at least two available.
Still, ppp only uses the one.

I'm sad to say, but if I can't get this to work, I'm going to have to be
forced to scrap my BSD box for a W2K Adv server... *sigh*, at least their
RAS server works okish...

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


pppd + Radius

2003-06-13 Thread Systems Administrator
Hi FreeBSD People,

Can you tell me wether or not I can get a version of PPPD on FreeBSD that
will support a Radius server.
I want to terminate an l2tp tunnel and get pppd to authenticate with Radius.
Is it possible on Freebsd 5.0 which now supports l2tpd?
If so, can you please let me know how I can make is possible?

Regards,
Andrew
[EMAIL PROTECTED]


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


pppd script and DVD-RAM backups

2002-11-22 Thread Bob Hall
I've put some bash code for starting and stopping pppd on my web site. 
I've also put up my complete procedure for backing up a FBSD box to 
a DVD-RAM disk and doing a full restore. This includes some bash code 
that simplifies the backup process considerably. I've tested the 
backup and restore procedure by restoring my current setup to an 
unused hard disk, and everything worked perfectly. That doesn't mean 
that I didn't introduce any errors when I edited the web page. :)

http://users.starpower.net/rjhalljr/Serve
Click on 'Unix' on the side bar.

Bob Hall

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



Could not use pppd under -CURRENT

2002-09-18 Thread Huang wen hui

hi,
I could not use pppd under -CURRENT, may be pppd driver could not link
into kernel?
I am sure I include ppp driver in system config file.

# uname -a
FreeBSD hwh.gddsn.org.cn 5.0-CURRENT FreeBSD 5.0-CURRENT #1: Tue Sep 17
20:56:16
CST 2002 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/HWH i386

# pppd
pppd: This system lacks kernel support for PPP. To include PPP support
in the kernel, please follow the steps detailed in the README.bsd
file in the ppp-2.2 distribution.


cut from my config file.:
# Pseudo devices - the number indicates how many units to allocate.
device random # Entropy device
device loop # Network loopback
device ether # Ethernet support
device sl # Kernel SLIP
device ppp # Kernel PPP
device tun # Packet tunnel.
device pty # Pseudo-ttys (telnet etc)
device md # Memory disks
device gif # IPv6 and IPv4 tunneling
device faith # IPv6-to-IPv4 relaying (translation)


pls help!

--hwh


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