OpenWrt Forum Archive

Topic: wrt54g + bridging + routing = newbie question

The content of this topic has been archived on 17 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Here is my current setup:

I have a Linux firewall (10.0.0.1), with eth0 connected to outside world, eth1 connected to a WAP54g (10.0.0.22) running the latest Linksys firmware.  The Linux machine is running DNS + DHCP servers.

I have a WRT54g (v. 4) with White Russian RC4.  From the Linux machine I want to be able to ssh to the WRT54g at address 10.0.0.23.  I want any computer plugged into the WRT54g lan ports to get an address by dhcp, being served by the Linux machine.  Finally, I would like the WRT54g to act as a wireless bridge, and to connect to the WAP54g via a WDS.

Things I tried:
1. I uncommented the two lines from firewall.user, and then rebooted.  Still can't ssh through the wireless.
2. Mucked around with S45firewall iptables script.  Still no change.

Main questions:
1. Should lan_address also be set to wan_address, or should it be something else at 10.0.0.x?  For now I had te set it to 192.168.1.1 so that I can ssh in and inspect things.
2. Can I do WDS between OpenWRT and a Linksys firmware?

Here is the [current] network settings I have on the WRT54g:
# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.0.0.0        0.0.0.0         255.255.255.0   U     0      0        0 vlan1
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 br0
0.0.0.0         10.0.0.1        0.0.0.0         UG    0      0        0 vlan1
# ifconfig
br0       Link encap:Ethernet  HWaddr 00:14:BF:38:63:13
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:505 errors:0 dropped:0 overruns:0 frame:0
          TX packets:306 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:35263 (34.4 KiB)  TX bytes:45242 (44.1 KiB)

eth0      Link encap:Ethernet  HWaddr 00:14:BF:38:63:13
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:496 errors:0 dropped:0 overruns:0 frame:0
          TX packets:349 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:45455 (44.3 KiB)  TX bytes:48516 (47.3 KiB)
          Interrupt:4 Base address:0x1000

eth1      Link encap:Ethernet  HWaddr 00:14:BF:38:63:15
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9 errors:0 dropped:0 overruns:0 frame:2548
          TX packets:77 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:846 (846.0 B)  TX bytes:10539 (10.2 KiB)
          Interrupt:2 Base address:0x5000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:24 errors:0 dropped:0 overruns:0 frame:0
          TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2479 (2.4 KiB)  TX bytes:2479 (2.4 KiB)

vlan0     Link encap:Ethernet  HWaddr 00:14:BF:38:63:13
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:496 errors:0 dropped:0 overruns:0 frame:0
          TX packets:310 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:36527 (35.6 KiB)  TX bytes:46722 (45.6 KiB)

vlan1     Link encap:Ethernet  HWaddr 00:14:BF:38:63:13
          inet addr:10.0.0.23  Bcast:10.0.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:39 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:1794 (1.7 KiB)


And the abbreviated nvram dump:
# nvram show
opo=0x02
wl0_akm=none
watchdog=5000
wl0_infra=1
et0mdcport=0
wl0_ifname=eth1
vlan0ports=3 2 1 0 5*
wl0_mode=wet
wan_gateway=10.0.0.1
wl0_gmode=2
lan_netmask=255.255.255.0
wl0_ssid=xxxxxxxxxxxx
wl0id=0x4320
wan_netmask=255.255.255.0
wl0_key1=xxxxxxxxxxxxxxx
ag0=0x02
wl0_closed=1
wl0gpio2=0
wl0gpio3=0
boardflags2=0
wan_dns=10.0.0.1
wan_proto=static
pa0itssit=62
wl0_wds=xxxxxxxxxxxxxxxx
cctl=0
lan_ifnames=vlan0 eth1
pa0maxpwr=0x4e
wan_ifnames=vlan1
lan_ipaddr=192.168.1.1
clkfreq=200
lan_proto=static
aa0=3
vlan1hwname=et0
wl0_wep=enabled
sdram_config=0x0062
vlan1ports=4 5
scratch=a0180000
ccode=0
lan_ifname=br0
boardflags=0x2558
wan_iface=vlan1
wan_ipaddr=10.0.0.23
wl0_key=1
wan_ifname=vlan1
wl0_radio=1
pa0b0=0x168b
pa0b1=0xfabf
pa0b2=0xfeaf
sdram_init=0x010b
vlan0hwname=et0
wl0_channel=xxxx
< other stuff snipped >

have you figured out how to do this?  i was trying to do something similar and end up locking my self out and have to boot failsafe to get back in.

matt

The discussion might have continued from here.