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"


Re: ppp reconnecting problem

2008-04-28 Thread Malcolm Kay
On Sun, 27 Apr 2008 04:43 pm, Ivan Toman wrote:
> 
>Hello!
>I encountered big problem after switching router from gentoo to
>freebsd. It does not properly reconnect ADSL link after loosing
>connection, for example, when ISP cycle IP address or when I pull out
>cable from ADSL switcher for testing purporse. I cannot realize what's
>going on and really need help.
>First problem get when ISP disconnect me after 24 hours due to IP
>change. Link does not properly get reconnected. ppp tries to connect,
>and appearenty is connected, but something is wrong because no traffic
>is possible and after few seconds ppp goes down and reconnects again.
>And again and again Strange above all is that during reconnecting
>routing table always has default route, but ping does not go. Next, I
>will put some information that I think is relevant to problem, but it
>seems to me, not very useful in debugging this.
>During reconnecting as I describe above, this is my routing table:
>[EMAIL PROTECTED] /home/coldplug]# netstat -rn
>Routing tables
>Internet:
>Destination� � � � � � �  Gateway� � � � � � � � � � �  Flags� � �
>Refs� � � � �  Use�  Netif Expire
>default� � � � � � � � � � �  172.29.252.12� � � � �
>UGS� � � � � � � �  1�  2284023� �  tun0
>10.23.99.64/29� � � �  link#1� � � � � � � � � � � �
>UC� � � � � � � � �  0� � � � � � �  0� �  nfe0
>10.23.99.66� � � � � � �  00:30:84:ee:3c:cf�  UHLW� � � � � � �
>1� � � �  4065� �  nfe0� �  1030
>10.23.99.70� � � � � � �  00:02:b3:9e:b9:81�  UHLW� � � � � � �  1� �
>223104� �  nfe0� �  1027
>127.0.0.1� � � � � � � � �  127.0.0.1� � � � � � � � �
>UH� � � � � � � � �  0� � � � � �  72� � �  lo0
>172.29.252.12� � � � �  78.3.33.136� � � � � � �  UGH� � � � � � � �
>1� � � � � � �  0� �  tun0
>Internet6:
>Destination� � � � � � � � � � � � � � � � � � � � � �
>Gateway� � � � � � � � � � � � � � � � � � � � � �  Flags�  Netif
>Expire
>::1� � � � � � � � � � � � � � � � � � � � � � � � � � � � � �
>::1� � � � � � � � � � � � � � � � � � � � � � � � � �  UHL� � � �
>lo0
>fe80::%lo0/64� � � � � � � � � � � � � � � � � � � �
>fe80::1%lo0� � � � � � � � � � � � � � � � � �  U� � � �  lo0
>fe80::1%lo0� � � � � � � � � � � � � � � � � � � � � �
>link#5� � � � � � � � � � � � � � � � � � � � � � �  UHL� � � �  lo0
>ff01:5::/32� � � � � � � � � � � � � � � � � � � � � �
>fe80::1%lo0� � � � � � � � � � � � � � � � � �  UC� � � �  lo0
>ff01:6::/32� � � � � � � � � � � � � � � � � � � � � �
>link#6� � � � � � � � � � � � � � � � � � � � � � �  UGC� � �  tun0
>ff02::%lo0/32� � � � � � � � � � � � � � � � � � � �
>fe80::1%lo0� � � � � � � � � � � � � � � � � �  UC� � � �  lo0
>ff02::%tun0/32� � � � � � � � � � � � � � � � � � �
>fe80::211:9ff:fe8d:4a27%tun0�  UGC� � �  tun0
>[EMAIL PROTECTED] /home/coldplug]#
>And this I get if try to ping ISP's dns
>[EMAIL PROTECTED] /home/coldplug]# ping 195.29.150.3
>PING 195.29.150.3 (195.29.150.3): 56 data bytes
>ping: sendto: No buffer space available
>ping: sendto: No buffer space available
>ping: sendto: No buffer space available
>ping: sendto: No buffer space available
>^C
>--- 195.29.150.3 ping statistics ---
>10 packets transmitted, 0 packets received, 100.0% packet loss
>[EMAIL PROTECTED] /home/coldplug]#
>No buffer space available??? What is that?
>These are lines from log, where you can see that it reconnects and
>never stops that
>[EMAIL PROTECTED] /home/coldplug]# tail -f /var/log/ppp.log
>Apr 26 12:06:22 maraska-gw ppp[956]: tun0: Phase: deflink: carrier ->
>login
>Apr 26 12:06:22 maraska-gw ppp[956]: tun0: Phase: deflink: login ->
>lcp
>Apr 26 12:06:23 maraska-gw ppp[956]: tun0: Warning: deflink: Reducing
>configured MRU from 1500 to 1492
>Apr 26 12:06:23 maraska-gw ppp[956]: tun0: Phase: deflink: his = PAP,
>mine = none
>Apr 26 12:06:23 maraska-gw ppp[956]: tun0: Phase: Pap Output:
>[EMAIL PROTECTED] 
>Apr 26 12:06:24 maraska-gw ppp[956]: tun0: Phase: Pap Input: SUCCESS
>(Access Accepted. )
>Apr 26 12:06:24 maraska-gw ppp[956]: tun0: Phase: deflink: Already in
>NETWORK phase
>Apr 26 12:06:24 maraska-gw ppp[956]: tun0: Phase: deflink: lcp -> open
>Apr 26 12:06:24 maraska-gw ppp[956]: tun0: Warning: 0.0.0.0/0: Change
>route failed: errno: No such process
>Apr 26 12:06:24 maraska-gw ppp[956]: tun0: Warning: ff02:6::/32:
>Change route failed: errno: Network is unreachable
>Apr 26 12:08:23 maraska-gw ppp[956]: tun0: Phase: deflink: open -> lcp
>Apr 26 12:08:23 maraska-gw ppp[956]: tun0: Warning: 0.0.0.0/0: Change
>route failed: errno: No such process
>Apr 26 12:08:23 maraska-gw ppp[956]: tun0: Warning: ff02:6::/32:
>Change route failed: errno: Network is unreachable
>Apr 2

Re: ppp reconnecting problem

2008-04-27 Thread Patrick Lamaizière
Le Sun, 27 Apr 2008 09:13:06 +0200,
Ivan Toman <[EMAIL PROTECTED]> a __crit :

> 
>Hello!
>I encountered big problem after switching router from gentoo to
>freebsd. It does not properly reconnect ADSL link after loosing
>connection, for example, when ISP cycle IP address or when I pull
> out cable from ADSL switcher for testing purporse. I cannot realize
> what's going on and really need help.
>First problem get when ISP disconnect me after 24 hours due to IP
>change. Link does not properly get reconnected. ppp tries to
> connect, and appearenty is connected, but something is wrong because
> no traffic is possible and after few seconds ppp goes down and
> reconnects again. And again and again 

If you kill ppp and restart it, does-it work again ?
When I was runing ppp on FreeBSD i saw few times this kind of "already
in network phase"  You can restart ppp each day with cron
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: [PPP] Dialing using a cellphone

2008-02-02 Thread Mel
On Saturday 02 February 2008 17:44:58 Matthias Apitz wrote:

> > At boot, FreeBSD recognizes the phone as a USB modem:
> > ugen: Samsung Mobile USB Modem, rev. 2.00/1.00, addr 2
>

...

> > However, when I try to actually dial out, I get:
> > tun0: Warning: chat_Write: Operation not supported by device
> >
> > Any thoughts?
>
> PPP needs a serial device to work with, 'ugen' does not
> provide this;

More to the point, umodem(4) lists the supported USB modems.
The thing to do would be send-pr with output of pciconf -lv and request 
support for this modem.

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


Re: [PPP] Dialing using a cellphone

2008-02-02 Thread Matthias Apitz
El día Saturday, February 02, 2008 a las 02:52:08PM +, Alphons Fonz van 
Werven escribió:

> Hi,
> 
> I'm trying to dial in to my phone provider for internet access using my
> cellphone (Samsung D900i) connected to a USB port of my computer.
> 
> At boot, FreeBSD recognizes the phone as a USB modem:
> ugen: Samsung Mobile USB Modem, rev. 2.00/1.00, addr 2

'ugen' means that only the USB generic device driver attached
to your device; check the man page with 'man ugen'

> 
> I've modified /etc/ppp/ppp.conf to use the device mentioned above:
>   set device /dev/ugen1
> and changed username, password, phone# etc according to my provider's
> settings.
> 
> However, when I try to actually dial out, I get:
> tun0: Warning: chat_Write: Operation not supported by device
> 
> Any thoughts?

PPP needs a serial device to work with, 'ugen' does not
provide this; 

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
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ppp/peers/* files

2007-06-26 Thread Jim Stapleton

Hmm, would it be easier for me to setup a 127.0.0.2 loopback and my
gateway, and alway point that to the proper gateway, to make things
easier when I'm switching between VPN and no VPN?

Thanks
-Jim Stapleton

On 6/26/07, Artyom Viklenko <[EMAIL PROTECTED]> wrote:

On Tue, 26 Jun 2007, Jim Stapleton wrote:

> What man/handbook pages/sections should I look at to get a clue. I'm
> so far from having one, I don't even know the direction...

see handbook section about networking.

simply speaking enter

route add ip-of-vpn-server ip-of-your-lan-gateway



then start MPD and check is all ok.
if yes, you can add this route to /etc/rc.conf using
static_routes variable.


>
> Thanks,
> -Jim Stapleton
>
> On 6/26/07, Artyom Viklenko <[EMAIL PROTECTED]> wrote:
>> Jim Stapleton wrote:
>> > That partially worked. I could only ping 192.168.1.1 on my local setup
>> > (router).
>> >
>> > I used
>> > $ mpd pptp0
>> >
>> > However, I couldn't access the work DNS either. The latter output of
>> > MPD looked like:
>> > ==
>> > pptp0] IPCP: rec'd Configure Ack #4 link 0 (Ack-Sent)
>> > IPADDR 
>> > [pptp0] IPCP: state change Ack-Sent --> Opened
>> > [pptp0] IPCP: LayerUp
>> >   -> 
>> > [pptp0] IFACE: Up event
>> > [pptp0] setting interface ng0 MTU to 1396 bytes
>> > [pptp0] exec: /sbin/ifconfig ng0   netmask
>> > 0x -link0
>> > [pptp0] exec: /sbin/route add  -iface lo0
>> > [pptp0] exec: /sbin/route add 0.0.0.0 
>> > [pptp0] exec: command returned 256
>> > ==
>> >
>> >
>> > I could ping  and  after running mpd, but I
>> > could not ping them before running it, or after shutting it down. Both
>> > are valid IP addresses on my works internal network.
>> >
>> > Aside from my nve0 and l0 devices, which look normal, ifconfig
>> > displays the following:
>> >
>> > ==
>> > ng0: flags=88d1 mtu 1396
>> >inet  -->  netmask 0x
>> > ==
>> >
>> > I could not ping the DNS servers.
>> >
>> > Any suggestions?
>>
>> I think you need static route to your VPN server.
>> After setting up tullel your default route changes.
>> This can lead to incorrect routing.
>>
>>
>> --
>>  Sincerely yours,
>>   Artyom Viklenko.
>> ---
>> [EMAIL PROTECTED] | http://www.aws-net.org.ua/~artem
>> FreeBSD: The Power to Serve   -  http://www.freebsd.org
>>
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
>

--
Sincerely yours,
 Artyom Viklenko.
---
[EMAIL PROTECTED] | http://www.aws-net.org.ua/~artem
FreeBSD: The Power to Serve   -  http://www.freebsd.org


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


Re: ppp & dhcp

2007-05-11 Thread WizLayer
On Friday 11 May 2007 06:52:08 pm you wrote:
> Hi,
> HISADDR is never offered in the transaction.
> the if for ppp looks like {registered addresss >> private address }
> The transaction should contain 2 registered addresses which are MYADDR and
> HISADDR.
> The latter is never offered. Ever.
> I need to find a way to make either ppp renegotiate the addresses or get
> dhclient to do it at link up.
>
> TCPdump only works on routable addresses at this point my end thinks it has
> a real HISADDR when it has a private addr, you end up with routing
> conflicts because his end is trying to route to my end of the pipe which
> has a completly different address.
>
> Windows which uses dhcp with it's ppp implementation has to renegotiate as
> well.
>
> BSD ppp has the dhcp client inbuilt.
>
> John
> - Original Message -
> From: "WizLayer" <[EMAIL PROTECTED]>
> To: 
> Sent: Saturday, May 12, 2007 10:12 AM
> Subject: Re: ppp & dhcp

I seriously doubt you'll be able to get dhcp client to work that way unless 
you apply some really ugly hacks to it.  :)  ppp uses IPCP.  See link for 
more details:

http://www.networksorcery.com/enp/protocol/IPCP.htm

Nobody on this list can really guess very well at what your setup is.  If 
you're looking for more specific advice, we need something to work with.

Is this PPOE?  Dial-up?  Do the logs show anything? What does your ppp.conf 
look like?  When you ppp manually and connect, are you able to get a 
renegotiation with 'add! default HISADDR'?  (I'm pretty sure it's a '!' for a 
forced renegotiation if_exist, anyway).  

I've had my share of brain-dead ISP "techs" too.  If it's not on the 
flow-chart they follow when they're talking to you, they're completely lost.  
It's almost funny.  :)

WizLayer

-- 


Life is better with a BSD.
For more info, www.bsd.org.


pgpTrMvz8W2D7.pgp
Description: PGP signature


Re: ppp & dhcp

2007-05-11 Thread WizLayer
On Friday 11 May 2007 05:53:18 pm Mulga wrote:
> Hi,
> I have a very brain dead and full of them self ISP who insist on having a
> misconfigured dhcp server.
>
> One essential peice of infomation is missing from the ppp transaction
> "HISADDR" the GW .
>
> As ppp handles the dhcp side of things internally, would anyone like to
> suggest a way of getting the server to reveal its address.
>
> To date I have tried running dhclient after the linkup, telling the ISP he
> had a small inconsistancy, and got a ear full of abuse for that.
>
> As this provider "Telstra AU" is the only provider of this service I can't
> change. So I need to work around there problem.
>
> Regards John

I'm not sure what you are getting at.  Are you saying that the HISADDR in ppp 
doesn't work because of your ISPs configuration?  Or are you saying that 
you're looking for your ISPs specifics for setup purposes?

You could try a tcpdump on your if while connecting (or trying to connect).  
That should give you an idea of whats going on.  whois, arpinfo...?

HTH

WizLayer  

-- 


Life is better with a BSD.
For more info, www.bsd.org.



pgph4jQCSnbAG.pgp
Description: PGP signature


Re: ppp is broken???

2007-05-10 Thread Nagy László Zsolt



Are you using the  -ddial option?

if you start ppp through rc.conf  add

ppp_mode="ddial"
  
Yes, I was originally using it. Bob said that my rc.conf was obsolete, 
but he did not say why.


  Laszo

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


Re: ppp is broken???

2007-05-10 Thread RW
On Thu, 10 May 2007 10:12:00 +0200
Nagy László Zsolt <[EMAIL PROTECTED]> wrote:

> 
> >   
> >> The format of the statement to add
> >> is ifconfig_=up where  is the NIC's FBSD interface name
> >> used by PPPoE that you specified in the /etc/ppp/ppp.conf file.
> >> ee /etc/rc.conf  # add following statements 
> >> ifconfig_=up
> >> 
> >
> > I've not needed to do this,
> >
> >   
> >> ifconfig_tun0="DHCP"# get your ISP assigned IP address
> >> 
> >
> > PPP has its own mechanism for getting an IP address and dns server
> > addresses. You don't normally need to specify DHCP for the
> > interface. 
> I'm now totally confused. I tried this configuration also, but the 
> connection still drops in every 3 hours. Can it be a problem with the 
> ISP? I'm going to do a stress test with another computer to see if
> the ADSL line is stable or not.
>

Are you using the  -ddial option?

if you start ppp through rc.conf  add

ppp_mode="ddial"

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


Re: ppp is broken???

2007-05-10 Thread Nagy László Zsolt


  

The format of the statement to add
is ifconfig_=up where  is the NIC's FBSD interface name used
by PPPoE that you specified in the /etc/ppp/ppp.conf file.
ee /etc/rc.conf  # add following statements 
ifconfig_=up



I've not needed to do this,

  

ifconfig_tun0="DHCP"# get your ISP assigned IP address



PPP has its own mechanism for getting an IP address and dns server
addresses. You don't normally need to specify DHCP for the interface.
  
I'm now totally confused. I tried this configuration also, but the 
connection still drops in every 3 hours. Can it be a problem with the 
ISP? I'm going to do a stress test with another computer to see if the 
ADSL line is stable or not.


Regards,

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


Re: ppp is broken???

2007-05-08 Thread RW
On Mon, 7 May 2007 10:25:20 -0400
"Bob" <[EMAIL PROTECTED]> wrote:

> The format of the statement to add
> is ifconfig_=up where  is the NIC's FBSD interface name used
> by PPPoE that you specified in the /etc/ppp/ppp.conf file.
> ee /etc/rc.conf  # add following statements 
> ifconfig_=up

I've not needed to do this,

> ifconfig_tun0="DHCP"# get your ISP assigned IP address

PPP has its own mechanism for getting an IP address and dns server
addresses. You don't normally need to specify DHCP for the interface.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ppp is broken???

2007-05-08 Thread Nagy László Zsolt

Bob írta:

The method you are using is obsolete.
The following is all you need.
Take special note of rc.conf statements to use.
  start of DSL ppp.conf  ###
default:

 set log Phase tun #use to avoid excessive log sizes
 set timeout 0 # no idle time out, will not disconnect

dialisp:
 set device PPPoE:XXX  # replace xxx with your NIC device name
 set authname YOURLOGINNAME# Replace with your ISP account username
 set authkey YOURPASSWORD  # Replace with your ISP account password
 add default HISADDR   # Add a (sticky) default route (Mandatory)
 enable dns # Gets the ISP's DNS IP address & places them
# in resolv.conf for reference by FBSD box.

###   End of DSL ppp.conf   #
Replace the XXX in the [set device PPPoE:XXX] statement with the NIC's FBSD
interface name. Sometimes it will be necessary to use a service tag to
establish your connection depending on how your ISP and/or the phone company
has its DSL network configured. Service tags are used to distinguish between
different PPPoE servers attached to a given network. You should have been
given any required service tag information in the documentation provided by
your ISP. If you cannot locate it there, ask your ISP's tech support
personnel. This is the format of the command with the service tag added:
set device PPPoE::service_tag
The  is the FBSD interface name used by PPPoE. The interface must be UP
(IE: enabled). It is only used as a transport, and does not need to be
assigned an IP address. This can be done automatically at boot time by
updating the /etc/rc.conf file. The format of the statement to add is
ifconfig_=up where  is the NIC's FBSD interface name used by PPPoE
that you specified in the /etc/ppp/ppp.conf file.
ee /etc/rc.conf  # add following statements
ifconfig_=up
ifconfig_tun0="DHCP"# get your ISP assigned IP address
  

Dear Bob,

I installed a new OS (release 6.1) just for testing ADSL so others can 
work. What you wrote works fine, except that I had to use "papchap" 
label instead of "dialisp" and I also had to include ppp_enable="YES" in 
/etc/rc.conf.


Now my only question is that, why my configuration was obsolete? I 
noticed that the example file installed by default is from 1999. :-)


Thanks,

  Laszlo

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


Re: ppp is broken???

2007-05-07 Thread Nagy László Zsolt

Bob wrote:

The method you are using is obsolete.
The following is all you need.
Take special note of rc.conf statements to use.
  start of DSL ppp.conf  ###
default:

 set log Phase tun #use to avoid excessive log sizes
 set timeout 0 # no idle time out, will not disconnect

dialisp:
 set device PPPoE:XXX  # replace xxx with your NIC device name
 set authname YOURLOGINNAME# Replace with your ISP account username
 set authkey YOURPASSWORD  # Replace with your ISP account password
 add default HISADDR   # Add a (sticky) default route (Mandatory)
 enable dns # Gets the ISP's DNS IP address & places them
  
Thank you, Bob. You have been very helpful. Right now about 10 people 
are using this computer (with the backup connection, that one uses 
DHCP). I can only try this tomorrow, but I'll write about the results.


Thanks again

 Laszlo

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


RE: ppp is broken???

2007-05-07 Thread Bob
The method you are using is obsolete.
The following is all you need.
Take special note of rc.conf statements to use.
  start of DSL ppp.conf  ###
default:

 set log Phase tun #use to avoid excessive log sizes
 set timeout 0 # no idle time out, will not disconnect

dialisp:
 set device PPPoE:XXX  # replace xxx with your NIC device name
 set authname YOURLOGINNAME# Replace with your ISP account username
 set authkey YOURPASSWORD  # Replace with your ISP account password
 add default HISADDR   # Add a (sticky) default route (Mandatory)
 enable dns # Gets the ISP's DNS IP address & places them
# in resolv.conf for reference by FBSD box.

###   End of DSL ppp.conf   #
Replace the XXX in the [set device PPPoE:XXX] statement with the NIC's FBSD
interface name. Sometimes it will be necessary to use a service tag to
establish your connection depending on how your ISP and/or the phone company
has its DSL network configured. Service tags are used to distinguish between
different PPPoE servers attached to a given network. You should have been
given any required service tag information in the documentation provided by
your ISP. If you cannot locate it there, ask your ISP's tech support
personnel. This is the format of the command with the service tag added:
set device PPPoE::service_tag
The  is the FBSD interface name used by PPPoE. The interface must be UP
(IE: enabled). It is only used as a transport, and does not need to be
assigned an IP address. This can be done automatically at boot time by
updating the /etc/rc.conf file. The format of the statement to add is
ifconfig_=up where  is the NIC's FBSD interface name used by PPPoE
that you specified in the /etc/ppp/ppp.conf file.
ee /etc/rc.conf  # add following statements
ifconfig_=up
ifconfig_tun0="DHCP"# get your ISP assigned IP address


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Nagy László Zsolt
Sent: Monday, May 07, 2007 8:53 AM
To: [EMAIL PROTECTED]; freebsd-questions@freebsd.org
Subject: Re: ppp is broken???

Bob wrote:
> Add these statements to the end of your ppp.conf file.
>
>
>
> disable iface-alias# Stop adding old IP address as alias when ppp
># redials because line was lost. These old IPs
># showed using  ifconfig -a   on tun0.
>
>  # Remove all previous IP address
>
I'll try this.
> Post contents of your ppp.conf  and rc.conf files for review for why you
> keep losing your connection.
>
ppp.conf:

papchap:
# set log Phase Chat LCP IPCP CCP tun command
 set log phase tun command
 set device PPPoE:rl0
 set speed sync
 set mru 1492
 set mtu 1492
 set ctsrts off
 set dial
 set login
 enable lqr
 add default HISADDR
# enable dns # I use my own DNS server (named)
 enable tcpmssfixup
 # non-default below (hack for pptpd)
 set authname [EMAIL PROTECTED]
 set authkey i_am_not_telling_this
 nat enable yes
  nat port tcp 172.16.0.48:3389 51234

rc.conf:

allscreens="80x30"
font8x14="iso02-8x14"
font8x16="iso02-8x16"
font8x8="iso02-8x8"
keymap="hu.iso2.102keys"
keyrate="fast"
scrnmap="iso-8859-1_to_cp437"

gateway_enable="YES"

hostname="not_telling.dyndns.org"
ifconfig_vr0="inet 172.16.0.1  netmask 255.255.240.0"

firewall_enable="YES"
firewall_type="OPEN"
firewall_logging="YES"

# ADSL
ppp_enable="YES"
ppp_mode="ddial"
ppp_nat="YES"

named_enable="YES"

kern_securelevel=2
kern_securelevel_enable="NO"

saver="logo"

sshd_enable="YES"
usbd_enable="NO"

moused_enable="YES"
moused_port="/dev/psm0"
moused_type="auto"

apache2_enable="YES"
apache2ssl_enable="YES"

squid_enable="NO"
mysql_enable="NO"

postgresql_enable="YES"

rpcbind_enable="YES"
nfs_server_enable="YES"
nfs_reserved_port_only="YES"
mountd_flags="-r"
inetd_enable="YES"

dovecot_enable="YES"
gdm_enable="YES"

dhcpd_enable="YES"
dhcpd_ifaces="vr0"

tomcat50_enable="YES"

samba_enable="YES"
slapd_enable="YES"
slapd_flags=' -h "ldap://127.0.0.1/ ldaps://0.0.0.0/"'

#postfix_enable="YES"


___
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: ppp is broken???

2007-05-07 Thread J.D. Bronson

At 07:53 AM 05/07/2007, =?ISO-8859-2?Q?Nagy_L=E1szl=F3_Zsolt?= wrote:


disable iface-alias# Stop adding old IP address as alias when ppp
   # redials because line was lost. These old IPs
   # showed using  ifconfig -a   on tun0.

 iface clear   # Remove all previous IP address


I'll try this.

Post contents of your ppp.conf  and rc.conf files for review for why you
keep losing your connection.


ppp.conf:

papchap:
# set log Phase Chat LCP IPCP CCP tun command
set log phase tun command
set device PPPoE:rl0
set speed sync
set mru 1492
set mtu 1492
set ctsrts off
set dial
set login
enable lqr
add default HISADDR
# enable dns # I use my own DNS server (named)
enable tcpmssfixup
# non-default below (hack for pptpd)
set authname [EMAIL PROTECTED]
set authkey i_am_not_telling_this
nat enable yes
 nat port tcp 172.16.0.48:3389 51234



Specifying NAT in your ppp.conf is whats causing this.
If you add the 2 lines mentioned above, it should take care of this.

For people that DONT use NAT within ppp.conf (perhaps they use 
pf)..this is not an issue normally.


-JD







--
J.D. Bronson
Telecommunications Site Support
Aurora West Allis Memorial Hospital
Office: 414.978.8282 Fax: 414.977.5299
http://www.myspace.com/wrqz

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


Re: ppp is broken???

2007-05-07 Thread Nagy László Zsolt

Bob wrote:

Add these statements to the end of your ppp.conf file.



disable iface-alias# Stop adding old IP address as alias when ppp
   # redials because line was lost. These old IPs
   # showed using  ifconfig -a   on tun0.

 iface clear   # Remove all previous IP address
  

I'll try this.

Post contents of your ppp.conf  and rc.conf files for review for why you
keep losing your connection.
  

ppp.conf:

papchap:
# set log Phase Chat LCP IPCP CCP tun command
set log phase tun command
set device PPPoE:rl0
set speed sync
set mru 1492
set mtu 1492
set ctsrts off
set dial
set login
enable lqr
add default HISADDR
# enable dns # I use my own DNS server (named)
enable tcpmssfixup
# non-default below (hack for pptpd)
set authname [EMAIL PROTECTED]
set authkey i_am_not_telling_this
nat enable yes
 nat port tcp 172.16.0.48:3389 51234

rc.conf:

allscreens="80x30"
font8x14="iso02-8x14"
font8x16="iso02-8x16"
font8x8="iso02-8x8"
keymap="hu.iso2.102keys"
keyrate="fast"
scrnmap="iso-8859-1_to_cp437"

gateway_enable="YES"

hostname="not_telling.dyndns.org"
ifconfig_vr0="inet 172.16.0.1  netmask 255.255.240.0"

firewall_enable="YES"
firewall_type="OPEN"
firewall_logging="YES"

# ADSL
ppp_enable="YES"
ppp_mode="ddial"
ppp_nat="YES"

named_enable="YES"

kern_securelevel=2
kern_securelevel_enable="NO"

saver="logo"

sshd_enable="YES"
usbd_enable="NO"

moused_enable="YES"
moused_port="/dev/psm0"
moused_type="auto"

apache2_enable="YES"
apache2ssl_enable="YES"

squid_enable="NO"
mysql_enable="NO"

postgresql_enable="YES"

rpcbind_enable="YES"
nfs_server_enable="YES"
nfs_reserved_port_only="YES"
mountd_flags="-r"
inetd_enable="YES"

dovecot_enable="YES"
gdm_enable="YES"

dhcpd_enable="YES"
dhcpd_ifaces="vr0"

tomcat50_enable="YES"

samba_enable="YES"
slapd_enable="YES"
slapd_flags=' -h "ldap://127.0.0.1/ ldaps://0.0.0.0/"'

#postfix_enable="YES"


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


RE: ppp is broken???

2007-05-07 Thread Bob
Add these statements to the end of your ppp.conf file.



disable iface-alias# Stop adding old IP address as alias when ppp
   # redials because line was lost. These old IPs
   # showed using  ifconfig -a   on tun0.

 iface clear   # Remove all previous IP address


Post contents of your ppp.conf  and rc.conf files for review for why you
keep losing your connection.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Laszlo Nagy
Sent: Monday, May 07, 2007 6:12 AM
To: freebsd-questions@freebsd.org
Subject: ppp is broken???


  Hi All,

I have a FreeBSD 6.2 RELEASE system that connects to the internet with
an ADSL connection. (pppoe). After some hours, it gets disconnected and
reconnected again. Each time it gets a new IP. The interesting part is
that the old IP address remains assigned. Here is an example:

tun0: flags=8051 mtu 1492
inet 62.112.215.17 --> 62.112.192.130 netmask 0x
inet 83.216.40.248 --> 62.112.192.142 netmask 0x
inet 83.216.56.211 --> 62.112.192.150 netmask 0x
Opened by PID 241


After the third or fourth connection was made, internet stops working,
and I have to reboot the computer.  (When there is light traffic on the
connection, it never gets disconnected.)

This is from /var/log/ppp

May  5 02:05:14 messias ppp[242]: tun0: Phase: deflink: Connected!
May  5 02:05:14 messias ppp[242]: tun0: Phase: deflink: opening -> dial
May  5 02:05:14 messias ppp[242]: tun0: Phase: deflink: dial -> carrier
May  5 02:05:15 messias ppp[242]: tun0: Phase: Received NGM_PPPOE_ACNAME
(hook "adsl")
May  5 02:05:15 messias ppp[242]: tun0: Phase: Received NGM_PPPOE_SESSIONID
May  5 02:05:15 messias ppp[242]: tun0: Phase: Received NGM_PPPOE_SUCCESS
May  5 02:05:15 messias ppp[242]: tun0: Phase: deflink: carrier -> login
May  5 02:05:15 messias ppp[242]: tun0: Phase: deflink: login -> lcp
May  5 02:05:16 messias ppp[242]: tun0: Phase: bundle: Authenticate
May  5 02:05:16 messias ppp[242]: tun0: Phase: deflink: his = PAP, mine
= none
May  5 02:05:16 messias ppp[242]: tun0: Phase: Pap Output:
[EMAIL PROTECTED] 
May  5 02:05:16 messias ppp[242]: tun0: Phase: Pap Input: SUCCESS ()
May  5 02:05:16 messias ppp[242]: tun0: Phase: deflink: lcp -> open
May  5 02:05:16 messias ppp[242]: tun0: Phase: bundle: Network
May  5 08:04:12 messias ppp[242]: tun0: Phase: deflink: ** Too many LQR
packets lost **
May  5 08:04:12 messias ppp[242]: tun0: Phase: deflink: open -> lcp
May  5 08:04:12 messias ppp[242]: tun0: Phase: bundle: Terminate
May  5 08:04:12 messias ppp[242]: tun0: Phase: deflink: Disconnected!
May  5 08:04:12 messias ppp[242]: tun0: Phase: deflink: lcp -> logout
May  5 08:04:12 messias ppp[242]: tun0: Phase: deflink: Disconnected!
May  5 08:04:12 messias ppp[242]: tun0: Phase: deflink: logout -> hangup
May  5 08:04:12 messias ppp[242]: tun0: Phase: deflink: Connect time:
21538 secs: 2769865242 octets in, 86030307 octets out
May  5 08:04:12 messias ppp[242]: tun0: Phase: deflink: 3691156 packets
in, 2331858 packets out
May  5 08:04:12 messias ppp[242]: tun0: Phase:  total 132597 bytes/sec,
peak 279371 bytes/sec on Sat May  5 05:44:10 2007
May  5 08:04:12 messias ppp[242]: tun0: Phase: deflink: hangup -> opening
May  5 08:04:12 messias ppp[242]: tun0: Phase: bundle: Establish
May  5 08:04:12 messias ppp[242]: tun0: Phase: deflink: Enter pause (3)
for redialing.
May  5 08:04:15 messias ppp[242]: tun0: Phase: deflink: Connected!
May  5 08:04:15 messias ppp[242]: tun0: Phase: deflink: opening -> dial
May  5 08:04:15 messias ppp[242]: tun0: Phase: deflink: dial -> carrier
May  5 08:04:16 messias ppp[242]: tun0: Phase: Received NGM_PPPOE_ACNAME
(hook "adsl")
May  5 08:04:16 messias ppp[242]: tun0: Phase: Received NGM_PPPOE_SESSIONID
May  5 08:04:16 messias ppp[242]: tun0: Phase: Received NGM_PPPOE_SUCCESS
May  5 08:04:16 messias ppp[242]: tun0: Phase: deflink: carrier -> login
May  5 08:04:16 messias ppp[242]: tun0: Phase: deflink: login -> lcp
May  5 08:04:17 messias ppp[242]: tun0: Phase: bundle: Authenticate
May  5 08:04:17 messias ppp[242]: tun0: Phase: deflink: his = PAP, mine
= none
May  5 08:04:17 messias ppp[242]: tun0: Phase: Pap Output:
[EMAIL PROTECTED] 
May  5 08:04:18 messias ppp[242]: tun0: Phase: Pap Input: SUCCESS ()
May  5 08:04:18 messias ppp[242]: tun0: Phase: deflink: lcp -> open
May  5 08:04:18 messias ppp[242]: tun0: Phase: bundle: Network
May  5 11:07:32 messias ppp[242]: tun0: Phase: deflink: ** Too many LQR
packets lost **

Please help me, this computer needs to be connected continuously.

Thanks,

   Laszlo

___
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

Re: PPP and resolv.conf

2007-04-18 Thread Lowell Gilbert
"Richard Simmonds" <[EMAIL PROTECTED]> writes:

>  
>
> -Original Message-
> From: RW [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, April 18, 2007 1:11 AM
> To: freebsd-questions@freebsd.org
> Cc: [EMAIL PROTECTED]
> Subject: Re: PPP and resolv.conf
>
> On Tue, 17 Apr 2007 14:48:25 +0800
> "Richard Simmonds" <[EMAIL PROTECTED]> wrote:
>
>>  
>> >How can I stop ppp from modifying my /etc/resolv.conf?
>> >Everytime I establish a pppoe session, my resolv.conf file gets
>> reconfigured to my ISPs DNS Servers.
>> 
>> It's dhclient, not ppp that's modding the file.
>
>>This is unlikely. PPP normally provides the dns server addresses itself, in
> which case the suggestion to remove "enable dns" from ppp.conf is correct.
>
> Well, as always, YMMV. 
>
> If the connection is providing a dynamic address via dhcp, as my ADSL
> provider is, it appears to be dhclient that's updating resolv.conf so the
> setup as stated works for me. I have 'enable dns' in my ppp.conf file as
> well but my provider doesn't seem to be able to offer a dns server address
> correctly, which is why I run one locally on the network. I suspect it is
> probably a setup error on my part but I have neither the time or the
> inclination to tinker with it any more than I have to.

If DHCP is setting it, then use the "prepend" or "supersede" keywords
on "domain-name-servers" in your dhclient.conf(5).
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: PPP and resolv.conf

2007-04-18 Thread Richard Simmonds
 

-Original Message-
From: RW [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 18, 2007 1:11 AM
To: freebsd-questions@freebsd.org
Cc: [EMAIL PROTECTED]
Subject: Re: PPP and resolv.conf

On Tue, 17 Apr 2007 14:48:25 +0800
"Richard Simmonds" <[EMAIL PROTECTED]> wrote:

>  
> >How can I stop ppp from modifying my /etc/resolv.conf?
> >Everytime I establish a pppoe session, my resolv.conf file gets
> reconfigured to my ISPs DNS Servers.
> 
> It's dhclient, not ppp that's modding the file.

>This is unlikely. PPP normally provides the dns server addresses itself, in
which case the suggestion to remove "enable dns" from ppp.conf is correct.

Well, as always, YMMV. 

If the connection is providing a dynamic address via dhcp, as my ADSL
provider is, it appears to be dhclient that's updating resolv.conf so the
setup as stated works for me. I have 'enable dns' in my ppp.conf file as
well but my provider doesn't seem to be able to offer a dns server address
correctly, which is why I run one locally on the network. I suspect it is
probably a setup error on my part but I have neither the time or the
inclination to tinker with it any more than I have to.

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


Re: PPP and resolv.conf

2007-04-17 Thread RW
On Tue, 17 Apr 2007 14:48:25 +0800
"Richard Simmonds" <[EMAIL PROTECTED]> wrote:

>  
> >How can I stop ppp from modifying my /etc/resolv.conf?
> >Everytime I establish a pppoe session, my resolv.conf file gets
> reconfigured to my ISPs DNS Servers.
> 
> It's dhclient, not ppp that's modding the file.

This is unlikely. PPP normally provides the dns server addresses
itself, in which case the suggestion to remove "enable dns" from
ppp.conf is correct.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: PPP and resolv.conf

2007-04-17 Thread Ivan Carey

Daniel Marsh wrote:

On 4/17/07, Ansar Mohammed <[EMAIL PROTECTED]> wrote:


How can I stop ppp from modifying my /etc/resolv.conf?
Everytime I establish a pppoe session, my resolv.conf file gets
reconfigured
to my ISPs DNS Servers.



You could make resolv.conf to what you want it to be and then do: chflags
schg /etc/resolv.conf

That will stop anything from modifying it, if you're in securelevel 1 or
more you can't take schg off, you need to reboot into securelevel 0.

Other than that, check the ppp man page for an option...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
"[EMAIL PROTECTED]"


.

do you have enable dns in your ppp.conf file? I had the same thing and 
commented the enable dns to resolve


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


Re: PPP and resolv.conf

2007-04-16 Thread Daniel Marsh

On 4/17/07, Ansar Mohammed <[EMAIL PROTECTED]> wrote:


How can I stop ppp from modifying my /etc/resolv.conf?
Everytime I establish a pppoe session, my resolv.conf file gets
reconfigured
to my ISPs DNS Servers.



You could make resolv.conf to what you want it to be and then do: chflags
schg /etc/resolv.conf

That will stop anything from modifying it, if you're in securelevel 1 or
more you can't take schg off, you need to reboot into securelevel 0.

Other than that, check the ppp man page for an option...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ppp interruption

2007-02-06 Thread Peter
Le Mercredi 7 Février 2007 02:10, Brian Walker a écrit :
> Greetings all,
>
> Problem with maintaining the internet connection: on startup I do:
>
> # ppp -ddial internet
>
> and all is well. It may be 2 days, it may be one hour later I fail to
> connect to mail and internet. When I check the connection using:
>
> $ bash-2.05b$ netstat -rn
> Routing tables
>
> Internet:
> DestinationGatewayFlagsRefs  Use  Netif
> Expire default   202.64.10.27   UGS018028
>   tun0 127.0.0.1  127.0.0.1  UH  0 
> 441 lo0 202.64.10.27210.17.143.28  UH  10
>   tun0
>
> So all would still appear to be OK, but nevertheless I get no mail
> and no connection to a web page. OK, I redo ppp -ddial internet, and
> I get the following netstat -rn printout:
>
> bash-2.05b$ netstat -rn
> Routing tables
>
> Internet:
> Destination Gateway   FlagsRefs  Use 
> Netif Expire
> default202.64.10.32 UGS 018090  
> tun1 127.0.0.1127.0.0.1UH  0 
> 441 lo0 202.64.10.27   210.17.143.28   UH  0 
>   0  tun0 202.64.10.32   210.17.197.153  UH  1   
> 0  tun1
>
>
> And all works for a while, but . stops. So I reboot, and all
> works like a charm.
>
> Checking /var/log/ppp.log I see episodes of this:
>
> Feb  7 12:18:17  ppp[9716]: Warning: iface add: ioctl(SIOCAIFADDR,
> 210.17.198.175 -> 202.64.10.32): File exists
> Feb  7 12:18:17  ppp[9716]: Error: ipcp_InterfaceUp: unable to set ip
> address
> Feb  7 12:18:32  ppp[9716]: Phase: bundle: Terminate
> Feb  7 12:18:32  ppp[9716]: Phase: deflink: open -> lcp
> Feb  7 12:18:32  ppp[9716]: Phase: deflink: Disconnected!
> Feb  7 12:18:32  ppp[9716]: Phase: deflink: lcp -> logout
> Feb  7 12:18:32  ppp[9716]: Phase: deflink: logout -> hangup
> Feb  7 12:18:32  ppp[9716]: Phase: deflink: Disconnected!
>
> But reconnecting gives this output:
>
> Feb  7 13:53:08  ppp[1292]: Phase: Using interface: tun1
> Feb  7 13:53:08  ppp[1292]: Phase: deflink: Created in closed state
> Feb  7 13:53:30  ppp[1357]: Phase: PPP Started (ddial mode).
> Feb  7 13:53:30  ppp[1357]: Phase: bundle: Establish
> Feb  7 13:53:30  ppp[1357]: Phase: deflink: closed -> opening
> Feb  7 13:53:30  ppp[1357]: Phase: deflink: Connected!
> Feb  7 13:53:30  ppp[1357]: Phase: deflink: opening -> dial
> Feb  7 13:53:30  ppp[1357]: Phase: deflink: dial -> carrier
> Feb  7 13:53:31  ppp[1357]: Phase: Received NGM_PPPOE_ACNAME (hook
> "VTA23-1-RX")
> Feb  7 13:53:31  ppp[1357]: Phase: Received NGM_PPPOE_SESSIONID
> Feb  7 13:53:31  ppp[1357]: Phase: Received NGM_PPPOE_SUCCESS
> Feb  7 13:53:31  ppp[1357]: Phase: deflink: carrier -> login
> Feb  7 13:53:31  ppp[1357]: Phase: deflink: login -> lcp
> Feb  7 13:53:32  ppp[1357]: Warning: deflink: Reducing configured MRU
> from 1500 to 1492
> Feb  7 13:53:32  ppp[1357]: Phase: bundle: Authenticate
> Feb  7 13:53:32  ppp[1357]: Phase: deflink: his = PAP, mine = none
> Feb  7 13:53:32  ppp[1357]: Phase: Pap Output: [EMAIL PROTECTED] 
> Feb  7 13:53:32  ppp[1357]: Phase: Pap Input: SUCCESS ()
> Feb  7 13:53:32  ppp[1357]: Phase: deflink: lcp -> open
> Feb  7 13:53:32  ppp[1357]: Phase: bundle: Network
> Feb  7 13:53:32  ppp[1357]: Phase: deflink: IPV6CP protocol reject
> closes IPV6CP !
>
>
> 1. What are the possible causes?
> 2. Why does the routing table still show an active connection?
> 3. What steps could I take in troubleshooting?

You know the drill.  Give us something to work with (hint: ppp.conf).

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


Re: ppp not starting at boot

2006-06-23 Thread Pablo Mora

On 6/21/06, Michael P. Soulier <[EMAIL PROTECTED]> wrote:

On 20/06/06 Michael P. Soulier said:

> Hey people,
>
> I had a power failure today (there goes my uptime) that lasted longer than my
> UPS, and when the box came back up, my PPPoE connection did not.
>
> # Enable PPPoE
> ppp_enable="YES"
> ppp_mode="ddial"
> ppp_nat="YES"
> ppp_profile="storm"
>
> Is this not correct? Should this not cause ppp to be started, using the
> "storm" profile, at boot?
>
> I had to do it manually via
>
> ppp -ddial storm

This seems to be started by the ppp-user rc script, but it didn't seem to
happen.

Any ideas?


try with:
ppp_enable="YES"
ppp_mode="ddial"
#ppp_nat="YES"
ppp_profile="storm"

and reboot.

Mike

--
Michael P. Soulier <[EMAIL PROTECTED]>
"Any intelligent fool can make things bigger and more complex... It
takes a touch of genius - and a lot of courage to move in the opposite
direction." --Albert Einstein






--
Linux is for people who hate Micro$oft. BSD is for people who love Unix ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ppp not starting at boot

2006-06-23 Thread Michael P. Soulier
On 21/06/06 Matthias Fechner said:

> > # Enable PPPoE
> > ppp_enable="YES"
> > ppp_mode="ddial"
> > ppp_nat="YES"
> > ppp_profile="storm"
> > 
> > Is this not correct? Should this not cause ppp to be started, using the
> > "storm" profile, at boot?
> > 
> > I had to do it manually via
> > 
> > ppp -ddial storm
> 
> I remember that on FreeBSD 6.x the script ppp-user has changed to ppp,
> maybe updated without using mergemaster?

Well, I'm using 5.4.

Mike

-- 
Michael P. Soulier <[EMAIL PROTECTED]>
"Any intelligent fool can make things bigger and more complex... It
takes a touch of genius - and a lot of courage to move in the opposite
direction." --Albert Einstein


pgpu6Q7Q6EbrA.pgp
Description: PGP signature


Re: ppp not starting at boot

2006-06-21 Thread Matthias Fechner
Hello Michael,

* Michael P. Soulier <[EMAIL PROTECTED]> [20-06-06 19:32]:
> # Enable PPPoE
> ppp_enable="YES"
> ppp_mode="ddial"
> ppp_nat="YES"
> ppp_profile="storm"
> 
> Is this not correct? Should this not cause ppp to be started, using the
> "storm" profile, at boot?
> 
> I had to do it manually via
> 
> ppp -ddial storm

I remember that on FreeBSD 6.x the script ppp-user has changed to ppp,
maybe updated without using mergemaster?


Best regards,
Matthias

-- 

"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the universe trying to
produce bigger and better idiots. So far, the universe is winning." --
Rich Cook


pgpTxRCbFpjIs.pgp
Description: PGP signature


Re: ppp not starting at boot

2006-06-21 Thread Michael P. Soulier
On 20/06/06 Michael P. Soulier said:

> Hey people,
> 
> I had a power failure today (there goes my uptime) that lasted longer than my
> UPS, and when the box came back up, my PPPoE connection did not.
> 
> # Enable PPPoE
> ppp_enable="YES"
> ppp_mode="ddial"
> ppp_nat="YES"
> ppp_profile="storm"
> 
> Is this not correct? Should this not cause ppp to be started, using the
> "storm" profile, at boot?
> 
> I had to do it manually via
> 
> ppp -ddial storm

This seems to be started by the ppp-user rc script, but it didn't seem to
happen. 

Any ideas?

Mike

-- 
Michael P. Soulier <[EMAIL PROTECTED]>
"Any intelligent fool can make things bigger and more complex... It
takes a touch of genius - and a lot of courage to move in the opposite
direction." --Albert Einstein


pgpqn95nJmwIK.pgp
Description: PGP signature


Re: ppp and pf interacting badly?

2006-01-27 Thread cpghost
On Fri, Jan 27, 2006 at 07:12:14PM -0500, Peter wrote:
> --- cpghost <[EMAIL PROTECTED]> wrote:
> > Is there any way to tell pf startup script to wait for ppp
> > until all needed interfaces have really come up?
> 
> >From the OpenBSD 3.8 manpage (should be good for you):
> 
> Host name resolution and interface to address translation are done
> at ruleset load-time.  When the address of an interface (or host
> name) changes (under DHCP or PPP, for instance), the ruleset must
> be reloaded for the change to be reflected in the kernel.  Sur-
> rounding the interface name (and optional modifiers) in parentheses
> changes this behaviour.  When the interface name is surrounded by
> parentheses, the rule is automatically updated whenever the inter-
> face changes its address.  The ruleset does not need to be reload-
> ed.  This is especially useful with nat.

Ah, good point! I'll try this on the next maintenance window!
Thanks for the valuable hint.

Are you sure it also works for interfaces that don't exist yet?
It's not a question of tun0 changing addresses (static IP in
this particular case), but of tun0 not existing before ppp has
a chance to start at all?

-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ppp and pf interacting badly?

2006-01-27 Thread Peter

--- cpghost <[EMAIL PROTECTED]> wrote:

> Hello,
> 
> has anyone else seen this strange interaction between
> (user-)ppp and pf (on RELENG_6)?
> 
> When configuring tun0 as external interface in pf.conf,
> pf won't start when booting, because ppp has not yet had
> time to initialize tun0. Result is, that pf is then
> disabled (!).
> 
> After booting, calling
> /etc/rc.d/pf start
> manually works well though, since tun0 is now there
> and pf can initialize.
> 
> Am I the only one seeing this happen?
> 
> Is there any way to tell pf startup script to wait for ppp
> until all needed interfaces have really come up?

>From the OpenBSD 3.8 manpage (should be good for you):

Host name resolution and interface to address translation are done
at ruleset load-time.  When the address of an interface (or host
name) changes (under DHCP or PPP, for instance), the ruleset must
be reloaded for the change to be reflected in the kernel.  Sur-
rounding the interface name (and optional modifiers) in parentheses
changes this behaviour.  When the interface name is surrounded by
parentheses, the rule is automatically updated whenever the inter-
face changes its address.  The ruleset does not need to be reload-
ed.  This is especially useful with nat.

--
Peter







__ 
Find your next car at http://autos.yahoo.ca
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: PPP setup through OS X

2005-10-21 Thread Eric F Crist

On Oct 20, 2005, at 8:53 AM, Lowell Gilbert wrote:


Live-Wire <[EMAIL PROTECTED]> writes:


I'm going to be connecting my 5.4 box w/ no monitor to my network,  
but

before I move it to the router area I want to make sure
I'll be able to change the network configuration without lugging the
box back to where I can plug it into a monitor. Is there a guide
or reference to plugging in my Mac OS X laptop directly into my box
with PPP to configure it for the network? What other issues
do I have to be aware of?



I'm not sure exactly what you're asking for.
You will probably need to look elsewhere for help configuring your  
Mac.

For the FreeBSD side, there are pages in the handbook, as well as the
ppp(8) manual.  Let us know what you've tried, and what went wrong.


You can do this by simply enabling your FBSD server's serial port.  I  
do this on two different machines and things work great.  Also note  
that I used to handle this with my PowerBook G4.  You're going to  
probably need a USB->Serial Port adapter.  I would recommend the  
Keyspan model.  I don't remember what terminal software I used to use  
as I also have a windows laptop now that I use when I must connect to  
the BSD boxes via serial.


HTH

___
Eric F Crist  "I am so smart, S.M.R.T!"
Secure Computing Networks  -Homer J Simpson

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


Re: PPP setup through OS X

2005-10-20 Thread Lowell Gilbert
Live-Wire <[EMAIL PROTECTED]> writes:

> I'm going to be connecting my 5.4 box w/ no monitor to my network, but
> before I move it to the router area I want to make sure
> I'll be able to change the network configuration without lugging the
> box back to where I can plug it into a monitor. Is there a guide
> or reference to plugging in my Mac OS X laptop directly into my box
> with PPP to configure it for the network? What other issues
> do I have to be aware of?

I'm not sure exactly what you're asking for.
You will probably need to look elsewhere for help configuring your Mac.
For the FreeBSD side, there are pages in the handbook, as well as the
ppp(8) manual.  Let us know what you've tried, and what went wrong.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: PPP tunnel problem!

2005-09-16 Thread Lowell Gilbert
Felix Chang <[EMAIL PROTECTED]> writes:

> Hi,
> 
>I am using the FreeBSD to become the NAS so that
> can provide PPPoE and PPP services to the clients
> which is worked with the Radius. I have successfully
> started the PPP and PPPoE services and connected to
> the internet with the authentication of the Radius.
> However, I face one serious problem. During the time
> the client was connecting to the internet, if the
> client unplugs the cable or shut down their PC without
> disconnection, the tunnel created was still remain in
> the NAS. This make the client cannot connect to the
> internet anymore as I set the radius not to allow any
> duplicated login. 
> 
>May I know is that anyway for the FreeBSD to kill
> the tunnel automatically when the client unplugs the
> cable or shutdown the PC without disconnection. I had
> tried the "set timeout" in the ppp.conf but I don't
> think this is the right solution.

Why isn't it the right solution?  The physical interface is still up,
so I don't see any other way to detect that the client has gone away.  

Well, maybe you could set up RADIUS to kill the first session when
(successfully) authenticating the second.  But that would likely be
tricky 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]"


Re: PPP Dialin Server Problem - > Can you help me?

2005-06-14 Thread Bob Bomar

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

baijumb wrote:
|
|
|
| Dear Sir,
|
|
|
| I have PPPDial-In Server communication problem. Can you give me an
guideline where I missed or doing wrong ?
|
|
|
|
|
| Linux Ver. : Read Hat (rel.11) Fedora
Linux 2

You will need to contact a linux list, this is a FreeBSD list,
similar but not the same.

- --
Bob Bomar
[EMAIL PROTECTED]
http://www.bomar.us/~bob
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (Darwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCr6lf9Jm/aTrtdKoRAmZBAJ9KLkn5o9VlIUZgf7kgu8f7gylqXwCcDf/l
qmz8oujcbsr+BNkP7X/cx2Y=
=c1sP
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ppp filling /var

2005-06-03 Thread James
On Thursday 02 June 2005 06:53 pm, Matthew Emmerton wrote:
> On Thu, 2 Jun 2005, James wrote:
> > On Thursday 02 June 2005 07:30 am, Dmitry Mityugov wrote:
> >> On 6/2/05, James <[EMAIL PROTECTED]> wrote:
> >>> Forgot to include this:
> >>>
> >>> FreeBSD 4.11-RELEASE-p2 #3
> >>>
> >>> # cat ppp.conf:
> >>>
> >>> default:
> >>> set device PPPoE:ed0
> >>> set speed sync
> >>> set mru 1492
> >>> set mtu 1492
> >>> set ctsrts on
> >>> #enable dns
> >>> enable lqr
> >>> set log phase tun
> >>> add default HISADDR
> >>> dsl:
> >>> set authname 
> >>> set authkey **
> >>>
> >>>
> >>> # cat ppp.linkup
> >>> MYADDR:
> >>> !bg /sbin/natd -f /etc/natd.conf
> >>>
> >>> #cat natd.conf
> >>> interface tun0
> >>> log yes
>
>  ^^ - do you need this?  Try using "log no" and see if your /var space
> issues go away.

That fixed it! Thanks for the support people. I wasn't 
seeing /var/log/alias.log* growing to 100mb+ so I never considered that that 
was the problem. 

-rw---  1 root  wheel 80B Jun  2 18:00 /var/log/alias.log
-rw---  1 root  wheel109K Jun  2 18:00 /var/log/alias.log.0.gz
-rw---  1 root  wheel 44K Jun  2 05:00 /var/log/alias.log.1.gz
-rw---  1 root  wheel 18K Apr 14 20:00 /var/log/alias.log.10.gz
-rw---  1 root  wheel 37K May 26 15:00 /var/log/alias.log.2.gz
-rw---  1 root  wheel 57K May 22 19:00 /var/log/alias.log.3.gz
-rw---  1 root  wheel 68K May 12 05:00 /var/log/alias.log.4.gz
-rw---  1 root  wheel 68K Apr 26 11:00 /var/log/alias.log.5.gz
-rw---  1 root  wheel  8K Apr 23 06:00 /var/log/alias.log.6.gz
-rw---  1 root  wheel 68K Apr 22 22:00 /var/log/alias.log.7.gz
-rw---  1 root  wheel 58K Apr 22 00:00 /var/log/alias.log.8.gz
-rw---  1 root  wheel 20K Apr 19 10:00 /var/log/alias.log.9.gz

# man natd
... snip ...
-log | -l   Log various aliasing statistics and information to the file
 /var/log/alias.log.  This file is truncated each time natd is
 started.
... snip ...

Does "log yes" cause natd to write a log to a different place then "-l"
It seems to have created some type of ghost file in var.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ppp filling /var

2005-06-02 Thread Matthew Emmerton



On Thu, 2 Jun 2005, James wrote:


On Thursday 02 June 2005 07:30 am, Dmitry Mityugov wrote:

On 6/2/05, James <[EMAIL PROTECTED]> wrote:

Forgot to include this:

FreeBSD 4.11-RELEASE-p2 #3

# cat ppp.conf:

default:
set device PPPoE:ed0
set speed sync
set mru 1492
set mtu 1492
set ctsrts on
#enable dns
enable lqr
set log phase tun
add default HISADDR
dsl:
set authname 
set authkey **


# cat ppp.linkup
MYADDR:
!bg /sbin/natd -f /etc/natd.conf

#cat natd.conf
interface tun0
log yes


^^ - do you need this?  Try using "log no" and see if your /var space 
issues go away.


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


Re: ppp filling /var

2005-06-02 Thread James
On Thursday 02 June 2005 07:30 am, Dmitry Mityugov wrote:
> On 6/2/05, James <[EMAIL PROTECTED]> wrote:
> > Forgot to include this:
> >
> > FreeBSD 4.11-RELEASE-p2 #3
> >
> > # cat ppp.conf:
> >
> > default:
> > set device PPPoE:ed0
> > set speed sync
> > set mru 1492
> > set mtu 1492
> > set ctsrts on
> > #enable dns
> > enable lqr
> > set log phase tun
> > add default HISADDR
> > dsl:
> > set authname 
> > set authkey **
> >
> >
> > # cat ppp.linkup
> > MYADDR:
> > !bg /sbin/natd -f /etc/natd.conf
> >
> > #cat natd.conf
> > interface tun0
> > log yes
> > use_sockets yes
> > same_ports yes
> > redirect_port udp 10.0.0.10:53 53
> > redirect_port tcp 10.0.0.101:22 22
> > redirect_port tcp 10.0.0.101:25 25
> > redirect_port tcp 10.0.0.101:80 80
> > redirect_port tcp 10.0.0.101:110 110
> > redirect_port tcp 10.0.0.101:443 443
> > redirect_port tcp 10.0.0.101:587 587
>
> Not sure if this even possible but if nobody else gives a better idea
> - can't this be caused by natd, or the way you start it from
> ppp.linkup? Can you use nat embetted in ppp instead?

It is natd causing this. I configured this box a while ago, and if I remember 
correctly, I didn't use the ppp -nat is that I had alot of problems with the 
ipfw rules.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ppp filling /var

2005-06-02 Thread James
On Thursday 02 June 2005 07:21 am, Alex Zbyslaw wrote:
> James wrote:
> >After ppp runs for a few days:
> >
> ># df
> >FilesystemSize   Used  Avail Capacity  Mounted on
> >/dev/ad0s1a   126M49M67M42%/
> >/dev/ad0s1f   252M18K   232M 0%/tmp
> >/dev/ad0s1g   8.1G   1.1G   6.4G15%/usr
> >/dev/ad0s1e   252M   252M -20.0M   109%/var  >procfs4.0K   4.0K 0B   100%/proc
> >
> ># du -h /var
> >... snip ...
> >12M/var
>
> If a file is opened, deleted and then written to, it will keep taking space
> without showing up under du.  Does fstat show anything useful when ppp is
> running?
>
> Could you use pppd instead?

# fstat -f /var
USER CMD  PID   FD MOUNT  INUM MODE SZ|DV R/W
aksisfstat  72843   wd /var  16259 drwxr-xr-x1536  r
root natd   722994 /var  16266 -rw---  31316863  w
aksisbash   68199   wd /var  16259 drwxr-xr-x1536  r
smmspsendmail 318   wd /var 34 drwxrwx--- 512  r
smmspsendmail 3184 /var244 -rw---  49  w
root sendmail 315   wd /var 23 drwxr-xr-x 512  r
root sendmail 3157 /var 96 -rw---  43  w
root cron 217   wd /var  9 drwxr-x--- 512  r
root cron 2173 /var304 -rw-r--r--   4 rw
root syslogd  2097 /var  16290 -rw---  100708  w
root syslogd  2098 /var  16285 -rw---   86683  w
root syslogd  2099 /var  16279 -rw---   12534  w
root syslogd  209   10 /var  16325 -rw---1892  w
root syslogd  209   11 /var  16281 -rw-r--r--   0  w
root syslogd  209   12 /var  16301 -rw---   11407  w
root syslogd  209   13 /var  16317 -rw---   83869  w
root syslogd  209   15 /var  16286 -rw-r-   0  w
root syslogd  209   16 /var  16263 -rw---   26137  w

So it looks like it is natd and not ppp. 
lsof isn't showing what file natd has open and is writing to.

At this time, I don't know how to configure pppd, so I can't use it yet. :-(

What does natd do that !!! :-\ is that a bug?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ppp filling /var

2005-06-02 Thread Dmitry Mityugov
On 6/2/05, James <[EMAIL PROTECTED]> wrote:
> Forgot to include this:
> 
> FreeBSD 4.11-RELEASE-p2 #3
> 
> # cat ppp.conf:
> 
> default:
> set device PPPoE:ed0
> set speed sync
> set mru 1492
> set mtu 1492
> set ctsrts on
> #enable dns
> enable lqr
> set log phase tun
> add default HISADDR
> dsl:
> set authname 
> set authkey **
> 
> 
> # cat ppp.linkup
> MYADDR:
> !bg /sbin/natd -f /etc/natd.conf
> 
> #cat natd.conf
> interface tun0
> log yes
> use_sockets yes
> same_ports yes
> redirect_port udp 10.0.0.10:53 53
> redirect_port tcp 10.0.0.101:22 22
> redirect_port tcp 10.0.0.101:25 25
> redirect_port tcp 10.0.0.101:80 80
> redirect_port tcp 10.0.0.101:110 110
> redirect_port tcp 10.0.0.101:443 443
> redirect_port tcp 10.0.0.101:587 587

Not sure if this even possible but if nobody else gives a better idea
- can't this be caused by natd, or the way you start it from
ppp.linkup? Can you use nat embetted in ppp instead?

-- 
Dmitry

"We live less by imagination than despite it" - Rockwell Kent, "N by E"
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ppp filling /var

2005-06-02 Thread Alex Zbyslaw

James wrote:


After ppp runs for a few days:

# df
FilesystemSize   Used  Avail Capacity  Mounted on
/dev/ad0s1a   126M49M67M42%/
/dev/ad0s1f   252M18K   232M 0%/tmp
/dev/ad0s1g   8.1G   1.1G   6.4G15%/usr
/dev/ad0s1e   252M   252M -20.0M   109%/var 

Re: ppp filling /var

2005-06-02 Thread Vizion
On Thursday 02 June 2005 05:06,  the author James contributed to the dialogue 
on-
 Re: ppp filling /var: 

>On Thursday 02 June 2005 04:52 am, Vizion wrote:
>> On Thursday 02 June 2005 04:47,  the author James contributed to the
>> dialogue on-
>>
>>  ppp filling /var:
>> >After ppp runs for a few days:
>> >
>> ># df
>> >FilesystemSize   Used  Avail Capacity  Mounted on
>> >/dev/ad0s1a   126M49M67M42%/
>> >/dev/ad0s1f   252M18K   232M 0%/tmp
>> >/dev/ad0s1g   8.1G   1.1G   6.4G15%/usr
>> >/dev/ad0s1e   252M   252M -20.0M   109%/var <!!!
>> >procfs4.0K   4.0K 0B   100%/proc
>> >
>> ># du -h /var
>> >... snip ...
>> >12M/var
>> >
>> >After killing ppp:
>> >
>> ># df
>> >FilesystemSize   Used  Avail Capacity  Mounted on
>> >/dev/ad0s1a   126M49M67M42%/
>> >/dev/ad0s1f   252M18K   232M 0%/tmp
>> >/dev/ad0s1g   8.1G   1.1G   6.4G15%/usr
>> >/dev/ad0s1e   252M12M   219M 6%/var <
>> >procfs4.0K   4.0K 0B   100%/proc
>> >
>> ># du -h /var
>> >... snip ...
>> >12M/var
>> >
>> >Anyone know how to fix this? Google was no help.
>> >
>> >note: this is not a problem with /var/log/* filling up, as du will show,
>> > or any file written to disk... its *something* else
>> >
>> >Full output of du -h
>> ># du -h /var
>> >2.0K/var/account
>> >2.0K/var/at/jobs
>> >2.0K/var/at/spool
>> >6.0K/var/at
>> >10.0K   /var/backups
>> >4.0K/var/crash
>> >2.0K/var/cron/tabs
>> >4.0K/var/cron
>> >2.0K/var/db/ipf
>> > ... snip ...  (/var/db/pkg/*)
>> >2.2M/var/db/pkg
>> >4.0K/var/db/ports/gettext
>> >6.0K/var/db/ports
>> > 28K/var/db/portaudit
>> >474K/var/db/tripwire/report
>> >6.5M/var/db/tripwire
>> >9.8M/var/db
>> >2.0K/var/empty
>> >2.0K/var/heimdal
>> >1.7M/var/log
>> >8.0K/var/mail
>> >4.0K/var/msgs
>> >2.0K/var/preserve
>> >2.0K/var/run/ppp
>> > 94K/var/run
>> >2.0K/var/rwho
>> >2.0K/var/spool/lock
>> >2.0K/var/spool/lpd
>> >2.0K/var/spool/mqueue
>> >2.0K/var/spool/opielocks
>> >2.0K/var/spool/output/lpd
>> >4.0K/var/spool/output
>> >2.0K/var/spool/uucp/.Preserve
>> >2.0K/var/spool/uucp/.Sequence
>> >2.0K/var/spool/uucp/.Status
>> >2.0K/var/spool/uucp/.Temp
>> >2.0K/var/spool/uucp/.Xqtdir
>> > 12K/var/spool/uucp
>> >2.0K/var/spool/uucppublic
>> >4.0K/var/spool/clientmqueue
>> > 32K/var/spool
>> >2.0K/var/tmp/vi.recover
>> >112K/var/tmp/etc/defaults
>> >2.0K/var/tmp/etc/X11
>> >4.0K/var/tmp/etc/gnats
>> > 52K/var/tmp/etc/isdn
>> >2.0K/var/tmp/etc/kerberosIV
>> >294K/var/tmp/etc/mail
>> > 56K/var/tmp/etc/mtree
>> > 16K/var/tmp/etc/namedb
>> > 50K/var/tmp/etc/periodic/daily
>> >6.0K/var/tmp/etc/periodic/monthly
>> > 42K/var/tmp/etc/periodic/security
>> > 18K/var/tmp/etc/periodic/weekly
>> >118K/var/tmp/etc/periodic
>> >4.0K/var/tmp/etc/ppp
>> >2.0K/var/tmp/etc/skel
>> >108K/var/tmp/etc/ssh
>> >10.0K   /var/tmp/etc/ssl
>> > 22K/var/tmp/etc/uucp
>> >1.3M/var/tmp/etc
>> >1.3M/var/tmp
>> > 22K/var/yp
>> >2.0K/var/games/hackdir/save
>> >4.0K/var/games/hackdir
>> >2.0K/var/games/larn
>> >2.0K/var/games/phantasia
>> >10.0K   /var/games
>> > 13M/var
>>
>> I presume you are running ppp as a masquerading engine on an internal lan.
>>
>> Is this a new phenomenon or has it been with you ever since you started
>> ppp? The fact that you have such a comparatively large /var suggests that
>> the machine may have been set up with this purpose in mind and that you
>> simply need a larger /var. If the problem is new/intermittent then you
>> might want to monitor look your network traffic carefully to identify the
>> source.
>>
>> David
>
>I am running ppp to establish the dsl link so the firewall box gets assigned
>the static ip 

RE: ppp filling /var

2005-06-02 Thread fbsd_user
Your post subject says that ppp is filling up /var but then in the
body of your post you say that /var/log is not being filled. Change
the subject to be more meaningful. This is not a ppp problem but
allocated HD space problem.

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


Re: ppp filling /var

2005-06-02 Thread James
On Thursday 02 June 2005 04:52 am, Vizion wrote:
> On Thursday 02 June 2005 04:47,  the author James contributed to the
> dialogue on-
>
>  ppp filling /var:
> >After ppp runs for a few days:
> >
> ># df
> >FilesystemSize   Used  Avail Capacity  Mounted on
> >/dev/ad0s1a   126M49M67M42%/
> >/dev/ad0s1f   252M18K   232M 0%/tmp
> >/dev/ad0s1g   8.1G   1.1G   6.4G15%/usr
> >/dev/ad0s1e   252M   252M -20.0M   109%/var  >procfs4.0K   4.0K 0B   100%/proc
> >
> ># du -h /var
> >... snip ...
> >12M/var
> >
> >After killing ppp:
> >
> ># df
> >FilesystemSize   Used  Avail Capacity  Mounted on
> >/dev/ad0s1a   126M49M67M42%/
> >/dev/ad0s1f   252M18K   232M 0%/tmp
> >/dev/ad0s1g   8.1G   1.1G   6.4G15%/usr
> >/dev/ad0s1e   252M12M   219M 6%/var <
> >procfs4.0K   4.0K 0B   100%/proc
> >
> ># du -h /var
> >... snip ...
> >12M/var
> >
> >Anyone know how to fix this? Google was no help.
> >
> >note: this is not a problem with /var/log/* filling up, as du will show,
> > or any file written to disk... its *something* else
> >
> >Full output of du -h
> ># du -h /var
> >2.0K/var/account
> >2.0K/var/at/jobs
> >2.0K/var/at/spool
> >6.0K/var/at
> >10.0K   /var/backups
> >4.0K/var/crash
> >2.0K/var/cron/tabs
> >4.0K/var/cron
> >2.0K/var/db/ipf
> > ... snip ...  (/var/db/pkg/*)
> >2.2M/var/db/pkg
> >4.0K/var/db/ports/gettext
> >6.0K/var/db/ports
> > 28K/var/db/portaudit
> >474K/var/db/tripwire/report
> >6.5M/var/db/tripwire
> >9.8M/var/db
> >2.0K/var/empty
> >2.0K/var/heimdal
> >1.7M/var/log
> >8.0K/var/mail
> >4.0K/var/msgs
> >2.0K/var/preserve
> >2.0K/var/run/ppp
> > 94K/var/run
> >2.0K/var/rwho
> >2.0K/var/spool/lock
> >2.0K/var/spool/lpd
> >2.0K/var/spool/mqueue
> >2.0K/var/spool/opielocks
> >2.0K/var/spool/output/lpd
> >4.0K/var/spool/output
> >2.0K/var/spool/uucp/.Preserve
> >2.0K/var/spool/uucp/.Sequence
> >2.0K/var/spool/uucp/.Status
> >2.0K/var/spool/uucp/.Temp
> >2.0K/var/spool/uucp/.Xqtdir
> > 12K/var/spool/uucp
> >2.0K/var/spool/uucppublic
> >4.0K/var/spool/clientmqueue
> > 32K/var/spool
> >2.0K/var/tmp/vi.recover
> >112K/var/tmp/etc/defaults
> >2.0K/var/tmp/etc/X11
> >4.0K/var/tmp/etc/gnats
> > 52K/var/tmp/etc/isdn
> >2.0K/var/tmp/etc/kerberosIV
> >294K/var/tmp/etc/mail
> > 56K/var/tmp/etc/mtree
> > 16K/var/tmp/etc/namedb
> > 50K/var/tmp/etc/periodic/daily
> >6.0K/var/tmp/etc/periodic/monthly
> > 42K/var/tmp/etc/periodic/security
> > 18K/var/tmp/etc/periodic/weekly
> >118K/var/tmp/etc/periodic
> >4.0K/var/tmp/etc/ppp
> >2.0K/var/tmp/etc/skel
> >108K/var/tmp/etc/ssh
> >10.0K   /var/tmp/etc/ssl
> > 22K/var/tmp/etc/uucp
> >1.3M/var/tmp/etc
> >1.3M/var/tmp
> > 22K/var/yp
> >2.0K/var/games/hackdir/save
> >4.0K/var/games/hackdir
> >2.0K/var/games/larn
> >2.0K/var/games/phantasia
> >10.0K   /var/games
> > 13M/var
>
> I presume you are running ppp as a masquerading engine on an internal lan.
>
> Is this a new phenomenon or has it been with you ever since you started
> ppp? The fact that you have such a comparatively large /var suggests that
> the machine may have been set up with this purpose in mind and that you
> simply need a larger /var. If the problem is new/intermittent then you
> might want to monitor look your network traffic carefully to identify the
> source.
>
> David

I am running ppp to establish the dsl link so the firewall box gets assigned 
the static ip and not the qwest gateway/modem and natd handles the nat.

This has been happening since I setup ppp

The size is the sysconfig default size for /var if auto is selected for the 
partition creation.

>If the problem is new/intermittent then you
> might want to monitor look your network traffic carefully to identify the 
>source.

not sure what you are suggesting, its not logs filling /var.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ppp filling /var

2005-06-02 Thread James
Forgot to include this:

FreeBSD 4.11-RELEASE-p2 #3

# cat ppp.conf:

default:
set device PPPoE:ed0
set speed sync
set mru 1492
set mtu 1492
set ctsrts on
#enable dns
enable lqr
set log phase tun
add default HISADDR
dsl:
set authname 
set authkey **


# cat ppp.linkup
MYADDR:
!bg /sbin/natd -f /etc/natd.conf

#cat natd.conf
interface tun0
log yes
use_sockets yes
same_ports yes
redirect_port udp 10.0.0.10:53 53
redirect_port tcp 10.0.0.101:22 22
redirect_port tcp 10.0.0.101:25 25
redirect_port tcp 10.0.0.101:80 80
redirect_port tcp 10.0.0.101:110 110
redirect_port tcp 10.0.0.101:443 443
redirect_port tcp 10.0.0.101:587 587
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ppp filling /var

2005-06-02 Thread Vizion
On Thursday 02 June 2005 04:47,  the author James contributed to the dialogue 
on-
 ppp filling /var: 

>After ppp runs for a few days:
>
># df
>FilesystemSize   Used  Avail Capacity  Mounted on
>/dev/ad0s1a   126M49M67M42%/
>/dev/ad0s1f   252M18K   232M 0%/tmp
>/dev/ad0s1g   8.1G   1.1G   6.4G15%/usr
>/dev/ad0s1e   252M   252M -20.0M   109%/var procfs4.0K   4.0K 0B   100%/proc
>
># du -h /var
>... snip ...
>12M/var
>
>After killing ppp:
>
># df
>FilesystemSize   Used  Avail Capacity  Mounted on
>/dev/ad0s1a   126M49M67M42%/
>/dev/ad0s1f   252M18K   232M 0%/tmp
>/dev/ad0s1g   8.1G   1.1G   6.4G15%/usr
>/dev/ad0s1e   252M12M   219M 6%/var <
>procfs4.0K   4.0K 0B   100%/proc
>
># du -h /var
>... snip ...
>12M/var
>
>Anyone know how to fix this? Google was no help.
>
>note: this is not a problem with /var/log/* filling up, as du will show, or
>any file written to disk... its *something* else
>
>Full output of du -h
># du -h /var
>2.0K/var/account
>2.0K/var/at/jobs
>2.0K/var/at/spool
>6.0K/var/at
>10.0K   /var/backups
>4.0K/var/crash
>2.0K/var/cron/tabs
>4.0K/var/cron
>2.0K/var/db/ipf
> ... snip ...  (/var/db/pkg/*)
>2.2M/var/db/pkg
>4.0K/var/db/ports/gettext
>6.0K/var/db/ports
> 28K/var/db/portaudit
>474K/var/db/tripwire/report
>6.5M/var/db/tripwire
>9.8M/var/db
>2.0K/var/empty
>2.0K/var/heimdal
>1.7M/var/log
>8.0K/var/mail
>4.0K/var/msgs
>2.0K/var/preserve
>2.0K/var/run/ppp
> 94K/var/run
>2.0K/var/rwho
>2.0K/var/spool/lock
>2.0K/var/spool/lpd
>2.0K/var/spool/mqueue
>2.0K/var/spool/opielocks
>2.0K/var/spool/output/lpd
>4.0K/var/spool/output
>2.0K/var/spool/uucp/.Preserve
>2.0K/var/spool/uucp/.Sequence
>2.0K/var/spool/uucp/.Status
>2.0K/var/spool/uucp/.Temp
>2.0K/var/spool/uucp/.Xqtdir
> 12K/var/spool/uucp
>2.0K/var/spool/uucppublic
>4.0K/var/spool/clientmqueue
> 32K/var/spool
>2.0K/var/tmp/vi.recover
>112K/var/tmp/etc/defaults
>2.0K/var/tmp/etc/X11
>4.0K/var/tmp/etc/gnats
> 52K/var/tmp/etc/isdn
>2.0K/var/tmp/etc/kerberosIV
>294K/var/tmp/etc/mail
> 56K/var/tmp/etc/mtree
> 16K/var/tmp/etc/namedb
> 50K/var/tmp/etc/periodic/daily
>6.0K/var/tmp/etc/periodic/monthly
> 42K/var/tmp/etc/periodic/security
> 18K/var/tmp/etc/periodic/weekly
>118K/var/tmp/etc/periodic
>4.0K/var/tmp/etc/ppp
>2.0K/var/tmp/etc/skel
>108K/var/tmp/etc/ssh
>10.0K   /var/tmp/etc/ssl
> 22K/var/tmp/etc/uucp
>1.3M/var/tmp/etc
>1.3M/var/tmp
> 22K/var/yp
>2.0K/var/games/hackdir/save
>4.0K/var/games/hackdir
>2.0K/var/games/larn
>2.0K/var/games/phantasia
>10.0K   /var/games
> 13M/var

I presume you are running ppp as a masquerading engine on an internal lan.

Is this a new phenomenon or has it been with you ever since you started ppp? 
The fact that you have such a comparatively large /var suggests that the 
machine may have been set up with this purpose in mind and that you simply 
need a larger /var. If the problem is new/intermittent then you might want to 
monitor look your network traffic carefully to identify the source.

David


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

-- 
40 yrs navigating and computing in blue waters.
English Owner & Captain of British Registered 60' bluewater Ketch S/V Taurus.
 Currently in San Diego, CA. Sailing May/June bound for Europe via Panama 
Canal.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: PPP

2005-05-04 Thread fbsd_user

There is a better description of using 'user ppp' to do what you
want in this Install guide.

http://www.unixguide.net/freebsd/fbsd_installguide/index.php


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Pipek
Thomas
Sent: Wednesday, May 04, 2005 8:08 AM
To: [EMAIL PROTECTED]
Subject: PPP


Hallo:

We want to use a machine with FreeBSD and PPP over Modems. Is it
possible to
configure PPP in that way, that it supports client/server on one
machine.
That means we want to dial in to that machine and also to dialout on
demand
on that machine. In both cases we have the same partner (with same
IP-address and CHAP-name).

In your online-description i only found client or
server-configurations.

Regards
Thomas Pipek
___
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: PPP slows down the system

2005-04-18 Thread Emil Khatib
Hey! this seems to work properly. At least by the moment. It works
even better than when i was disconnected :P. Thanks a lot

On 4/17/05, Jonathan Chen <[EMAIL PROTECTED]> wrote:
> On Sun, Apr 17, 2005 at 09:04:11PM +0200, Emil Khatib wrote:
> > Hi everybody.
> > I'm using a 56k connection to access the Internet. I'm using user PPP,
> > and everytime I dial up, everything works too slow. At least X works
> > quite bad (and so KDE). When I try "startx", it freezes for a few
> > seconds and then it starts and takes a long time to load KDE. Also,
> > the applications in KDE start very slowly (when they start).
> 
> KDE does DNS lookups like crazy. Make sure you've got an entry in
> /etc/hosts for the output of hostname(1), and see whether that makes a
> difference.
> --
> Jonathan Chen  |  To do is to be  -- Nietzsche
> <[EMAIL PROTECTED]> |  To be is to do  -- Sartre
>|  Scooby do be do -- Scooby
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: PPP slows down the system

2005-04-17 Thread Jonathan Chen
On Sun, Apr 17, 2005 at 09:04:11PM +0200, Emil Khatib wrote:
> Hi everybody. 
> I'm using a 56k connection to access the Internet. I'm using user PPP,
> and everytime I dial up, everything works too slow. At least X works
> quite bad (and so KDE). When I try "startx", it freezes for a few
> seconds and then it starts and takes a long time to load KDE. Also,
> the applications in KDE start very slowly (when they start).

KDE does DNS lookups like crazy. Make sure you've got an entry in
/etc/hosts for the output of hostname(1), and see whether that makes a
difference.
-- 
Jonathan Chen  |  To do is to be  -- Nietzsche
<[EMAIL PROTECTED]> |  To be is to do  -- Sartre 
   |  Scooby do be do -- Scooby
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: PPP slows down the system

2005-04-17 Thread Emil Khatib
On 4/17/05, Hexren <[EMAIL PROTECTED]> wrote:
> > Hi everybody.
> > I'm using a 56k connection to access the Internet. I'm using user PPP,
> > and everytime I dial up, everything works too slow. At least X works
> > quite bad (and so KDE). When I try "startx", it freezes for a few
> > seconds and then it starts and takes a long time to load KDE. Also,
> > the applications in KDE start very slowly (when they start).
> > Everythings works allright when i get disconnected
> > Can anyone give me an idea of what is happening (It isn't the first
> > time it happens, I've tried in another computer with FreeBSD and it
> > happens the same)?
> 
> > I'm using FreeBSD 5.3 amd64.
> 
> -
> 
> How many Interfaces are you using ? And are you logged in over the
> network ?
> 
> 

I think I'm using one interface (ppp0)... At least I didn't configure
any interface at all at the installation
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: PPP slows down the system

2005-04-17 Thread Hexren
> Hi everybody. 
> I'm using a 56k connection to access the Internet. I'm using user PPP,
> and everytime I dial up, everything works too slow. At least X works
> quite bad (and so KDE). When I try "startx", it freezes for a few
> seconds and then it starts and takes a long time to load KDE. Also,
> the applications in KDE start very slowly (when they start).
> Everythings works allright when i get disconnected
> Can anyone give me an idea of what is happening (It isn't the first
> time it happens, I've tried in another computer with FreeBSD and it
> happens the same)?

> I'm using FreeBSD 5.3 amd64.

-

How many Interfaces are you using ? And are you logged in over the
network ?

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


RE: ppp conf

2005-03-29 Thread bob
set device /dev/cuaa0
This is not your real device name.

# Ensure that "set device statement" references the correct serial
port
# for your modem. (External modem on com1 = cuaa0,  com2 = cuaa1)
# PCI modem com5 = cuaa4
# Only needed for dial out device.
# This can be found in dmesg boot log

For how to setup an dialout modem is explained in step by step
detail here

http://freebsd.packards-home.net/index.php


If you would have read that install guide you would not have needed
to reask the same question. You make your self look foolish when you
do not follow the advice from previous answers to your post. Quit
looking for the short cut and do your own homework. That is how you
learn about the FreeBSD operating system just like the rest of us
did. There are no short cuts here.



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of RdBSD
Sent: Tuesday, March 29, 2005 8:56 PM
To: freebsd-questions@freebsd.org
Subject: Re: ppp conf

Dear All,

I Just add 9 in front of the set phone, but i still cannot connect
to
isp. Log say " No Dialtone". But if i dial direct using telephone i
can dial out to isp and same result if i test with windows. Please
help me.

i use pabx and i have to dial 9 first to dial out.

Thanks for your answer

ppp.conf :

dialisp:
 set phone "9, 1223311"
 set log Phase Chat LCP IPCP CCP tun command
 set login
 set authname "me"
 set authkey "me"
 set timeout 120
 set ifaddr 0.0.0.0/0  0.0.0.0/0  0.0.0.0  0.0.0.0
 add default HISADDR
 enable dns
 set reconnect 3 20
 set timeout 60 300 # The minimum charge period is 5 minutes, so
don't
 set device /dev/cuaa0  # Or whatever
 set speed 115200   # Use as high a speed as possible
 set log -command +tcp/ip
 disable iface-alias
 iface clear


ppp.log :

Mar 30 08:32:22 ws1 ppp[500]: tun0: Chat: Phone: 9, 1223311
Mar 30 08:32:22 ws1 ppp[500]: tun0: Chat: deflink: Dial attempt 1 of
1
Mar 30 08:32:22 ws1 ppp[500]: tun0: Chat: Send: AT^M
Mar 30 08:32:22 ws1 ppp[500]: tun0: Chat: Expect(5): OK
Mar 30 08:32:22 ws1 ppp[500]: tun0: Chat: Received: AT^M^M
Mar 30 08:32:22 ws1 ppp[500]: tun0: Chat: Received: OK^M
Mar 30 08:32:22 ws1 ppp[500]: tun0: Chat: Send: ATE1Q0^M
Mar 30 08:32:22 ws1 ppp[500]: tun0: Chat: Expect(5): OK
Mar 30 08:32:22 ws1 ppp[500]: tun0: Chat: Received: ATE1Q0^M^M
Mar 30 08:32:22 ws1 ppp[500]: tun0: Chat: Received: OK^M
Mar 30 08:32:22 ws1 ppp[500]: tun0: Chat: Send: ATDT9, 1223311^M
Mar 30 08:32:24 ws1 ppp[500]: tun0: Chat: Expect(40): CONNECT
Mar 30 08:32:26 ws1 ppp[500]: tun0: Chat: Received: ATDT9,
1223311^M^M
Mar 30 08:32:26 ws1 ppp[500]: tun0: Chat: Received: NO DIALTONE^M
Mar 30 08:33:04 ws1 ppp[500]: tun0: Chat: Expect timeout
Mar 30 08:33:04 ws1 ppp[500]: tun0: Warning: Chat script failed
Mar 30 08:33:04 ws1 ppp[500]: tun0: Phase: deflink: dial -> hangup
Mar 30 08:33:04 ws1 ppp[500]: tun0: Phase: deflink: Disconnected!
Mar 30 08:33:04 ws1 ppp[500]: tun0: Phase: deflink: Connect time: 42
secs: 0 octets in, 0 octets out
Mar 30 08:33:04 ws1 ppp[500]: tun0: Phase: deflink: 0 packets in, 0
packets out
Mar 30 08:33:04 ws1 ppp[500]: tun0: Phase:  total 0 bytes/sec, peak
0
bytes/sec on Wed Mar 30 08:32:22 2005
Mar 30 08:33:04 ws1 ppp[500]: tun0: Phase: deflink: hangup -> closed
Mar 30 08:33:04 ws1 ppp[500]: tun0: Phase: bundle: Dead
Mar 30 08:33:04 ws1 ppp[500]: tun0: Phase: PPP Terminated (normal).


On Tue, 29 Mar 2005 06:54:50 -0500, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> Just add the 9 to front of phone number you code in ppp.conf  for
> ISP.
>
> Read this  http://freebsd.packards-home.net/index.php
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of RdBSD
> Sent: Tuesday, March 29, 2005 2:59 AM
> To: freebsd-questions@freebsd.org
> Subject: ppp conf
>
> Dear all,
>
> I want to connect to isp using dial up modem, but my office has a
> rule
> if we want to connect to outside we have to dial 9 first then
> destination number. How can i configure ppp.conf ?
>
> Thanks for the answer.
> ___
> 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]"


Re: ppp problems with routing

2005-03-29 Thread J65nko BSD
On Mon, 28 Mar 2005 19:13:47 -0500, PS <[EMAIL PROTECTED]> wrote:
> Hello I use freeBSD 4.11 with pppoe.
> I used almost default ppp.conf (as in freebsd handbook) for dynamic ip.
> my config is here http://block111.servehttp.com/ppp.conf
> Twice a day I restart ppp from cron with `killall -INT ppp` and if the
> new connection default gateway is different then the old default route
> isn't removed, e.g. after ppp restart I have this:
> ifconfig ->
> ...
>  inet 66.11.172.181 --> 66.11.165.1 netmask 0x
> inet 66.11.180.20 --> 66.11.190.1 netmask 0x
> 
> before I had
> inet 66.11.172.181 --> 66.11.165.1 netmask 0x
> only, but after I sent INT to ppp the new ip has a different dafault
> gateway and the old one isn't removed. Should the old default route/ip
> be removed or not? In my case the old ip becomes invalid.
> 
> Thank you
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
> 

Have you tried: 

   add! default HISADDR

Note the exclamation mark "!" after the add.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ppp conf

2005-03-29 Thread RdBSD
Dear All, 

I Just add 9 in front of the set phone, but i still cannot connect to
isp. Log say " No Dialtone". But if i dial direct using telephone i
can dial out to isp and same result if i test with windows. Please
help me.

i use pabx and i have to dial 9 first to dial out. 

Thanks for your answer

ppp.conf :

dialisp:
 set phone "9, 1223311"
 set log Phase Chat LCP IPCP CCP tun command
 set login
 set authname "me"
 set authkey "me"
 set timeout 120
 set ifaddr 0.0.0.0/0  0.0.0.0/0  0.0.0.0  0.0.0.0
 add default HISADDR
 enable dns
 set reconnect 3 20
 set timeout 60 300 # The minimum charge period is 5 minutes, so don't
 set device /dev/cuaa0  # Or whatever
 set speed 115200   # Use as high a speed as possible
 set log -command +tcp/ip
 disable iface-alias
 iface clear


ppp.log :

Mar 30 08:32:22 ws1 ppp[500]: tun0: Chat: Phone: 9, 1223311
Mar 30 08:32:22 ws1 ppp[500]: tun0: Chat: deflink: Dial attempt 1 of 1
Mar 30 08:32:22 ws1 ppp[500]: tun0: Chat: Send: AT^M
Mar 30 08:32:22 ws1 ppp[500]: tun0: Chat: Expect(5): OK
Mar 30 08:32:22 ws1 ppp[500]: tun0: Chat: Received: AT^M^M
Mar 30 08:32:22 ws1 ppp[500]: tun0: Chat: Received: OK^M
Mar 30 08:32:22 ws1 ppp[500]: tun0: Chat: Send: ATE1Q0^M
Mar 30 08:32:22 ws1 ppp[500]: tun0: Chat: Expect(5): OK
Mar 30 08:32:22 ws1 ppp[500]: tun0: Chat: Received: ATE1Q0^M^M
Mar 30 08:32:22 ws1 ppp[500]: tun0: Chat: Received: OK^M
Mar 30 08:32:22 ws1 ppp[500]: tun0: Chat: Send: ATDT9, 1223311^M
Mar 30 08:32:24 ws1 ppp[500]: tun0: Chat: Expect(40): CONNECT
Mar 30 08:32:26 ws1 ppp[500]: tun0: Chat: Received: ATDT9, 1223311^M^M
Mar 30 08:32:26 ws1 ppp[500]: tun0: Chat: Received: NO DIALTONE^M
Mar 30 08:33:04 ws1 ppp[500]: tun0: Chat: Expect timeout
Mar 30 08:33:04 ws1 ppp[500]: tun0: Warning: Chat script failed
Mar 30 08:33:04 ws1 ppp[500]: tun0: Phase: deflink: dial -> hangup
Mar 30 08:33:04 ws1 ppp[500]: tun0: Phase: deflink: Disconnected!
Mar 30 08:33:04 ws1 ppp[500]: tun0: Phase: deflink: Connect time: 42
secs: 0 octets in, 0 octets out
Mar 30 08:33:04 ws1 ppp[500]: tun0: Phase: deflink: 0 packets in, 0 packets out
Mar 30 08:33:04 ws1 ppp[500]: tun0: Phase:  total 0 bytes/sec, peak 0
bytes/sec on Wed Mar 30 08:32:22 2005
Mar 30 08:33:04 ws1 ppp[500]: tun0: Phase: deflink: hangup -> closed
Mar 30 08:33:04 ws1 ppp[500]: tun0: Phase: bundle: Dead
Mar 30 08:33:04 ws1 ppp[500]: tun0: Phase: PPP Terminated (normal).


On Tue, 29 Mar 2005 06:54:50 -0500, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> Just add the 9 to front of phone number you code in ppp.conf  for
> ISP.
> 
> Read this  http://freebsd.packards-home.net/index.php
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of RdBSD
> Sent: Tuesday, March 29, 2005 2:59 AM
> To: freebsd-questions@freebsd.org
> Subject: ppp conf
> 
> Dear all,
> 
> I want to connect to isp using dial up modem, but my office has a
> rule
> if we want to connect to outside we have to dial 9 first then
> destination number. How can i configure ppp.conf ?
> 
> Thanks for the answer.
> ___
> 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: ppp conf

2005-03-29 Thread bob
Just add the 9 to front of phone number you code in ppp.conf  for
ISP.

Read this  http://freebsd.packards-home.net/index.php



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of RdBSD
Sent: Tuesday, March 29, 2005 2:59 AM
To: freebsd-questions@freebsd.org
Subject: ppp conf

Dear all,


I want to connect to isp using dial up modem, but my office has a
rule
if we want to connect to outside we have to dial 9 first then
destination number. How can i configure ppp.conf ?

Thanks for the answer.
___
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: ppp problems with routing

2005-03-28 Thread Mike Tancsa
At 10:20 PM 28/03/2005, PS wrote:
Mike Tancsa wrote:
On Mon, 28 Mar 2005 19:13:47 -0500, in sentex.lists.freebsd.questions
you wrote:
My isp gives free bandwidth from x till y, provided that a connection 
starts after x and finishes before y... so, my smart freebsd pc sends 
every day INT to ppp to restart ppp connection :)
Ahh, that makes sense.  Instead of killing the program outright, you might 
open a socket and programatically shutdown the session.  Take a look at pppctl.

---Mike 

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


Re: ppp problems with routing

2005-03-28 Thread PS
Mike Tancsa wrote:
On Mon, 28 Mar 2005 19:13:47 -0500, in sentex.lists.freebsd.questions
you wrote:

Hello I use freeBSD 4.11 with pppoe.
I used almost default ppp.conf (as in freebsd handbook) for dynamic ip. 
my config is here http://block111.servehttp.com/ppp.conf
Twice a day I restart ppp from cron with `killall -INT ppp` and if the 
new connection default gateway is different then the old default route 
isn't removed, e.g. after ppp restart I have this:
ifconfig ->
	...
   inet 66.11.172.181 --> 66.11.165.1 netmask 0x
	inet 66.11.180.20 --> 66.11.190.1 netmask 0x

before I had
inet 66.11.172.181 --> 66.11.165.1 netmask 0x
only, but after I sent INT to ppp the new ip has a different dafault 
gateway and the old one isn't removed. Should the old default route/ip 
be removed or not? In my case the old ip becomes invalid.

Hi,
If you add
disable iface-alias
Thanks, I'll check this solution.
does it fix the problem ?  Also, why do you need to kill / restart
ppp?
My isp gives free bandwidth from x till y, provided that a connection 
starts after x and finishes before y... so, my smart freebsd pc sends 
every day INT to ppp to restart ppp connection :)

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


Re: ppp problems with routing

2005-03-28 Thread Mike Tancsa
On Mon, 28 Mar 2005 19:13:47 -0500, in sentex.lists.freebsd.questions
you wrote:

>Hello I use freeBSD 4.11 with pppoe.
>I used almost default ppp.conf (as in freebsd handbook) for dynamic ip. 
>my config is here http://block111.servehttp.com/ppp.conf
>Twice a day I restart ppp from cron with `killall -INT ppp` and if the 
>new connection default gateway is different then the old default route 
>isn't removed, e.g. after ppp restart I have this:
>ifconfig ->
>   ...
> inet 66.11.172.181 --> 66.11.165.1 netmask 0x
>   inet 66.11.180.20 --> 66.11.190.1 netmask 0x
>
>before I had
>inet 66.11.172.181 --> 66.11.165.1 netmask 0x
>only, but after I sent INT to ppp the new ip has a different dafault 
>gateway and the old one isn't removed. Should the old default route/ip 
>be removed or not? In my case the old ip becomes invalid.

Hi,
If you add

disable iface-alias

does it fix the problem ?  Also, why do you need to kill / restart
ppp?

---Mike


Mike Tancsa, Sentex communications http://www.sentex.net
Providing Internet Access since 1994
[EMAIL PROTECTED], (http://www.tancsa.com)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: PPP routing failure [fixed]

2005-03-18 Thread Peter C. Lai
Yes it was a sleep issue (and not the sleep(2) kind haha). *facepalm*
Apparently the POP uses a 2 stage authentication process. First, you use
unix/slip style authentication after which the POP then initiates CHAP.
I had specified the inccorect password for CHAP but after the initial
autentication the POP still assigned me an IP; albeit one that didn't talk
to anything but the next hop and its nameserver. it's all good now!

On Fri, Mar 18, 2005 at 09:38:47AM -0500, [EMAIL PROTECTED] wrote:
> 
> Check out the install guide at
> http://www.unixguide.net/freebsd/fbsd_installguide/index.php
> it has the best step by step instructions for using userppp.
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Peter C.
> Lai
> Sent: Thursday, March 17, 2005 8:37 PM
> To: freebsd-questions@freebsd.org; freebsd-net@freebsd.org;
> freebsd-stable@freebsd.org
> Subject: PPP routing failure
> 
> 
> Hi everyone -
> I'm experiencing some funky routing failures when I dialup netscape
> internet
> via user-level PPP:
> I can negotiate IPCP fine; get a point-to-point link via tun0:
> myaddr: 172.143.224.146; hisaddr: 63.152.0.70
> When the default route is setup to 63.152.0.70, all of my packets
> are
> blackholed after the first router hop. I am not using NAT.
> The PPP link works perfectly fine in windows dialup networking. So I
> dunno
> what is wrong. When I look at the routing table in windows, it seems
> backwards:
> 
> DEST  NM  GW  IF
> default   0   myaddr  ppp
> hisaddr   0x  myaddr  ppp
> localhost 0xff00  localhost   localhost
> myaddr0x  localhost   localhost
> myaddr.255.255*   0x  myaddr  ppp
> multicast multicast   myaddr  ppp
> 
> *this is the first 2 dotted quads of myaddr appended with 255.255
> 
> If I try to manually set these routes in 5.3-R, I still can't get
> out :(
> Setting ADD DEFAULT MYADDR doesn't work, because ppp will still
> think MYADDR
> is 0.0.0.0. Either I need sleep or something is funky here...
> 
> --
> Peter C. Lai
> University of Connecticut
> Dept. of Molecular and Cell Biology
> Yale University School of Medicine
> SenseLab | Research Assistant
> http://cowbert.2y.net/
> 
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"
> 

-- 
Peter C. Lai
University of Connecticut
Dept. of Molecular and Cell Biology
Yale University School of Medicine
SenseLab | Research Assistant
http://cowbert.2y.net/

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


RE: PPP routing failure

2005-03-18 Thread bob

Check out the install guide at
http://www.unixguide.net/freebsd/fbsd_installguide/index.php
it has the best step by step instructions for using userppp.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Peter C.
Lai
Sent: Thursday, March 17, 2005 8:37 PM
To: freebsd-questions@freebsd.org; freebsd-net@freebsd.org;
freebsd-stable@freebsd.org
Subject: PPP routing failure


Hi everyone -
I'm experiencing some funky routing failures when I dialup netscape
internet
via user-level PPP:
I can negotiate IPCP fine; get a point-to-point link via tun0:
myaddr: 172.143.224.146; hisaddr: 63.152.0.70
When the default route is setup to 63.152.0.70, all of my packets
are
blackholed after the first router hop. I am not using NAT.
The PPP link works perfectly fine in windows dialup networking. So I
dunno
what is wrong. When I look at the routing table in windows, it seems
backwards:

DESTNM  GW  IF
default 0   myaddr  ppp
hisaddr 0x  myaddr  ppp
localhost   0xff00  localhost   localhost
myaddr  0x  localhost   localhost
myaddr.255.255* 0x  myaddr  ppp
multicast   multicast   myaddr  ppp

*this is the first 2 dotted quads of myaddr appended with 255.255

If I try to manually set these routes in 5.3-R, I still can't get
out :(
Setting ADD DEFAULT MYADDR doesn't work, because ppp will still
think MYADDR
is 0.0.0.0. Either I need sleep or something is funky here...

--
Peter C. Lai
University of Connecticut
Dept. of Molecular and Cell Biology
Yale University School of Medicine
SenseLab | Research Assistant
http://cowbert.2y.net/

___
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: 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]"


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]"


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 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 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 providors (partial success!)

2005-02-24 Thread Bob Johnson
Peter C. Lai wrote:
>I signed up for netscape, becauase hey, it's 1 month free trial anyway. So
>technically, I'm an AOL luser now *hangs head in shame* :-/ (after 
logging
>into the POP, you end up on AOL). The good thing is, I can use the 
vanilla
>windows DUN with MS CHAP authentication, so after I get freebsd setup, I'm
>gonna try configuring ppp. Currently POP login name obfuscation is:
>"[EMAIL PROTECTED]" where username is the one you are given when
>you setup the account (typically nsJohnDoe). The password is not 
obfuscated.
>

I'm jumping in a bit late, but I was looking for a cheap/free dialup service
last year and it looked like http://www.copper.net was a good candidate.
I ended up using a public port at a library, so I don't have actual 
experience
with them.

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


Re: PPP providors (partial success!)

2005-02-24 Thread Peter C. Lai
I signed up for netscape, becauase hey, it's 1 month free trial anyway. So
technically, I'm an AOL luser now *hangs head in shame* :-/ (after logging 
into the POP, you end up on AOL). The good thing is, I can use the vanilla 
windows DUN with MS CHAP authentication, so after I get freebsd setup, I'm
gonna try configuring ppp. Currently POP login name obfuscation is:
"[EMAIL PROTECTED]" where username is the one you are given when
you setup the account (typically nsJohnDoe). The password is not obfuscated.

On Tue, Feb 22, 2005 at 05:47:41AM -0500, Mike Hauber wrote:
> On Monday 21 February 2005 04:28 pm, Peter C. Lai wrote:
> > I need a temporary 56K providor until I get broadband installed
> > at a new location. Do any of the commercially advertised ones
> > (netscape, netzero, peoplepc, earthlink) support using regular
> > PPP, or am I forced to use their dialer in win32? This is
> > obviously important in determining if such a providor can be
> > used in freebsd.
> > TIA
> > pete
> 
> A few months ago, I had my Father set up on Earthlink.  I've heard 
> tell (rumor probably) that they plan on switching to something 
> like a software setup like aol.  I've tried netzero and peoplepc, 
> and couldn't get anywhere with them.  I don't know about 
> netscape.  Your best bet _may_ be to go through a local dialup 
> service (if you can find one, these days).
> 
> Oh yeah...  I don't know if AT&T is an option where you are, but 
> they are straight forward and don't require any junk software for 
> connection.
> 
> HTH
> 
> Mike

-- 
Peter C. Lai
University of Connecticut
Dept. of Molecular and Cell Biology
Yale University School of Medicine
SenseLab | Research Assistant
http://cowbert.2y.net/

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


Re: PPP providors

2005-02-22 Thread Mike Hauber
On Monday 21 February 2005 04:28 pm, Peter C. Lai wrote:
> I need a temporary 56K providor until I get broadband installed
> at a new location. Do any of the commercially advertised ones
> (netscape, netzero, peoplepc, earthlink) support using regular
> PPP, or am I forced to use their dialer in win32? This is
> obviously important in determining if such a providor can be
> used in freebsd.
> TIA
> pete

A few months ago, I had my Father set up on Earthlink.  I've heard 
tell (rumor probably) that they plan on switching to something 
like a software setup like aol.  I've tried netzero and peoplepc, 
and couldn't get anywhere with them.  I don't know about 
netscape.  Your best bet _may_ be to go through a local dialup 
service (if you can find one, these days).

Oh yeah...  I don't know if AT&T is an option where you are, but 
they are straight forward and don't require any junk software for 
connection.

HTH

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


Re: PPP providors

2005-02-21 Thread Michael C. Shultz
On Monday 21 February 2005 01:28 pm, Peter C. Lai wrote:
> I need a temporary 56K providor until I get broadband installed at a
> new location. Do any of the commercially advertised ones (netscape,
> netzero, peoplepc, earthlink) support using regular PPP, or am I
> forced to use their dialer in win32? This is obviously important in
> determining if such a providor can be used in freebsd.
> TIA
> pete

Been last summer I was still using ppp dialers.  Earthlink was no 
problem, always worked well.  Netzero was worthless.  Don't know about 
any other national providers.


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


Re: ppp -auto my_provider

2005-02-02 Thread Tom Huppi



On Wed, 2 Feb 2005, Alexander Bubnov wrote:

> could you help me, please? (I have FreeBSD 5.3)
>
> this question:
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/ppp.html#PPP-AUTO-NOREASONDIAL
>
> Why does ppp(8) dial for no reason in -auto mode?

I've fought the same irritating issue now and again.  As for
diagnosis, the most useful thing I've found is to turn on full
logging (in ppp.conf), then grep (or tail -f or whatever) the log
looking for the dial trigger after a spurious dial.  I'm not on
the machine from which I have the misfortune of needing to use a
modem so I can't say off-hand the exact string to look for, but
it's not any of the four lines you've posted.

If you need more info about the nature of the transaction, try
'tcpdump -i tun0'.  I used this recently to determine that various
operations on NAT machines behind my gateway were generating
spurious (and obviously failing) reverse DNS lookups and thus, an
unwanted dial.  I never reached a conclusion about how to deal
with this other than to set up a cacheing-only DNS server, but I
shouldn't even mention it here since it's probably not related to
a solution for you (...or is it?)

BTW, and totally unrelated, does anyone know of a graphical dial
utility for ppp(8) (aka, user-ppp?)  I see two in the ports
collection for 'pppd', but I know 'user-ppp' slightly better.  My
goal is to set up a machine for a completely computer non-literate
friend, and I would rather use FreeBSD than any of the Linux
distros that may also be suitable.  I would need to make his
system very user-friendly.

Thanks,

 - Tom


> I used the following line for log-file:
>
> set log tcp/ip
>
> /var/log/ppp.log includes next text:
>
> Feb  1 10:24:04 fatal ppp[894]: Phase: Using interface: tun0
> Feb  1 10:24:04 fatal ppp[894]: Phase: deflink: Created in closed state
> Feb  1 10:24:04 fatal ppp[895]: TCP/IP: OUT <0>: fe80::2c0:26ff:fea4:b6b0 
> ---> ff02::1:ffa4:b6b0 (72)
> Feb  1 10:24:04 fatal ppp[895]: TCP/IP: OUT ICMP: :::135 ---> 
> ff02::1:ffa4:b6b0 (16/64)
>
> (I install FreeBSD 5.3 from mini-install disk and I do not have samba)
>
> also I used next:
> /etc/ppp/ppp.conf:
> default:
> ...
>   set filter dial 1 deny udp src eq 53
>   set filter dial 2 deny udp dst eq 53
>   set filter dial 3 permit 0/0 0/0
> ...
>
>
> my_provider:
> ...
>
> and I killed sendmail, typing killall sendmail
>
> These ways did not help me :(
>
> What do I need to do to solve a problem?
>
> When ppp begins to dualup 'netstat -rn' outputs next:
> Internet6:
> Destination   Gateway   Flags  
> Netif Expire
> ::1   ::1   UH  
> lo0
> fe80::%rl0/64 link#1UC  
> rl0
> fe80::2c0:26ff:fea4:b6b0%rl0  00:c0:26:a4:b6:b0 UHL 
> lo0
> fe80::%lo0/64 fe80::1%lo0   U   
> lo0
> fe80::1%lo0   link#3UHL 
> lo0
> ff01::/32 ::1   U   
> lo0
> ff02::%rl0/32 link#1UC  
> rl0
> ff02::%lo0/32 ::1   UC  
> lo0
> ff02::%tun0/32fe80::2c0:26ff:fea4:b6b0%tun0 UC 
> tun0
>
> this string adds when 'ppp -auto my_provider' dialups:
>
> ff02::%tun0/32fe80::2c0:26ff:fea4:b6b0%tun0 UC 
> tun0
>
> ___
> 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]"


More info (Re: ppp dialin problems: mgetty and ppp.conf)

2005-01-17 Thread Timothy Luoma
[more information on the problems originally outlined at
  
http://lists.freebsd.org/pipermail/freebsd-questions/2005-January/ 
072284.html ]

updated summary: dialing into FreeBSD box sometimes fails to provide a  
connection to the Internet, however, it appears that if I maintain the  
connection long enough, the problem will solve itself after awhile (~10  
minutes).  I hope that the netstat and ppp log information below will  
help someone smarter than me figure out what is going on.

More information:
I am using my Powerbook to dial in via Airport Extreme to a FreeBSD 5.3  
machine running mgetty and ppp.

I am having occasional problems connecting.  Sometimes when I connect,  
I can only ping/ssh to the IP address of the FreeBSD machine. (ssh  
often fails to connect, although it will say it is connected, it will  
time out.)

I am trying to diagnose whether the problem is on the dial in end  
(Airport Extreme/Powerbook) or the FreeBSD end.

I believe that something is not being correctly configured for my  
routing, but I could be wrong.

In an attempt to diagnose this, I ran 'netstat -rn -f inet' from my  
Powerbook when the Airport Extreme was connected and when the  
connection was working perfectly:

[NOTE: when 192.168.2.1 is the Airport Extreme IP address, and shows up  
on 'en1']

Routing tables  [when working]
Internet:
DestinationGatewayFlagsRefs  Use  Netif  
Expire
default192.168.2.1UGSc5   10en1
127127.0.0.1  UCS 00lo0
127.0.0.1  127.0.0.1  UH 23 8498lo0
169.254link#5 UCS 00en1
192.168.2  link#5 UCS 10en1
192.168.2.10:3:93:df:e7:6aUHLW5 1292en1
1178
192.168.2.2127.0.0.1  UHS 03lo0

And then, later, I ran it again when it was connected but NOT working
Routing tables [when NOT working]
Internet:
DestinationGatewayFlagsRefs  Use  Netif  
Expire
default192.168.2.1UGSc   11   10en1
127127.0.0.1  UCS 00lo0
127.0.0.1  127.0.0.1  UH 4664040lo0
169.254link#5 UCS 00en1
192.168.2  link#5 UCS 20en1
192.168.2.10:3:93:df:e7:6aUHLW   11  281en1
1059
192.168.2.2127.0.0.1  UHS 1   47lo0
192.168.2.255  link#5 UHLWb   13en1

Now while I was writing this, the connection seems to have "healed  
itself" automagically, and I ran netstat again (not long after the  
previous NOT working example) and saw this:

Routing tables [when suddenly working again]
Internet:
DestinationGatewayFlagsRefs  Use  Netif  
Expire
default192.168.2.1UGSc   17   13en1
127127.0.0.1  UCS 00lo0
127.0.0.1  127.0.0.1  UH 7766575lo0
169.254link#5 UCS 00en1
192.168.2  link#5 UCS 20en1
192.168.2.10:3:93:df:e7:6aUHLW   16 1464en1
1059
192.168.2.2127.0.0.1  UHS 1   93lo0
192.168.2.255  link#5 UHLWb   16en1

Here is the relevant ppp log data from when that connection was first  
made:

Jan 17 10:18:56 freebsd ppp[2027]: Phase: Using interface: tun0
Jan 17 10:18:56 freebsd ppp[2027]: Phase: deflink: Created in closed  
state
Jan 17 10:18:56 freebsd ppp[2027]: tun0: Command: default: enable  
passwdauth
Jan 17 10:18:56 freebsd ppp[2027]: tun0: Command: default: set speed  
115200
Jan 17 10:18:56 freebsd ppp[2027]: tun0: Command: default: set dial  
ABORT BUSY ABORT NO\sCARRIER TIMEOUT 5 "" AT OK-AT-OK ATE1Q0 OK  
\dATDT\TTIMEOUT 40 CONNECT
Jan 17 10:18:56 freebsd ppp[2027]: tun0: Command: default: set timeout  
120
Jan 17 10:18:56 freebsd ppp[2027]: tun0: Command: default: set ifaddr  
192.168.1.1/0 192.168.1.2/0 255.255.255.0 0.0.0.0
Jan 17 10:18:56 freebsd ppp[2027]: tun0: Command: default: add default  
HISADDR
Jan 17 10:18:56 freebsd ppp[2027]: tun0: Warning: Add route failed:  
0.0.0.0/0 already exists
Jan 17 10:18:56 freebsd ppp[2027]: tun0: Command: pap: enable pap
Jan 17 10:18:56 freebsd ppp[2027]: tun0: Command: pap: set ifaddr  
192.168.1.3 192.168.1.4-192.168.1.9
Jan 17 10:18:56 freebsd ppp[2027]: tun0: IPCP: Selected IP address  
192.168.1.8
Jan 17 10:18:56 freebsd ppp[2027]: tun0: Command: pap: enable proxy
Jan 17 10:18:56 freebsd ppp[2027]: tun0: Command: pap: enable passwdauth
Jan 17 10:18:56 freebsd ppp[2027]: tun0: Phase: PPP Started (direct  
mode).
Jan 17 10:18:56 freebsd ppp[2027]: tun0: Phase: bundle: Establish
Jan 17 10:18:56

Re: ppp (56kbs dialup) not keeping logs

2004-12-16 Thread Ben Washington-Yule
Ben Washington-Yule wrote:
ppp is playing up and I thought I'd have a look through the log file 
to try and find the cause. Problem is that ppp.log was to big so I 
deleted it thinking that ppp would just create a new one next time. It 
didn't. I need a log file to look at. How?

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

Sorry about this guys, on the second dial it *has* created the log. I 
should've been more patient.

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


Re: ppp(8) and dhclient(8)

2004-12-14 Thread Chuck Swiger
Andrew P. wrote:
I have a FreeBSD-4.10 host in my network. It's interface is 
DHCP-configured with a local ip-address, a dns server and a default 
route. The network is not connected to Internet, so the dns server 
resolves only local names and the default router only routes local 
packets. The host sometimes connects to internet via PPPoE. It receives 
new dns server and default route via IPCP.

The problem is that the new pair of dns/route seems to conflict with the 
old one.

DNS. I put enable dns and resolv writable in ppp.conf, ppp updates 
resolv.conf, but dhclient rewrites it in some seconds, leaving only 
local dns server in it.
You want to change the make_resolv_conf() function in /sbin/dhclient-script.
ROUTER. Default route is configured at startup by dhclient. "add default 
HISADDR" in ppp.conf will result in error and will not change the route. 
So we can type "add! default HISADDR" or delete the route first with 
"delete default". But when ppp disconnects there's no more default route 
and local packets do not get routed.
You should describe your local network topology using a static route rather 
than a default route, so that you can add and delete a default route via ppp 
without breaking anything.  Add something like this to /etc/rc.conf:

static_routes="local"
route_local="-net 192.168.2.0/24 192.168.1.1"
...assuming your local network has both a 192.168.1.x and a 192.168.2.y 
subnets, and 192.168.1.1 is a gateway which can get to both networks.

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


Re: PPP takes the system over :(

2004-05-23 Thread Sergey Zaharchenko
On Sun, May 23, 2004 at 09:36:16AM +0400,
 -=Nihr0M=- probably wrote:
> Hello Lowell Gilbert! 
> 
> Yes, I have a vterminal open (konsole), but it does change nothing...
> I can open another virtual term, but only when my network activity is 
> close to zero.

If you mean the 'k' in 'konsole', that probably wasn't the VT you were
asked to switch. Did you try pressing Ctrl+Alt+F2, for instance?
 
[skip hideously wrapped top output]

> that nice of ppp is my doing - I thought it would take less resources 
> - no result.
> And at that moment I downloaded a file...

Could you try it with no extraneous stuff, like KDE, running?

-- 
DoubleF
"Now this is a totally brain damaged algorithm.  Gag me with a
smurfette."
-- P. Buhr, Computer Science 354


pgpsj1dT255Tr.pgp
Description: PGP signature


Re: PPP takes the system over :(

2004-05-22 Thread -=Nihr0M=-
Hello Lowell Gilbert! 

Yes, I have a vterminal open (konsole), but it does change nothing...
I can open another virtual term, but only when my network activity is 
close to zero.

#top
last pid:   660;  load averages:  0.07,  0.11,  0.08  up 
0+00:13:55  09:33:10
47 processes:  3 running, 44 sleeping
CPU states:  0.0% user,  0.0% nice,  0.0% system,  0.0% interrupt, 
100% idle
Mem: 60M Active, 45M Inact, 38M Wired, 160K Cache, 34M Buf, 99M Free
Swap: 99M Total, 99M Free

  PID USERNAME PRI NICE   SIZERES STATETIME   WCPUCPU 
COMMAND
  626 root  960 22580K 19008K select   0:07  1.03%  1.03% 
ksysguard
  590 root  960 24028K 19500K RUN  0:02  0.29%  0.29% 
kdeinit
  518 root  960 80652K 79280K RUN  0:11  0.00%  0.00% 
XFree86
  612 root  960 33632K 29960K select   0:10  0.00%  0.00% 
kdeinit
  546 root  960 23432K 19344K select   0:06  0.00%  0.00% 
kdeinit
  577 root  960 24844K 20912K select   0:03  0.00%  0.00% 
kdeinit
  575 root  960 23536K 19744K select   0:02  0.00%  0.00% 
kdeinit
  573 root  960 22500K 18068K select   0:02  0.00%  0.00% 
kdeinit
  628 root  960  1772K  1372K select   0:01  0.00%  0.00% 
ksysguardd
  462 root  960  1228K   708K select   0:01  0.00%  0.00% 
moused
  641 root  960 23220K 20076K select   0:01  0.00%  0.00% 
kget
  581 root  960 22184K 17808K select   0:01  0.00%  0.00% 
kdeinit
  624 root 116   20  3300K  2064K select   0:01  0.00%  0.00% ppp
  584 root  960 21796K 16984K select   0:00  0.00%  0.00% 
kdeinit
  569 root  960 25556K 20296K select   0:00  0.00%  0.00% 
kdeinit
  552 root  960 22384K 18044K select   0:00  0.00%  0.00% 
kdeinit

that nice of ppp is my doing - I thought it would take less resources 
- no result.
And at that moment I downloaded a file...


"-=Nihr0M=-" <[EMAIL PROTECTED]> writes:
Hello, I have a 5.2.1-Release.
The problem is, when I start PPP -auto  and my modem
connects, when tcp transaction is going (e.g I download a file or 
open
a web page...) I'm not able to run any other
program (it seems like comp 'freezes'). That just sux... but when 
the
action completes, all htese progs start ...
duh...

BTW, my system is Athlon 1200Mhz, 256Megs of RAM, 200 of 2500 mb 
free
on HDD, external USR modem
Do you have a terminal open at the time?
Can you log in to a different virtual terminal?
Can you try running top(1) when you do the ppp(8) connect and see 
what
your system thinks it is doing?
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: PPP takes the system over :(

2004-05-22 Thread Lowell Gilbert
"-=Nihr0M=-" <[EMAIL PROTECTED]> writes:

> Hello, I have a 5.2.1-Release.
> 
> The problem is, when I start PPP -auto  and my modem
> connects, when tcp transaction is going (e.g I download a file or open
> a web page...) I'm not able to run any other
> program (it seems like comp 'freezes'). That just sux... but when the
> action completes, all htese progs start ...
> duh...
> 
> BTW, my system is Athlon 1200Mhz, 256Megs of RAM, 200 of 2500 mb free
> on HDD, external USR modem

Do you have a terminal open at the time?
Can you log in to a different virtual terminal?
Can you try running top(1) when you do the ppp(8) connect and see what
your system thinks it is doing?
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: PPP takes the system over :(

2004-05-22 Thread JJB
Based on the very little info you posted, here is the same level of
reply.
You have your system configured incorrectly.

Now is that reply useful?

About as useful as your question is. Nobody here has ESP so they can
not remotely read your mind or the contents or your system's config
files. When asking for help it's your responsibility to provide
enough info for readers of your post to actually help you.

Post full contents of the following config files to get meaningful
help.
Rc.conf, dmesg.boot, ppp.conf, ppp.log, firewall rules, output from
ps ax command while user ppp is running.

If you are trying to use kernel ppp, change to user ppp as it's a
whole lot easier to debug.
Is this an new clean install from cdrom?
Have you used FBSD before?
Besides just saying you have an "external USR modem" how about model
number and speed(IE 33.6, 56K or what)

Details man details. The more details you provide the more helpful
the reply will be.




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of -=Nihr0M=-
Sent: Saturday, May 22, 2004 6:28 AM
To: [EMAIL PROTECTED]
Subject: PPP takes the system over :(

Hello, I have a 5.2.1-Release.

The problem is, when I start PPP -auto  and my modem
connects,
when tcp transaction is going (e.g I download a file or open a web
page...) I'm not able to run any other
program (it seems like comp 'freezes'). That just sux... but when
the
action completes, all htese progs start ...
duh...

BTW, my system is Athlon 1200Mhz, 256Megs of RAM, 200 of 2500 mb
free
on HDD, external USR modem

Looking forward to hearing from you,

Slava
___
[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

2004-05-05 Thread Kevin D. Kinsey, DaleCo, S.P.
xavier collot wrote:

Hi!!

In the FreeBSD handbook, the chapter 18.3.3 talk about the file 
/etc/ppp/options.

I think I must create it and copy that it's written in the 
handbook concerning this file but I'm not sure.

Xavier

 

That is correct, oui

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


Re: PPP

2004-04-23 Thread Matthew Seaman
On Fri, Apr 23, 2004 at 10:18:19AM +0200, xavier collot wrote:
> Hi!
> I'm french and don't understand the chapter 18.2.1.2 (Creating PPP device Nodes) in 
> the freeBSD handbook.

Yes.  It's a pity that 

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

hasn't finished being translated yet.

> Precicely I don't understand what is N in the first paragraph. Is it necessary to 
> change the tun0?

'N' is just being used as a variable there -- it just means you can
have any number of tun devices.  If you're just using the system to
dial into an ISP then you probably only need one.

> I have an other question.(I'm sorry if it seems stupid). Is it essential to have an 
> Internet access to use PPP? I want use it between two networks but I haven't 
> Internet in these two networks.

Sure -- you just need a couple of modems, a telephone line and a
little know-how: connectivity to the rest of the internet is not
necessary.  You should set up one of the machines as the server
(ie. takes the incoming phone call) and the other as client (ie. makes
the call) initially.  There are plenty of examples for setting up the
machine as a PPP server in /usr/share/examples/ppp.

> To finish how can I know my FreeBSD version?

% uname -r

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


Re: PPP authentification

2004-04-20 Thread Bill Moran
xavier collot wrote:
Hi!! ( I'm french so I'm sorry if my English isn't good)
 
I have 3 computers :
the first one is on Linux (mandrake 9.1)
the second is on Windows XP
and the third is a server on FreeBSD
 
I try to make a link between the server and the others and I want that when a user wants to acess to the network he uses the server and he must enter a password with the PPP (maybe CHAP).
 
I have read the RFC but I haven't find goods doc to realize this project.
Can you help me please.
 
If you want more precisions I can give you what you want and send me a mail.
Thank you very much
Does this help:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ppp.html
Here is that chapter in French, but it doesn't look as if it's as updated as the
English version (I don't speak French, so I can't be sure):
http://www.freebsd.org/doc/fr_FR.ISO8859-1/books/handbook/ppp-and-slip.html
Hope this helps.

--
Bill Moran
Potential Technologies
http://www.potentialtech.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: PPP connections drop frequently and won't automatically come up again

2004-04-19 Thread Cordula's Web
Mon, 19 Apr 2004 00:08:13 +0200, Guido Winkelmann <[EMAIL PROTECTED]>:

> I am using a small FreeBSD machine as a NAT router (and for a few other 
> purposes) for an ADSL connection for my home network. I am using the user 
> space ppp program with the -ddial and the -nat switch for this.
> 
> The problem is that, at seemingly random intervals, the connection to the 
> internet will go down (or rather, stop working) and refuse to automatically 
> come up again. After a reboot, everything works again.

This typically happens, when the router that is serving the ADSL
session reload(s). For some mysterious reason, ppp doesn't notice
that the PAD session is dead (despite keep-alives) and thus doesn't
try to redial. [I confirmed _many_ _times_ with my ISP's netadmins
that they either rebootet my peer router, or swapped equipment,
exactly the moment ppp(8) showed the symptoms you describe.]

You can verify this by logging in to ppp:

# pppctl /var/run/internet
PPP> 

You can close the connection manually:

PPP> close
PPp>
Ppp>
ppp>
ppP>
pPP>
PPP> quit

and it will then come up again automatically, iff the router
behind the DSLAM is ready to accept new connections. Depending
upon load and equipment, this can take between 10 and 60 (!)
minutes. In the meantime, enjoy:
# tail -f /var/log/ppp

A possible work-around is a watchdog script which tests
the integrity of the link, and which could manually (e.g. via
expect) close the connection if necessary. Of course, fixing
ppp(8) would be much, MUCH better!

> After that happened again yesterday, I logged in to the machine via ssh (which 
> took a lot longer than usual btw, it was about a minute until I was prompted 
> for my password).

DNS problems when the link is down...

> I found the ppp process to still be running, the interface 
> tun0 to still be up and the default route to still be set to tun0. Also, 
> there was no mention of any problem in /var/log/ppp or /var/log/messages (at 
> least not from ppp itself - some other daemon was repeatedly complaining 
> about the lack of internet connectivity). The send/receive diode on the DSL 
> modem was still blinking wildly.

Use pppctl /var/run/internet as described above.

> Next thing I did was to unplug the DSL modem from its power supply, wait a few 
> seconds and plug it in again, hoping that now the ppp process would finally 
> realize that there was something wrong and reinitiate the connection, but 
> that didn't succeed. I only could bring up the Internet connection again with 
> a reboot.

No, you don't need to reboot. Just close the connection with
pppctl, or kill the ppp daemon and restart it manually.

> This happens at very irregular intervals. The last time, it happened only a 
> few hours after bootup, the time before, everything worked fine for nearly a 
> month, until I rebooted the machine for updating. (I did get disconnected a 
> few times during that months, though. At least I got a new IP address a few 
> times. But the connection never stayed down for more than a few seconds.)
> 
> The FreeBSD version is RELENG_5_2, updated two or three days ago.
> 
> I've got the following lines in /etc/rc.conf for ppp:
> 
> [...]
> # Internet access from the local network
> gateway_enable="YES"
> 
> ppp_enable="YES"
> ppp_mode="ddial"
> ppp_nat="YES"
> ppp_profile="arcor"
> ##
> [...]
> 
> and this is my /etc/ppp/ppp.conf:
> default:
>   set server /var/run/internet "" 0177
>   set log Phase tun command
>   set ifaddr 10.0.0.1/0 10.0.0.2/0
> 
> arcor:
>   set device PPPoE:rl0
>   set authname xxx
>   set authkey xx
>   set dial
>   set login
>   add default HISADDR
> [...]
> 
> (the rest is just portforwarding)
> 
> Could someone please help me with that?
> 
>   Guido Winkelmann

-- 
Cordula's Web. http://www.cordula.ws/

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


Re: PPP in 5.1

2004-04-18 Thread Robert Storey
Dear Noir,

For me to get kppp working, I did the following:

create empty /etc/resolv.conf

chmod 640 /etc/resolv.conf

create /etc/ppp/options with this content:
  # Options file for PPPD
  defaultroute
  crtscts
  modem
  deflate 12,12
  predictor1
  vj-max-slots 16
  user
  lock
  idle 600

Then just configure kppp as normal (user name, password, phone number).
That's all.

best regards,
Robert


On Sun, 18 Apr 2004 18:40:24 +0100 (BST)
Noir <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> I am using PPP from the console mode to connect to my
> ISP. The command that I use are:
> 
> Input:
> 
> >ppp
> >set device /dev/cuaa0
> >set speed 115200
> >enable dns
> >disable ipv6 # tried both with or without this
> >disable ipv6cp # tried both with or without this
> >set authname  # tried both with or without
> this
> > set authkey  # tried both with or without this
> >term
> >at
> >atdt
> 
> Output:
> 
> All I get is "CARRIER 115200" and the modem hangs-up
> after a few seconds.
> 
> I tried the above both in shell and from within KDE
> 3.1 (xterm).
> 
> I also tried KPPP (ver. 2.1.2) in KDE 3.1. In KPPP I
> tried different modes: PPP/ PAP/CHAP/ etc. The KPPP
> log shows:
> 
> pppd daemon died unexpectedly. Exit status 1.
> ppp0<-->/dev/cuaa0
> PAP authentication failed.
> 
> I also have my p. dns and s. dns in my
> /etc/resolf.conf file.
> 
> It's a FBSD5.1. 
> 
> Any kind of help would be greatly appreciated.
> 
> --Noir.
> 
> 
>   
>   
>   
> 
> Yahoo! Messenger - Communicate instantly..."Ping" 
> your friends today! Download Messenger Now 
> http://uk.messenger.yahoo.com/download/index.html
> ___
> [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 problems : Modem connection issues on FreeBSD 5.2.1

2004-04-14 Thread Niraj Kumar
Niraj Kumar wrote:

JJB wrote:

First of all you are using an development version of Freebsd which



I did a bit of tweaking to compile this program (which was for openbsd) .


I will post ppp.conf in next mail .(I  am  currently away from that 
machine) .
For me ,the problem appears to be in ppp  program and not in eciadsl .
Here is ppp.conf :

#
# PPP  Sample Configuration File to use with the Speedtouch USB
# Written by Francois Rogler <[EMAIL PROTECTED]>
#
# You will have to fill in :
# - 
# - 
# - . as defined by your provider.
#   Check the file vpivci for some commom values.
# `adsl' profile is for the default PPPoA mode
# `pppoe' profile is for the bridged PPPoE mode
#
#   $Id: ppp.conf.sample,v 1.5 2003/07/23 03:36:41 rogler Exp $
#
default:
ident user-ppp VERSION (built COMPILATIONDATE)
set log Phase Chat IPCP CCP tun command
set ifaddr 10.0.0.1/0 10.0.0.2/0
disable pred1 deflate lqr# compression features
denypred1 deflate lqr# line quality reporting
disable ipv6 # turn off ipv6 challenge
adsl:
set authname "**"
set authkey "**"
set openmode active 3
set device !"/root/eciadsl/eciadsl-usermode-bsd-0.10/pppoeci -v 1 -f 
/var/log/pppoeci.log -alt 4 -mode LLC_RFC2364"
accept chap
set speed sync
set timeout 0
set redial 15 1
set dial ""
add default HISADDR
enable dns

pppoe:
set authname "[EMAIL PROTECTED]"
set authkey "motihari123"
set device PPPoE:tap0
set speed sync
set timeout 0
set redial 15 1
set dial
set login
add default HISADDR
enable dns



Try adding this to your ppp.conf
disable pred1 deflate lqr# compression features
denypred1 deflate lqr# line quality reporting
disable ipv6 # turn off ipv6 challenge
Will try this and let you know the results. 
I am getting the same error even after adding these options .

I am posting eciadsl.conf below :

VID1=0f70
PID1=0001
VID2=0915
PID2=0002
MODE=LLC_RFC2364
VCI=32
VPI=1
FIRMWARE=/etc/eciadsl/firmware00.bin
SYNCH=/etc/eciadsl/synch07.bin
PPPD_USER=*
PPPD_PASSWD=***
USE_DHCP=no
USE_STATICIP=no
STATICIP=
GATEWAY=
MODEM=Other
PROVIDER=Other
DNS1=202.56.250.5
DNS2=


As an guide, I would plug an ms/windows box into your DSL modem and
see what it says to verify you really need PPPoA.
I know this for sure because as I said in my first mail , I am using 
the same
program on Linux  (on the same box with same modem ) to successfully 
connect
to the provider.

FreeBSD 'user ppp' also has pppoa and pppoe options. Most DSL modems
work with pppoe. Read man ppp and the official handbook at
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/pppoa.html


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Niraj Kumar
Sent: Tuesday, April 13, 2004 2:57 AM
To: [EMAIL PROTECTED]
Subject: ppp problems : Modem connection issues on FreeBSD 5.2.1
 Hi,

I have a DSL modem with Globespan chipset.
I am trying to use eciadsl usemode program
 ( http://eciadsl.flashtux.org/download.php?lang=en )
on FreeBSD 5.2.1 (AMD Athlon 2600 , A7N8X-VM  motherboard).
However , I am getting the following error and
ppp connect failed . See the copy/paste from the terminal below :
# ppp -background adsl
Working in background mode
Using interface: tun0
Child failed (errdead)
After  some more digging , I was able to enable logging . (See log
below)
From whatever I see in the log , I guess the culprit is the line
which
says :
"Too many LCP NAKs sent - abandoning negotiation" .  But I don't
know
how to address this problem .
Could anybody please help me on this .
NOTE  that I am able to connect to my provider using the 0.8 version
of
usermode eciadsl program on Linux , on the same machine .
Also , is there any other program which can be used on FreeBSD for
this
purpose ? FYI , I have to use *ppp over ATM ( PPPoA* == RFC2364 )
for this connection .
If you need any more info , please let me know.
thanks
Niraj
-ppp.log ---

Apr  8 20:00:53  ppp[638]: tun0: Phase: deflink: Connected!
Apr  8 20:00:53  ppp[638]: tun0: Phase: deflink: opening -> dial
Apr  8 20:00:53  ppp[638]: tun0: Chat: deflink: Dial attempt 1 of
1
Apr  8 20:00:53  ppp[638]: tun0: Phase: deflink: dial -> carrier
Apr  8 20:00:53  ppp[638]: tun0: Phase: deflink: carrier -> login
Apr  8 20:00:53  ppp[638]: tun0: Phase: deflink: login -> lcp
Apr  8 20:00:58  ppp[638]: tun0: Phase: deflink: Too many LCP NAKs
sent
- abandoning negotiation
Apr  8 20:00:59  ppp[638]: tun0: Phase: deflink: Disconnected!
Apr  8 20:00:59  ppp[638]: tun0: Phase: deflink: lcp -> logout
Apr  8 20:00:59  ppp[638]: tun0: Phase: deflink: logout -> hangup
Apr  8 20:00:59  ppp[638]: tun0: Phase: deflink: Disconnected!
Apr  8 20:00:59  ppp[638]: tun0: Phase: deflink: Connect time: 6
secs:
1106 octets in, 558 octets out
Apr  8 20:00:59  ppp[638]: tun0: Phase: 

Re: ppp problems : Modem connection issues on FreeBSD 5.2.1

2004-04-13 Thread Niraj Kumar
JJB wrote:

First of all you are using an development version of Freebsd which
has major kernel differences such as addition of kernel threading
and an completely new file system, besides a bunch of known bugs.
Second that web page you reference only says it has been tested on
openbsd and that it's an beta version with big warning message. You
are making an very big and unsupported foolish assumption that it
will work on FreeBSD at all, more less on an development version of
Freebsd.
I recommend that you try it on Freebsd 4.9 the stable production
version. It more closely resembles openbsd than the development 5.x
Thanks a lot for your suggestion . But I intent to run FreeBSD 5.2.1 
only and not 4.9 because
I need ufs2 for my other work (eg. I am porting ufs2 to linux ) .
I did a bit of tweaking to compile this program (which was for openbsd) .
on freebsd and had to do a lot of configuration changes for running
eci-load1 and eci-load2 successfully .

versions do. I would say this  message 'Child failed (errdead)' is
the problem that caused the "Too many LCP NAKs sent - abandoning
negotiation" log message.  You should have posted the ppp.conf file.
I will post ppp.conf in next mail .(I  am  currently away from that 
machine) .
For me ,the problem appears to be in ppp  program and not in eciadsl .

Try adding this to your ppp.conf
disable pred1 deflate lqr# compression features
denypred1 deflate lqr# line quality reporting
disable ipv6 # turn off ipv6 challenge
Will try this and let you know the results.

As an guide, I would plug an ms/windows box into your DSL modem and
see what it says to verify you really need PPPoA.
I know this for sure because as I said in my first mail , I am using the 
same
program on Linux  (on the same box with same modem ) to successfully 
connect
to the provider.

FreeBSD 'user ppp' also has pppoa and pppoe options. Most DSL modems
work with pppoe. Read man ppp and the official handbook at
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/pppoa.html


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Niraj Kumar
Sent: Tuesday, April 13, 2004 2:57 AM
To: [EMAIL PROTECTED]
Subject: ppp problems : Modem connection issues on FreeBSD 5.2.1
 Hi,

I have a DSL modem with Globespan chipset.
I am trying to use eciadsl usemode program
 ( http://eciadsl.flashtux.org/download.php?lang=en )
on FreeBSD 5.2.1 (AMD Athlon 2600 , A7N8X-VM  motherboard).
However , I am getting the following error and
ppp connect failed . See the copy/paste from the terminal below :
# ppp -background adsl
Working in background mode
Using interface: tun0
Child failed (errdead)
After  some more digging , I was able to enable logging . (See log
below)
From whatever I see in the log , I guess the culprit is the line
which
says :
"Too many LCP NAKs sent - abandoning negotiation" .  But I don't
know
how to address this problem .
Could anybody please help me on this .
NOTE  that I am able to connect to my provider using the 0.8 version
of
usermode eciadsl program on Linux , on the same machine .
Also , is there any other program which can be used on FreeBSD for
this
purpose ? FYI , I have to use *ppp over ATM ( PPPoA* == RFC2364 )
for this connection .
If you need any more info , please let me know.
thanks
Niraj
-ppp.log ---

Apr  8 20:00:53  ppp[638]: tun0: Phase: deflink: Connected!
Apr  8 20:00:53  ppp[638]: tun0: Phase: deflink: opening -> dial
Apr  8 20:00:53  ppp[638]: tun0: Chat: deflink: Dial attempt 1 of
1
Apr  8 20:00:53  ppp[638]: tun0: Phase: deflink: dial -> carrier
Apr  8 20:00:53  ppp[638]: tun0: Phase: deflink: carrier -> login
Apr  8 20:00:53  ppp[638]: tun0: Phase: deflink: login -> lcp
Apr  8 20:00:58  ppp[638]: tun0: Phase: deflink: Too many LCP NAKs
sent
- abandoning negotiation
Apr  8 20:00:59  ppp[638]: tun0: Phase: deflink: Disconnected!
Apr  8 20:00:59  ppp[638]: tun0: Phase: deflink: lcp -> logout
Apr  8 20:00:59  ppp[638]: tun0: Phase: deflink: logout -> hangup
Apr  8 20:00:59  ppp[638]: tun0: Phase: deflink: Disconnected!
Apr  8 20:00:59  ppp[638]: tun0: Phase: deflink: Connect time: 6
secs:
1106 octets in, 558 octets out
Apr  8 20:00:59  ppp[638]: tun0: Phase: deflink: 56 packets in, 32
packets out
Apr  8 20:00:59  ppp[638]: tun0: Phase:  total 277 bytes/sec, peak
35
bytes/sec on Thu Apr  8 20:00:58 2004
Apr  8 20:00:59  ppp[638]: tun0: Phase: deflink: HUPing 640
Apr  8 20:00:59  ppp[638]: tun0: Phase: deflink: hangup -> closed
Apr  8 20:00:59  ppp[638]: tun0: Phase: bundle: Dead
Apr  8 20:00:59  ppp[638]: tun0: Phase: PPP Terminated (normal).
Apr  8 20:00:59  ppp[637]: tun0: Phase: Parent: Child failed
(errdead)
Apr  8 20:00:59  ppp[638]: tun0: Chat: Parent notified of failure
---
---




___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.

Re: PPP Question - should be easy...

2004-03-17 Thread Sergey 'DoubleF' Zaharchenko
Somewhere around then,
"Chris Knipe" <[EMAIL PROTECTED]> wrote:

> > Hi all,
> > 
> > I was just wondering, I run ppp from rc.conf with -ddial, and it is
> > working brilliantly. However,
> > I need to change ppp configurations quite frequently, is there a
> > quick way to tell ppp to reload
> > the configuration without killing it?

On Sun, 14 Mar 2004 17:18:03 -0500
"JJB" <[EMAIL PROTECTED]> probably wrote:

> Killall ppp  followed by ppp -ddial xxx

Chris said without killing it.

Many of the configuration values are only used at negotiation
time. Those, you norrmally can't change without reopening the
link. The STD on PPP implies that it should be possible to renegotiate
the link without physically dropping carrier (by sending an LCP packet,
for instance), but I doubt ppp supports it (and I don't really think it
should).

What are you trying to do?

-- 
DoubleF
"A power so great, it can only be used for Good or Evil!"
-- Firesign Theatre, "The Giant Rat of Summatra"


pgp0.pgp
Description: PGP signature


RE: PPP Question - should be easy...

2004-03-14 Thread JJB
Killall ppp  followed by ppp -ddial xxx

Where xxx is the section header name in the ppp.conf you want to
exec.

User ppp always reads the default: section name, just add other
section names containing your different values.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Chris Knipe
Sent: Sunday, March 14, 2004 4:52 PM
To: FreeBSD Questions
Subject: PPP Question - should be easy...

Hi all,

I was just wondering, I run ppp from rc.conf with -ddial, and it is
working brilliantly. However,
I need to change ppp configurations quite frequently, is there a
quick way to tell ppp to reload
the configuration without killing it?

I am specifically looking to change values in the label that is run
from rc.conf with -ddial...
I'm hoping in some way that I can send ppp a -HUP and it will use
the new values when the ppp
process reconnects automatically in -ddial mode.

Thanks for your time, and I look forward to some possible answers.

Regards,
Chris.

___
[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 server: arp proxy things? (re-post)

2004-02-27 Thread Maksim Yevmenkin
Hello,

[...]
 
> Now to what I can understand, the biggest problem is the proxy arp. I can 
> have bc compuerts connects to bs, but I cannot let them access other hosts 
> on the LAN. A true example: bc1 is 10.0.0.11, on the other side of the 
> tunnel is 10.0.0.10 (bs). bs also have a NIC address 10.0.0.9. bc1 ping 
> 10.0.0.10 and 10.0.0.9 just fine, ping other hosts gets time out.
> 
> I do have "enable proxy" (and "enable proxyall") in my ppp.conf; I do have 
> gateway_enable="yes" in my rc.conf. So it is a simple question: ppp 
> connects okay, but  proxy arp is not working, what should I do? 

what is your routing table?

# netstat -rn (should work on freebsd, windows (cmd) and mac os X (terminal)) 

> Now I just built a bluetooth based LAN access server, that is to run 
> several serial connection over bluetooth, so you can think they are many 
> simple serial connection, and ppp runs over the connections through tun. 
> The network is like this:
> 
>  [gateway/firewall: 10.0.0.138] --- [many hosts, 10.0.0.1 - 10.0.0.8]
>  |
>  | +-- [10.0.0.10 <-tun-> 10.0.0.11] -- [bc1]
>  [bs: 10.0.0.9]+-- [10.0.0.12 <-tun-> 10.0.0.13] -- [bc2]
>+-- [10.0.0.14 <-tun-> 10.0.0.15] -- [bc3]
> 
> 10.0.0.138 is also the DHCP/DNS server. bs means bluetooth LAN access 
> server, bc1 is a notebook computer with bluetooth, bc2 is another, and bc3 
> yet another.

why? PPP server can assign IP addresses just fine without any DHCP.
just put ppp/bluetooth clients on a separate subnet, i.e. in ppp.conf
on bs something like (check with ppp(8) man page)

server:
  ... other stuff ...

  set ifaddr 10.0.1.9 10.0.1.1-10.0.1.254
  accept dns

  ... other stuff ...

start rfcomm_pppd(8) with '-l server'.

now all ppp/bluetooth clients should be of 10.0.1.0/24 subnet. make sure

- all ppp/bluetooth clients have default route set to 10.0.1.1

- bs has gateway_enable="YES"

- bs has valid entries in /ets/resolv.conf

- all non-bluetooth clients should have route to ppp/bluetooth clients
  via bs, i.e. to reach 10.0.1.0/24 subnet packet should go to bs (10.0.0.9)

> I have pppd running on bs. I'm pretty dumb with ppp, to get it working I 
> setup three ppp lables in /etc/ppp/ppp.conf, holding the address from 
> 10.0.0.10 to 10.0.0.15.

read ppp(8) man page and look at /usr/share/examples/ppp/
 
> Currently bc1, bc2, bc3 connect to bs correctly, I don't have any 
> route/proxy to let bc to connect to other computers in the LAN, say 
> 10.0.0.1. Now I wish to make the network really transparent, that is as if 
> bc1, bc2, bc3 is in the LAN, to be pinged and sshed. I wish to make:
> * upon each ppp connection, bs ask 10.0.0.138 to assign an IP address from 
> address pool to bc, also let 10.0.0.138 give other dhcp information like 
> dns server, search domain etc. If bc love to register a DNS entry it should 
> be able to do so.
> * When someone in LAN (say 10.0.0.5) wish to connect to bc2 it should be no 
> problem (so-called proxy arp).
> 
> I hope I'm clear. Am I still far away from getting that work? Where to find 
> a guide to achieve that? Thank you!

max

__
Do you Yahoo!?
Get better spam protection with Yahoo! Mail.
http://antispam.yahoo.com/tools
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: ppp idle timer

2004-01-04 Thread Karl Juchen
Hi!

fbsd_user wrote:
> I have been reading this list for 4 years and your post is the first
> on any body trying to use 'user ppp' filter rules.
> I read about them when I setup my own user ppp dial out to ISP over
> voice phone modem, tried to use them, but they have no way to verify
> the rules are working, and iirc no logging function.

There is a logging facility 'Filter' that allows basic logging, but for my
problem
that's not very important, I think. I check the idle timer with:

set server +3000 mypasswd

pppctl 3000
show bundle

That's probably not the best solution, but it works.


> Here's my advice, you are better off with ipfilter firewall which is
> delivered as part of the FBSD core system. IPFW is massive overkill
> in most cases.
>
> More information on IPF can be found here.
> http://www.obfuscation.org/ipf/ipf-howto.html#TOC_1
>
> http://coombs.anu.edu.au/~avalon/ip-filter.html

Thanks, first of all. Of course I do not want to do real packet-filtering
with ppp, but just control the idle timer. Example:
Somebody sends icmp echo-requests to my box. Even if my box doesn't
give any replies, the incoming packets will keep up my dial-on-demand
connection.
That's what I want to suppress with my ppp filter rules. The problem
occurs very frequently with p2p-network requests, that belong to the
former owner of my dynamic ip address...
I can't imagine I'm the only one, who has such a kind of problem.

Unfortunately, I couldn't find out how to control ppp idle timer with IPF,
is it really possible?

I'm grateful for any solution.


Regards,
Karl

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net


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


RE: ppp setup

2003-12-12 Thread marcelo cardoso martinelli

--- fbsd_user <[EMAIL PROTECTED]> wrote:
> You are making an assumption that FBSD and windows  look at the
> modem the same way, and you are wrong in that assumption. FBSD and
> windows are 2 very different OS and I no way handle PCI devices and
> IRQ's the same way.
> 
> I beat I know your problem. Since your PC is first window box you
> bought winmodem for it because they are so cheap. The reason
> winmodems are so cheap is because they are missing onboard
> controllers  and DPC chips. You have to load special modems software
> drivers which perform those function in software. FBSD does not work
> with winmodems and if you look in /var/run/dmesg.boot you will see
> an message for pci device (unknown)  thats your winmodem.
> There is nothing wrong with user ppp yet it has not really been able
> to do any thing because the device you told it to use was never
> found at boot time.
> 
> -Original Message-
> From: marcelo cardoso martinelli
> [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 11, 2003 12:35 PM
> To: [EMAIL PROTECTED]
> Subject: RE: ppp setup
> 
> 
> --- fbsd_user <[EMAIL PROTECTED]> wrote:
> > How do you know that your modem is connected to com4?
> >
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] Behalf Of marcelo
> > cardoso martinelli
> > Sent: Thursday, December 11, 2003 10:09 AM
> > To: [EMAIL PROTECTED]
> > Subject: ppp setup
> >
> > i made a clean install of freebsd 5.0-release in my home machine
> and
> > i
> > am having trouble setting up my box for dial-up access to the
> > internet.
> >
> > my modem is connected to com4 but my dmesg entry shows that the
> > kernel
> > is only tracking up to com2. i tried looking at my kernel
> > configuration
> > file but it is only showing one line for serial devices (device
> > sio).
> > how can i get around this?
> >
> > i remember that setting it up in the 4.x series was much easier.
> >
> > TIA.
> 
> because my system is a dual-boot setup (freebsd and winxp) and i was
> able to extract the information from winxp.
> 
> BTW, i only have a dual-boot box because my wife can't handle bsd
> and i
> don't have the time to teach her. if it was up to me i'd be using
> freebsd only.
> 

two things: first, no my modem is not a winmodem, and i would think
that both OSes would access the modem using the same com port. i had
never observed that one os - be it linux, freebsd or windows - would
access the same piece of hardware differently. either way, but my modem
doesn't exist in /dev/cuaa0 or /dev/cuaa1, that's for sure.

i haven't been able to work on my home box over the past couple days
but one hint i got was to edit /boot/device.hints which may solve the
problem.

one piece of advice, please remember to include Cc the mailing list
when you reply to a post. i don't think the idea of a mailing list is
to start private conversations.

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


Re: PPP redial

2003-12-03 Thread Lowell Gilbert
"Cole" <[EMAIL PROTECTED]> writes:

> I would like to know whether anyone has any idea on how to set the
> redial option in ppp on freebsd to no-redial.  I have checked the
> man page and tried various options. Setting the redial number to 0,
> means infinite redials, till it connects. I dont want that. You
> cannot set the value to a negative number, i also tried that. I want
> to turn off all redialing, not have it at like 1, cause as soon as
> it does reconnect, the redial counter is cleared, so if it makes a
> succesful connection, and is then cutoff, and makes a new
> connection, in less than a second or so, it will do this
> ad-infinitum. Which is not what i want.

It sounds like you're using the -auto flag when you don't actually
want to do that...
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ppp link always dials when started with -auto?

2003-11-06 Thread David Carter-Hitchin
Hi,

With lots of help from John Chung I eventually fixed this problem - it was
because ipv6 was configured.  I've disabled that in the kernel (I survived
without it for years, so no reason to have it as part of my upgrade).

I clocked up about 15 hours trying to debug this problem - that would have
been cut down to about 30 mins had this been in the FAQ.  Can someone
please add this side effect of ipv6 on ppp to FAQ 14.17 or alternatively I
am happy to volunteer to do it myself?

There again if someone knows a cunning way to make ppp and ipv6 sit
happily together that might be a better way forward...

Thanks,
David.

On Sun, 26 Oct 2003, David Carter-Hitchin wrote:

> Hi FreeBSD'ers,
> 
> I've just upgraded to 4.9-RC (from 4.2) and I'm really happy with
> everything except ppp. 
> 
> Whenever I start ppp (with ppp -auto pmdemand) it immediately starts to
> dial - after connecting it briefly sends and receives a minimal amount of
> data then sits there idly.
> 
> One other problem I've got with my upgrade is that I'm getting pam errors:
> 
> Oct 26 20:26:25 stoat login: no modules loaded for `login' service
> Oct 26 20:26:25 stoat login: pam_open_session: Permission denied
> 
> (related?)
> 
> I've read the ppp faq and this question is covered and it says sendmail is
> the often the culprit.  This rang loud bells as I saw that the more recent
> version of sendmail has depreciated the 'nodns' feature.  So I tried
> rebooting without sendmail running, but still the same problem.  I tried
> killing off a few daemons including inetd, lpd, usbd.. but no joy.
> 
> I added "log All +tcp/ip" to get the full output, but I don't know enough
> about this stuff to go further.  I initially get the following lines in
> the log:
> 
> Oct 26 21:17:32 stoat ppp[466]: tun0: TCP/IP: OUT
> <0>: fe80::240:95ff:fe44:3e11 ---> ff02::1:ff44:3e11 (72)
> 
> Oct 26 21:17:32 stoat ppp[466]: tun0: TCP/IP: OUT ICMP: :::135 --->
> ff02::1:ff44:3e11 (16/64)
> 
> I've uploaded the rest of the conversation to:
> 
> http://www.carter-hitchin.clara.co.uk/logs/ppp.log.gz
> 
> My setup is an isolated workstation (no LAN, occasional dialup). Here are
> some outputs:
> 
> [516]->uname -a
> FreeBSD stoat.clara.net 4.9-RC FreeBSD 4.9-RC #0: Sat Oct 18 13:56:46 BST
> 2003 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/STOAT  i386
> 
> [517]->cat /etc/ppp/ppp.conf
> default: 
>  #set log Phase Chat LCP IPCP CCP tun command
>  set log All 
>  ident user-ppp VERSION (built COMPILATIONDATE)
>  set device /dev/cuaa0
>  set speed 115200
>  set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
>   \"\" ATM1 OK \\dATDT\\T TIMEOUT 40 CONNECT"
>  enable dns
> 
> pmdemand:
>  set timeout 300# 3 mintue idle timer (the
> default)
>  set phone XXX 
>  set authname X
>  set authkey XX
>  add default HISADDR# Add a (sticky) default route
>  set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.255
> 
> 
> [68]->cat /etc/resolv.conf
> domain=stoat
> nameserver 195.8.69.7
> nameserver 195.8.69.12
> 
> [69]->cat /etc/hosts
> ::1 localhost localhost.clara.net
> 127.0.0.1   localhost localhost.clara.net stoat.clara.net 
> 127.0.0.1   stoat stoat.clara.net
> 127.0.0.1   carter-hitchin.clara.co.uk
> 
> 
> I'd really appreciate some help here - I'm stuck in being able to
> identify precisely what is using the link.
> 
> Many thanks,
> David.
> 
> 
> 
> ___
> [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 confusion

2003-10-10 Thread Jeff Penn
On Thu, Oct 09, 2003 at 05:20:11PM +1000, nevle wrote:
> I made the changes you suggested and seemed to be connected (full modem 
> lights) but couldn't log-on to any site(using Lynx),tried to "ping -c 
> 204.216.27.18" ,and got "invalid count of packets to transmit..."

> ##ppp.conf
etc ...
>  add default HISADDR  # Add a (sticky) default route

I noticed in your original post you included the following details:

>> my ppp.linkup file says
>> MYADDR:
>> delete ALL
>> add 0 0 HISADDR

Try commenting out those last two lines in ppp.linkup.  You should only 
need 'add default HISADDR' in ppp.conf or ppp.linkup, not both.

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


RE: ppp confusion

2003-10-08 Thread fbsd_user
You have problem with your ppp.conf. The ppp.log shows that you have
an error
tun0: Command: default: papchap:
tun0: Warning: papchap:: Invalid command
tun0: Warning: papchap:: Failed 1

But the most enlightening info from the log is
Oct  8 15:34:19 nevsbsd ppp[527]: tun0: Chat: deflink: Dial attempt
1 of 1
Oct  8 15:34:19 nevsbsd ppp[527]: tun0: Chat: Send: AT^M
Oct  8 15:34:20 nevsbsd ppp[527]: tun0: Chat: Expect(5): OK
Oct  8 15:34:20 nevsbsd ppp[527]: tun0: Chat: Received: AT^M^M
Oct  8 15:34:20 nevsbsd ppp[527]: tun0: Chat: Received: OK^M
Oct  8 15:34:20 nevsbsd ppp[527]: tun0: Chat: Send: ATE1Q0^M
Oct  8 15:34:20 nevsbsd ppp[527]: tun0: Chat: Expect(5): OK
Oct  8 15:34:20 nevsbsd ppp[527]: tun0: Chat: Received: ATE1Q0^M^M
Oct  8 15:34:20 nevsbsd ppp[527]: tun0: Chat: Received: OK^M
Oct  8 15:34:20 nevsbsd ppp[527]: tun0: Chat: Send: ATDT^M
Oct  8 15:34:22 nevsbsd ppp[527]: tun0: Chat: Expect(40): CONNECT
Oct  8 15:34:33 nevsbsd ppp[527]: tun0: Chat: Received: ATDT^M^M
Oct  8 15:34:33 nevsbsd ppp[527]: tun0: Chat: Received: BUSY^M
Oct  8 15:34:33 nevsbsd ppp[527]: tun0: Warning: Chat script failed
Oct  8 15:34:33 nevsbsd ppp[527]: tun0: Phase: deflink: dial ->
hangup

This shown the modem being connected to FBSD but no phone number is
being dialed.
Change you ppp.conf to look like this

default:
 set log Phase Chat LCP IPCP CCP tun command

 #ident user-ppp VERSION (built COMPILATIONDATE)this is useless
statement so remove

 # 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:  # this section header has to start in pos number 1.
just like default: does

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

#ansonic:   #remove this statement

 set phone 123456  # be sure this is the dialin phone number for
your ISP

# set login  remove this statement

 set authname barney
 set authkey bambam

 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



Use this console command to start user ppp
"ppp -auto papchap"

check your ppp.log to see if things work. If not post your updated
ppp.conf and ppp.log just containing last test.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of nevle
Sent: Wednesday, October 08, 2003 7:30 AM
To: [EMAIL PROTECTED]
Subject: re:ppp confusion

Hi,
thanks for your reply,dmesg.boot,ppp.conf and ppp.log files are
below.The man
ppp seems to be saying that I connect with ppp -ddial myisp, is this
correct?My modem is Simplecomputing netexpress 56K external
modem.Hope that
you can make things a little clearer for me and I  appreciate the
time you
have spent helping me.
nevle

###dmesg.boot
Copyright (c) 1992-2003 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993,
1994
The Regents of the University of California. All rights
reserved.
FreeBSD 5.1-RELEASE #0: Thu Jun  5 02:55:42 GMT 2003
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC
Preloaded elf kernel "/boot/kernel/kernel" at 0xc06d4000.
Preloaded elf module "/boot/kernel/acpi.ko" at 0xc06d41f4.
Timecounter "i8254"  frequency 1193182 Hz
Timecounter "TSC"  frequency 141953 Hz
CPU: AMD Duron(tm) processor (1000.04-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x671  Stepping = 1

Features=0x383f9ff
  AMD Features=0xc048
real memory  = 134152192 (127 MB)
avail memory = 122933248 (117 MB)
Pentium Pro MTRR support enabled
npx0:  on motherboard
npx0: INT 16 interface
acpi0:  on motherboard
pcibios: BIOS version 2.10
Using $PIR table, 7 entries at 0xc00fdd00
acpi0: power button is handled as a fixed feature programming model.
Timecounter "ACPI-fast"  frequency 3579545 Hz
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on
acpi0
acpi_cpu0:  on acpi0
acpi_button0:  on acpi0
acpi_button1:  on acpi0
pcib0:  port
0x6000-0x607f,0x5000-0x500f,0x4080-0x40ff,0x4000-0x407f,0xcf8-0xcff
on acpi0
pci0:  on pcib0
agp0:  mem
0xd000-0xd3ff at device 0.0 on pci0
pcib1:  at device 1.0 on pci0
pci1:  on pcib1
pci1:  at device 0.0 (no driver attached)
isab0:  at device 7.0 on pci0
isa0:  on isab0
atapci0:  port 0xd000-0xd00f at
device 7.1 on
pci0
atapci0: Correcting VIA config for southbridge data corruption bug
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
uhci0:  port 0xd400-0xd41f irq 9 at
device 7.2 on
pci0
usb0:  on uhci0
usb0: USB revision 1.0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1:  port 0xd800-0xd81f irq 9 at
dev

Re: ppp confusion

2003-10-08 Thread Adam McLaurin
On Wed, 8 Oct 2003 21:30:24 +1000
nevle <[EMAIL PROTECTED]> wrote:

> Hi,
> thanks for your reply,dmesg.boot,ppp.conf and ppp.log files are below.The man 
> ppp seems to be saying that I connect with ppp -ddial myisp, is this 
> correct?My modem is Simplecomputing netexpress 56K external modem.Hope that 
> you can make things a little clearer for me and I  appreciate the time you 
> have spent helping me.
> nevle

a) your phone number certainly looks wrong
b) do you REALLY want to post your username/password on a global mailing list?

--
Adam


pgp0.pgp
Description: PGP signature


Re: ppp shell command and MYADDR

2003-10-07 Thread rduvall
I fixed the problem...

It seems that I cannot specify my shell command within ppp.conf, I have to use a 
ppp.linkup file and specify from within there.  It works correctly now.

Sincerely,

Rick Duvall

--- [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I have configured ppp to bring up my ADSL connection (PPPoA) on Qwest MSN.  It 

> works great!  However, for personal reasons which I won't mention here, I 
would 
> like ppp to write the dynamic IP address that was assigned to me to a file 
> called test.txt.  As you can see by the config below, this *should* work via
> the 
> shell command in ppp.conf, which executes ipaddr.sh and sends MYADDR to the 
> script.  However, when the script executes, it writes 10.0.0.2 to the file 
> instead of the IP assigned.
> 
> How do I get it to write the address assigned?
> 
> 
> Here is my entry in ppp.conf
> 
> adsl:
>  set authname 
>  set authkey xx
>  set device !"/usr/local/sbin/pppoa2 -vpi 0 -vci 32"
>  accept chap pap
>  set speed sync
>  set timeout 0
>  enable lqr
>  set lqrperiod 5
>  set redial 15 1
>  set dial ""
>  set ifaddr 10.0.0.2/0 10.0.0.1/0 255.255.255.0 0.0.0.0
>  add default HISADDR
>  shell /etc/ppp/ipaddr.sh MYADDR
> 
> Here is the shell script:
> 
> #!/bin/sh
> 
> MYADDR=$1
> echo ${MYADDR} > /etc/ppp/test.txt
> exit;
> 
> ___
> [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 shell command and MYADDR

2003-10-07 Thread Eric Dillenseger
On Tue, Oct 07, 2003 at 01:28:09PM -0700, rduvall @ onlinehighways. net wrote:
> How do I get it to write the address assigned?
Using ppp.linkup comes to my mind with something like 
ifconfig tun0 | grep inet | awk '{print $2}' > test.txt

-- 
> Enfin vivement les procs optique qui ne chaufferont pas trop ;-)
Vivement les proc quantiques, en rajoutant un glaçon, on pourra même 
les boire ...
[ Eric Dillenseger GPG(OxFF352913) eric(at)naxalite(dot)ath(dot)cx ]


pgp0.pgp
Description: PGP signature


Re: ppp

2003-10-07 Thread Kliment Andreev
> I need to be able to tell the modem not to detect a
> dial tone when using ppp.
> After typing 'AT' I get 'OK'. After 'ATDT1234567' I
> get 'NO DIAL TONE'
> I'd like to use NAT to connect machines in my LAN to
> the net. Is there
> any command that I can give it in ppp.conf to tell it
> not to detect the
> dial tone?

You can do that with ATX3 (detect busy but do not detect dial tone)

Also, you can store this X3 in a profile so you won't need to type this in
future. Search for modem hayes AT commands for your modem.

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


RE: ppp

2003-10-07 Thread fbsd_user
Your question is not clear. Are you trying to use ppp to dial out to
your ISP to get internet access OR are you trying to get ppp to
answer an in coming call to your FBSD box?  You have to provide more
details about your configuration before people can help you, we do
not have ESP to read your mind.  You need to post ppp.log and
dmesg.boot and rc.conf and ppp.conf as well as explain in detail
what you are trying to do.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of jonno smith
Sent: Tuesday, October 07, 2003 1:38 PM
To: [EMAIL PROTECTED]
Subject: ppp

The results of 'uname -a' are as follows:
FreeBSD server.home.dom 4.8-RELEASE FreeBSD
4.8-RELEASE #0:Thu Apr 2 10:53:38
GMT 2003
[EMAIL PROTECTED]:/usr/obj/src/sys/GENERIC
i386

I need to be able to tell the modem not to detect a
dial tone when using ppp.
After typing 'AT' I get 'OK'. After 'ATDT1234567' I
get 'NO DIAL TONE'
I'd like to use NAT to connect machines in my LAN to
the net. Is there
any command that I can give it in ppp.conf to tell it
not to detect the
dial tone?

Thank you,
Jonno.
[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]"

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


RE: ppp confusion

2003-10-07 Thread fbsd_user
You need to readman ppp   some more.  Using the form of the
command "ppp -auto myisp"  puts ppp in silence mode, you will not
get an console messages that ppp is "on", you have to look in the
/var/log/ppp.log for your log messages.  Use just "ppp" command
alone to go into manual mode and then you will get console messages.

You left out all the details about your environment. Before
reposting get all the details together and post them with your
question.  Dmesg.boot ppp.log ppp.conf details about modem

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of nevle
Sent: Tuesday, October 07, 2003 2:29 AM
To: [EMAIL PROTECTED]
Subject: ppp confusion

hi,
I'm new to BSD and am having trouble configuring my ppp.My ppp.conf
file is
the same as the manual accept for:
line 7 set login
line 15 accept PAP
and line 17 set if addr 10.0.0.1/0 10.0.0.2/0 255.255.255.255
my ppp.linkup file says
MYADDR:
 delete ALL
 add 0 0 HISADDR
my hosts file says
127.0.0.1 nevsbsd.nevsbsd localhost
The lights on my modem go on when I type"ppp -auto myisp"  but I
don't get PPP
ON or any indication that I'm connected. I tried ping -c
210.216.27.18 and
got "invalid count of packages to transmit".I've read all the
instructions I
could find but each is slightly different and I'm not sure what to
do next.
Any help or suggestions would be gratefully received
thanks in advance
neville


___
[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 modem init string

2003-09-25 Thread fbsd_user
The google search system stopped archiving FBSD news groups at the
start of 2002, so google search is useless. The FBSD  org site has
the archives search which is very out of date and the format in
which the info is presented makes it next to useless.

This is the best FBSD newsgroup search I engine I have found
http://freebsd.rambler.ru/
Give it a try.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Daniel Rudy
Sent: Thursday, September 25, 2003 12:17 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: PPP modem init string

Somewhere around the time of 09/24/2003 12:31, the world stopped and
listened as fbsd_user contributed this to humanity:
> The (set dial) option sends Hayes 'AT' commands to the modem only
> for dial out. Totally different situation for dial in to FBSD. In
> that case you have to use the Hayes 'AT' commands to setup and
save
> your modem configuration in the modem's nvram. You have to tell
the
> modem to go into answer mode when the modem is powered on. That's
> the only way to get it to pick up the inbound call.
>
> Check the questions archives, this question has been answered many
> times before and there are detailed instructions on how to setup
you
> modem and PPP to do this. Search for key works 'PPP dial in'  or
> 'FBSD answering modem' or 'inbound calls'
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Daniel
Rudy
> Sent: Wednesday, September 24, 2003 11:54 AM
> To: [EMAIL PROTECTED]
> Subject: PPP modem init string
>
> Hello,
>
> How do I get PPP to send an init string to my modem?  I'm
> using
> different PPP profiles in /etc/ppp/ppp.conf, and each one has a
> different requirement for the configuration of the modem such as
> outbound ISP and incoming.
>
> Thanks.
> --
> Daniel Rudy
>
>
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"
>

I think that the mail archive search engine is broken.  No matter
what I
try for a search query, it never finds anything.

--
Daniel Rudy

___
[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 modem init string

2003-09-25 Thread Jud
On Wed, 24 Sep 2003 21:16:57 -0700, Daniel Rudy <[EMAIL PROTECTED]> wrote:

[snip]
I think that the mail archive search engine is broken.  No matter what I
try for a search query, it never finds anything.
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&group=mailing.freebsd.questions>

Choosing the option to search only in the -questions list cuts down on 
irrelevant hits.

Jud

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


  1   2   >