LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 02-15-2008, 12:13 PM   #1
daletaylor
LQ Newbie
 
Registered: Jun 2007
Posts: 10

Rep: Reputation: 0
Linux WLAN Workgroup bridge


Hello,

Is it possible to create a WLAN workgroup bridge with Linux and a router?

What I'm trying to do is this:
  • have a machine with a WiFi NIC and a wired NIC (WLAN bridge)
  • the WiFi NIC connects to my WiFi network
  • the wired NIC connects to a wired router
  • the wired router connects some machines that do not have WiFi cards
  • have the machines without WiFi cards be able to access the Internet and other network ressources through the WLAN bridge


Is this possible? How can I do it?


Thank you very much!

Dale
 
Old 02-15-2008, 05:20 PM   #2
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,747

Rep: Reputation: 333Reputation: 333Reputation: 333Reputation: 333
You would just need to setup iptables to route between the WLAN and wired interfaces, and then alternately setup DHCP for the clients (though it sounds like you might be handling all this in the router).

The following commands (placed into a boot script) should be enough to get basic functionality going:

Code:
iptables --table nat --append POSTROUTING --out-interface wlan0 -j MASQUERADE
iptables --append FORWARD --in-interface eth0 -j ACCEPT
echo 1 > /proc/sys/net/ipv4/ip_forward
That should share out the connection from your first WLAN device to your first Ethernet device, which sounds about right from your description.
 
Old 02-16-2008, 07:05 AM   #3
daletaylor
LQ Newbie
 
Registered: Jun 2007
Posts: 10

Original Poster
Rep: Reputation: 0
Thank you very much for your reply!

I'll try it out and post my results.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LInux-- to Windows WORKGROUP fritz001 Slackware 4 09-15-2004 06:01 AM
Can't make/see linux workgroup lieb39 Red Hat 1 08-05-2004 02:21 PM
Can't make/see linux workgroup lieb39 Linux - Networking 1 08-01-2004 12:20 PM
Workgroup in redhat linux 9 syedusman Linux - Networking 1 07-14-2003 07:29 PM
how to alter the workgroup name on linux skeav Linux - Networking 2 05-13-2002 08:49 AM


All times are GMT -5. The time now is 02:15 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration