[ previous ] [ next ] [ threads ]
 
 From:  "Alex M" <radiussupport at lrcommunications dot net>
 To:  "'Chris Buechler'" <cbuechler at gmail dot com>, "'Mono Dev List'" <m0n0wall dash dev at lists dot m0n0 dot ch>
 Subject:  RE: [m0n0wall-dev] where INTERFAC association info is stored?
 Date:  Mon, 6 Nov 2006 21:01:32 -0500
Ops, I missed that line in config file :-) Tnx! Otherwise I would have to
reinvent the wheal.

Well, maybe you give me a hint on how to read XML with bash/sh script? And
read it as XML not text file so I will get exact' variable I need?

Thanks!

-----Original Message-----
From: Chris Buechler [mailto:cbuechler at gmail dot com] 
Sent: Monday, November 06, 2006 8:49 PM
Cc: Mono Dev List
Subject: Re: [m0n0wall-dev] where INTERFAC association info is stored?

On 11/6/06, Alex M <radiussupport at lrcommunications dot net> wrote:
>
> How can I find out which interface is assigned to LAN and which to WAN?
What
> file contains this info and how can I get it? I need to know the name of
the
> interface so that I can do ifconfig for the interface later on
>

Unless I'm misunderstanding your question, that's all in config.xml.

<lan>
       <if>sis2</if>
...
 </lan>
  <wan>
          <if>sis0</if>
...
</wan>

etc...


There may be some way to programatically handle it with built in
functions, but someone with some development knowledge will have to
fill you in on that.

-Chris

---------------------------------------------------------------------
To unsubscribe, e-mail: m0n0wall dash dev dash unsubscribe at lists dot m0n0 dot ch
For additional commands, e-mail: m0n0wall dash dev dash help at lists dot m0n0 dot ch