9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] pppoe on Plan 9
@ 2010-02-20 10:30 Bela Valek
  2010-02-20 18:30 ` Russ Cox
  0 siblings, 1 reply; 10+ messages in thread
From: Bela Valek @ 2010-02-20 10:30 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Hi,

How do we use pppoe on Plan 9? Its listening on stdin and answering on
stdout. How do I have to start it, so its listening to the network
interface?

I have new internet probider unsing pppoe lannet, and I need help to
set up Plan 9 for it (i dont even know the right questions to ask)

Thanks: Bela



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [9fans] pppoe on Plan 9
  2010-02-20 10:30 [9fans] pppoe on Plan 9 Bela Valek
@ 2010-02-20 18:30 ` Russ Cox
  2010-02-22  8:32   ` Bela Valek
  0 siblings, 1 reply; 10+ messages in thread
From: Russ Cox @ 2010-02-20 18:30 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

> How do we use pppoe on Plan 9? Its listening on stdin and answering on
> stdout. How do I have to start it, so its listening to the network
> interface?

It sounds like you are running ip/ppp not ip/pppoe.
See ppp(8).

Russ


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [9fans] pppoe on Plan 9
  2010-02-20 18:30 ` Russ Cox
@ 2010-02-22  8:32   ` Bela Valek
  2010-02-22 18:02     ` Russ Cox
  0 siblings, 1 reply; 10+ messages in thread
From: Bela Valek @ 2010-02-22  8:32 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Thanks.

I got a username, a password, and an IP address from the Internet
provider. How do I give this information to ip/pppoe?

If I have to use Factotum, my question is: how do I give the username
and password to Factotum, so PPPoE can use it?

Thanks: Bela

2010/2/20 Russ Cox <rsc@swtch.com>:
>> How do we use pppoe on Plan 9? Its listening on stdin and answering on
>> stdout. How do I have to start it, so its listening to the network
>> interface?
>
> It sounds like you are running ip/ppp not ip/pppoe.
> See ppp(8).
>
> Russ
>
>



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [9fans] pppoe on Plan 9
  2010-02-22  8:32   ` Bela Valek
@ 2010-02-22 18:02     ` Russ Cox
  2010-02-22 18:06       ` Eris Discordia
  2010-02-22 18:31       ` Bela Valek
  0 siblings, 2 replies; 10+ messages in thread
From: Russ Cox @ 2010-02-22 18:02 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

> I got a username, a password, and an IP address from the Internet
> provider. How do I give this information to ip/pppoe?

It should just prompt you (via factotum) for the username/password.
The IP address should be irrelevant - the ppp server
will tell you the IP address anyway.

Russ


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [9fans] pppoe on Plan 9
  2010-02-22 18:02     ` Russ Cox
@ 2010-02-22 18:06       ` Eris Discordia
  2010-02-22 18:31       ` Bela Valek
  1 sibling, 0 replies; 10+ messages in thread
From: Eris Discordia @ 2010-02-22 18:06 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

The IP address is probably that of the service provider's DNS server, for
use on machines other than the one that establishes the PPPoE connection.

--On Monday, February 22, 2010 10:02 -0800 Russ Cox <rsc@swtch.com> wrote:

>> I got a username, a password, and an IP address from the Internet
>> provider. How do I give this information to ip/pppoe?
>
> It should just prompt you (via factotum) for the username/password.
> The IP address should be irrelevant - the ppp server
> will tell you the IP address anyway.
>
> Russ
>



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [9fans] pppoe on Plan 9
  2010-02-22 18:02     ` Russ Cox
  2010-02-22 18:06       ` Eris Discordia
@ 2010-02-22 18:31       ` Bela Valek
  2010-02-23  0:13         ` Russ Cox
  1 sibling, 1 reply; 10+ messages in thread
From: Bela Valek @ 2010-02-22 18:31 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

2010/2/22 Russ Cox <rsc@swtch.com>:
>> I got a username, a password, and an IP address from the Internet
>> provider. How do I give this information to ip/pppoe?
>
> It should just prompt you (via factotum) for the username/password.
> The IP address should be irrelevant - the ppp server
> will tell you the IP address anyway.
>
> Russ
>
>

thank you. well, it doesnt prompt, somebody can help and tell me why?

this is the output (actually its repeated 6 times before giving up):

term% ip/pppoe -d
000000000000 -> ffffffffffff type 0x8863
	vers 1 type 1 code 0x9 sessid 0x0 length 4
	0x101 0: service ''
00508d68c9c0 -> ffffffffffff type 0x8863
	vers 1 type 1 code 0x9 sessid 0x0 length 4
	0x101 0: service ''
dropping unwanted pkt: not an offer
00304894958d -> 00508d68c9c0 type 0x8863
	vers 1 type 1 code 0x7 sessid 0x0 length 63
	0x102 22: ac 'pecs-nas1.tvnetwork.hu'
	0x101 9: service 'TvNetWork'
	0x104 20: ac cookie 31e0aff8b09a633faae5b9685fdfbd0dad000000
dropping unwanted pkt: no matching service name
ip/pppoe: could not establish session
term%



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [9fans] pppoe on Plan 9
  2010-02-22 18:31       ` Bela Valek
@ 2010-02-23  0:13         ` Russ Cox
  2010-02-23 16:48           ` Bela Valek
  0 siblings, 1 reply; 10+ messages in thread
From: Russ Cox @ 2010-02-23  0:13 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

> 00304894958d -> 00508d68c9c0 type 0x8863
>        vers 1 type 1 code 0x7 sessid 0x0 length 63
>        0x102 22: ac 'pecs-nas1.tvnetwork.hu'
>        0x101 9: service 'TvNetWork'
>        0x104 20: ac cookie 31e0aff8b09a633faae5b9685fdfbd0dad000000
> dropping unwanted pkt: no matching service name

try adding
     -S TvNetWork
to your command line.

it looks like in pppoe.c the block

	if((s = findtag(pkt, TagSrvName, &len, 0)) == nil)
		return bad("no matching service name");
	if(len != strlen(srvname) || memcmp(s, srvname, len) != 0)
		return bad("no matching service name");

should be inside a if(srvname[0] != '\0') { ... }.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [9fans] pppoe on Plan 9
  2010-02-23  0:13         ` Russ Cox
@ 2010-02-23 16:48           ` Bela Valek
  0 siblings, 0 replies; 10+ messages in thread
From: Bela Valek @ 2010-02-23 16:48 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Thanks, after I provided the service name, ip/pppoe asked for username
and password. However I still didnt have Internet access. I tried
ipconf/outside but it times out. Here is the complete output of
ip/pppoe:

http://pastebin.com/V7ACsh6g

Did I forgot something?

Thanks: Bela

2010/2/23 Russ Cox <rsc@swtch.com>:
>> 00304894958d -> 00508d68c9c0 type 0x8863
>>        vers 1 type 1 code 0x7 sessid 0x0 length 63
>>        0x102 22: ac 'pecs-nas1.tvnetwork.hu'
>>        0x101 9: service 'TvNetWork'
>>        0x104 20: ac cookie 31e0aff8b09a633faae5b9685fdfbd0dad000000
>> dropping unwanted pkt: no matching service name
>
> try adding
>     -S TvNetWork
> to your command line.
>
> it looks like in pppoe.c the block
>
>        if((s = findtag(pkt, TagSrvName, &len, 0)) == nil)
>                return bad("no matching service name");
>        if(len != strlen(srvname) || memcmp(s, srvname, len) != 0)
>                return bad("no matching service name");
>
> should be inside a if(srvname[0] != '\0') { ... }.
>
>



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [9fans] pppoe on Plan 9
  2010-02-23 10:29 ` Artem Pylypchuk
@ 2010-02-23 18:27   ` Russ Cox
  0 siblings, 0 replies; 10+ messages in thread
From: Russ Cox @ 2010-02-23 18:27 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

>> it looks like in pppoe.c the block
>>
>>       if((s = findtag(pkt, TagSrvName, &len, 0)) == nil)
>>               return bad("no matching service name");
>>       if(len != strlen(srvname) || memcmp(s, srvname, len) != 0)
>>               return bad("no matching service name");
>>
>> should be inside a if(srvname[0] != '\0') { ... }.
>
> this is because the PPPoE RFC defines strings "provider name/access
> concentrator" and "service name" in service offer packets, in case you have
> lots of providers and different connections in your network. The services may
> include different payment packages, special line for voip/video, a VPN, etc.
> Offers are collected after a request broadcast.

i understand the protocol.
but if there is no -S option given, the current code
waits for an offer with service name == "".
that's silly.  it should take the first one it gets.

russ


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [9fans] pppoe on Plan 9
       [not found] <mailman.10146.1266886523.1513.9fans@9fans.net>
@ 2010-02-23 10:29 ` Artem Pylypchuk
  2010-02-23 18:27   ` Russ Cox
  0 siblings, 1 reply; 10+ messages in thread
From: Artem Pylypchuk @ 2010-02-23 10:29 UTC (permalink / raw)
  To: 9fans


> Date: Mon, 22 Feb 2010 16:13:59 -0800
> From: Russ Cox <rsc@swtch.com>
> Subject: Re: [9fans] pppoe on Plan 9
> To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
> Message-ID:
> 	<dd6fe68a1002221613h4c6597abkfb3cdd8a79f7a739@mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
>
> > 00304894958d -> 00508d68c9c0 type 0x8863
> > ? ? ? ?vers 1 type 1 code 0x7 sessid 0x0 length 63
> > ? ? ? ?0x102 22: ac 'pecs-nas1.tvnetwork.hu'
> > ? ? ? ?0x101 9: service 'TvNetWork'
> > ? ? ? ?0x104 20: ac cookie 31e0aff8b09a633faae5b9685fdfbd0dad000000
> > dropping unwanted pkt: no matching service name
>
> try adding
>      -S TvNetWork
> to your command line.
>
> it looks like in pppoe.c the block
>
> 	if((s = findtag(pkt, TagSrvName, &len, 0)) == nil)
> 		return bad("no matching service name");
> 	if(len != strlen(srvname) || memcmp(s, srvname, len) != 0)
> 		return bad("no matching service name");
>
> should be inside a if(srvname[0] != '\0') { ... }.

this is because the PPPoE RFC defines strings "provider name/access
concentrator" and "service name" in service offer packets, in case you have
lots of providers and different connections in your network. The services may
include different payment packages, special line for voip/video, a VPN, etc.
Offers are collected after a request broadcast.



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2010-02-23 18:27 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-20 10:30 [9fans] pppoe on Plan 9 Bela Valek
2010-02-20 18:30 ` Russ Cox
2010-02-22  8:32   ` Bela Valek
2010-02-22 18:02     ` Russ Cox
2010-02-22 18:06       ` Eris Discordia
2010-02-22 18:31       ` Bela Valek
2010-02-23  0:13         ` Russ Cox
2010-02-23 16:48           ` Bela Valek
     [not found] <mailman.10146.1266886523.1513.9fans@9fans.net>
2010-02-23 10:29 ` Artem Pylypchuk
2010-02-23 18:27   ` Russ Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).