From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <4CCC45E9.7070801@mclink.it> References: <4CC69E41.6050205@mclink.it> <4CCC45E9.7070801@mclink.it> Date: Mon, 1 Nov 2010 08:49:20 -0400 Message-ID: From: Ryan Whelan Content-Type: multipart/alternative; boundary=20cf30433ebea5ed7b0493fd3cb8 Subject: Re: [Bridge] Transparent wired/wirless bridge: is it possible? List-Id: Linux Ethernet Bridging List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Mauro Condarelli Cc: bridge@lists.linux-foundation.org --20cf30433ebea5ed7b0493fd3cb8 Content-Type: text/plain; charset=ISO-8859-1 hostapd puts the interface into the bridge when it starts up- but you have to put it in the config. in your hostpad.conf add 'bridge=br0' (making sure of course you have the correct 'interface= ' set.) search for 'bridge' on this page: http://wireless.kernel.org/en/users/Documentation/hostapd once setup, hostapd should put the interface in the bridge at start up and remove it at shutdown so you take the interface out of the interfaces file. HTH On Sat, Oct 30, 2010 at 12:20 PM, Mauro Condarelli wrote: > On 26/10/2010 14.36, Ryan Whelan wrote: > > Have you looked at hostapd (http://hostap.epitest.fi/hostapd/)? > > Sorry, > I was not clear enough. > > I have the wireless card up-and-running in ap-mode using hostapd. > I *can* connect a laptop to the wireless Access Point. > I also know how to setup a masquerading router on the linux machine to > share the landline connection (e.g.: using firestarter). > This would create a second net for wireless with double natting. > I would like to avoid this and I'm looking for a "bridge" configuration so > that all machines (wireless & wired) can share the same subnet ( > 192.68.1.0/24). > > I tried something like: > ===================== > auto lo > iface lo inet loopback > > auto wlan2 > iface wlan2 inet manual > up /usr/sbin/service hostapd start > up /sbin/ifconfig wlan2 up > down /sbin/ifconfig wlan2 down > down /usr/sbin/service hostapd stop > > auto eth2 > iface eth2 inet manual > up /sbin/ifconfig eth2 up > down /sbin/ifconfig eth2 down > > auto br0 > iface br0 inet dhcp > bridge_ports eth2 wlan2 > bridge_maxwait 0 > ===================== > ... but it does not seem to work as hoped. > > Thanks in Advance for *ANY* hint ;) > > Regards > Mauro > > > On Tue, Oct 26, 2010 at 5:24 AM, Mauro Condarelli wrote: > >> Hi, >> I read a lot on the Internet, but didn't find quite what I need. >> I'm not even sure it's possible. >> >> I have a machine with ethernet access and wireless card (in master mode). >> Both are running ok under ubuntu maverick. >> I also have a separate firewall (wired) acting as DHCP server for my >> whole home network. >> I would like to bind the two interfaces together with no translation (no >> NAT, SNAT, masquerading, ...) so that the machines connecting to the >> wireless lan can get their address from the firewall and access the >> Internet. >> >> Is this possible with bridging? >> If so: can someone point me to the right documentation? >> >> TiA >> Mauro >> _______________________________________________ >> Bridge mailing list >> Bridge@lists.linux-foundation.org >> https://lists.linux-foundation.org/mailman/listinfo/bridge >> > > > > _____________________________________ > This e-mail and any attachments from Toyota Boshoku America > (TBA), TrimMasters Inc. (TMI), or other affiliated companies may > contain confidential and privileged information. > > If you are not the intended recipient, please notify the sender > immediately by return e-mail, delete this e-mail and destroy any > copies. > > Any dissemination or use of this information by a person other > than the intended recipient is unauthorized and may be illegal. > > _______________________________________________ > Bridge mailing list > Bridge@lists.linux-foundation.org > https://lists.linux-foundation.org/mailman/listinfo/bridge > --20cf30433ebea5ed7b0493fd3cb8 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable hostapd puts the interface into the bridge when it starts up- but you have = to put it in the config. in your hostpad.conf add 'bridge=3Dbr0' (m= aking sure of course you have the correct 'interface=3D ' set.) sea= rch for 'bridge' on this page: http://wireless.kernel.org/en/users/Docum= entation/hostapd

once setup, hostapd should put the interface in the bridge at start up = and remove it at shutdown so you take the interface out of the interfaces f= ile.

HTH

On Sat, Oct 30, 2010 at 1= 2:20 PM, Mauro Condarelli <mc5686@mclink.it> wrote:
=20 =20 =20 =20
On 26/10/2010 14.36, Ryan Whelan wrote:
Have you looked at hostapd (http://hostap.epitest.fi/hos= tapd/)?
Sorry,
I was not clear enough.

I have the wireless card up-and-running in ap-mode using hostapd.
I *can* connect a laptop to the wireless Access Point.
I also know how to setup a masquerading router on the linux machine to share the landline connection (e.g.: using firestarter).
This would create a second net for wireless with double natting.
I would like to avoid this and I'm looking for a "bridge" configuration so that all machines (wireless & wired) can share the same subnet (192= .68.1.0/24).

I tried something like:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
auto lo
iface lo inet loopback

auto wlan2
iface wlan2 inet manual
=A0=A0=A0 up /usr/sbin/service hostapd start
=A0=A0=A0 up /sbin/ifconfig wlan2 up
=A0=A0=A0 down /sbin/ifconfig wlan2 down
=A0=A0=A0 down /usr/sbin/service hostapd stop

auto eth2
iface eth2 inet manual
=A0=A0=A0 up /sbin/ifconfig eth2 up
=A0=A0=A0 down /sbin/ifconfig eth2 down

auto br0
iface br0 inet dhcp
=A0=A0=A0 bridge_ports eth2 wlan2
=A0=A0=A0 bridge_maxwait 0
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
... but it does not seem to work as hoped.

Thanks in Advance for *ANY* hint ;)

Regards
Mauro

=A0
On Tue, Oct 26, 2010 at 5:24 AM, Mauro Condarelli <mc5686@mclink.it> wrote:
Hi,
I read a lot on the Internet, but didn't find quite what I need.
I'm not even sure it's possible.

I have a machine with ethernet access and wireless card (in master mode).
Both are running ok under ubuntu maverick.
I also have a separate firewall (wired) acting as DHCP server for my
whole home network.
I would like to bind the two interfaces together with no translation (no
NAT, SNAT, masquerading, ...) so that the machines connecting to the
wireless lan can get their address from the firewall and access the
Internet.

Is this possible with bridging?
If so: can someone point me to the right documentation?

TiA
Mauro
_______________________________________________
Bridge mailing list
Bridge@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo= /bridge



_____________________________________
This e-mail and any attachments from Toyota Boshoku America
(TBA), TrimMasters Inc. (TMI), or other affiliated companies may
contain confidential and privileged information.

If you are not the intended recipient, please notify the sender
immediately by return e-mail, delete this e-mail and destroy any
copies.

Any dissemination or use of this information by a person other
than the intended recipient is unauthorized and may be illegal.


_______________________________________________
Bridge mailing list
Bridge@lists.linux-fou= ndation.org
https://lists.linux-foundation.org/mailman/listinfo/bridge

--20cf30433ebea5ed7b0493fd3cb8--