Networking Forums

Networking Forums > Computer Networking > Linux Networking > wireless bridge turned router

Reply
Thread Tools Display Modes

wireless bridge turned router

 
 
Pete Timmundsen
Guest
Posts: n/a

 
      11-27-2003, 10:37 AM
Greetings to all you gurus,

I have a small wireless access point that i'm trying to configure to
work as a wireless router.The AP has 2 wireless NICs (eth2, eth3) and
a wired NIC (eth0).

I have a bridge daemon running on it, which makes it an access point
in the first place,linking all the available NICs. Under normal
circumstances, the AP is fed with data on the eth0 wired interface,
directly from the cable/dsl router.

What i'm trying to do is tweak the box in such a way that one of the 2
wireless interfaces(eth2) acts as the WAN side for the router(to be),
and the other two interfaces, the LAN sides of it.

I only need simple SNAT on it for now, that is, i want to be able to
connect to the outside from machines on the wired and remaining
wireless interface subnets.


wireless ISP -- eth2(wireless) -> eth0(wired) -- wired subnet
-> eth1(wireless) -- wireless subnet

I am not interested in the routing table update aspects of the problem
(RIP) yet, as i hope those can be taken care of by adding
zebra(zebra.org) to the box, nor in the security aspects.

The router would have to have a static IP associated on the WAN side
and LAN IPs on the local subnet sides(eth3 + eth0). Currently the
bridge is transparent, no explicit IPs have been set on the various
interfaces. The setup would still have to act as an AP for the
remaining wireless interface. The box is running a 2.4.18 kernel on a
MIPS processor.

How do i go about doing this? Does the current setup allow for
iptables based SNAT?

Thank you for taking the time.
 
Reply With Quote
 
 
 
 
Damion de Soto
Guest
Posts: n/a

 
      11-28-2003, 02:34 AM
Hi Pete,
> I only need simple SNAT on it for now, that is, i want to be able to
> connect to the outside from machines on the wired and remaining
> wireless interface subnets.
> wireless ISP -- eth2(wireless) -> eth0(wired) -- wired subnet
> -> eth1(wireless) -- wireless subnet
> How do i go about doing this? Does the current setup allow for
> iptables based SNAT?


You probabaly just want this single line:
iptables -t nat -A POSTROUTING -o eth2 -j MASQUERADE

Unless I severely misunderstood something, I can't see why it would be
any more complicated.

Regards,

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~
Damion de Soto - Software Engineer email: (E-Mail Removed)
SnapGear - A CyberGuard Company --- ph: +61 7 3435 2809
| Custom Embedded Solutions fax: +61 7 3891 3630
| and Security Appliances web: http://www.snapgear.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~
--- Free Embedded Linux Distro at http://www.snapgear.org ---

 
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
why is wireless networking card not recognized after PC turned off ? Bob Wireless Internet 6 03-23-2008 02:33 AM
mn-700 Router doesn't work when computer is turned off bbtfastback Broadband Hardware 0 01-20-2005 05:10 PM
D-Link Wireless Router with DWL-810 bridge with wired router AhBook Wireless Internet 1 11-16-2003 04:06 PM
turned on encryption and dell 1400/2300 constantly dropping wireless DigitalVinyl Wireless Internet 4 11-12-2003 09:01 PM
Using wireless router as bridge Doom3 Wireless Internet 1 07-20-2003 01:26 PM



1 2 3 4 5 6 7 8 9 10 11