I'm trying to set up an openwrt router to route between its lan and wifi networks. Lan is 192.168.2.0 and Wifi is 192.168.1.0. I want traffic to be freely routed both directions. I think I'm close because I can ssh into my openwrt box from either network and talk to both networks from the router. However, I can't get the router to route any traffic between the two networks. I have set up a static route on the wireless AP to point 192.168.2.0 traffic to the openwrt box. I'm betting that my firewall config is messed up because I'm a bit of a noob at linux firewalls. Here is the firewall config:
config 'defaults'
option 'syn_flood' '1'
option 'input' 'ACCEPT'
option 'output' 'ACCEPT'
option 'forward' 'REJECT'
option 'drop_invalid' '1'
config 'zone'
option 'name' 'lan'
option 'network' 'lan'
option 'input' 'ACCEPT'
option 'output' 'ACCEPT'
option 'forward' 'REJECT'
config 'include'
option 'path' '/etc/firewall.user'
config 'zone'
option 'input' 'ACCEPT'
option 'output' 'ACCEPT'
option 'name' 'wifi'
option 'network' 'wwan'
option 'forward' 'REJECT'
config 'forwarding'
option 'src' 'wifi'
option 'dest' 'lan'
Here's my ifconfig output:
br-lan Link encap:Ethernet HWaddr 00:0F:66:E3:9D:C6
inet addr:192.168.2.1 Bcast:192.168.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2292 errors:0 dropped:0 overruns:0 frame:0
TX packets:1378 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:178885 (174.6 KiB) TX bytes:151243 (147.6 KiB)
eth0 Link encap:Ethernet HWaddr 00:0F:66:E3:9D:C6
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2284 errors:0 dropped:0 overruns:0 frame:0
TX packets:2262 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:228597 (223.2 KiB) TX bytes:530887 (518.4 KiB)
Interrupt:5
eth0.0 Link encap:Ethernet HWaddr 00:0F:66:E3:9D:C6
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2292 errors:0 dropped:0 overruns:0 frame:0
TX packets:1378 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:188053 (183.6 KiB) TX bytes:156755 (153.0 KiB)
eth0.1 Link encap:Ethernet HWaddr 00:0F:66:E3:9D:C6
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:883 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:359381 (350.9 KiB)
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:17 errors:0 dropped:0 overruns:0 frame:0
TX packets:17 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1465 (1.4 KiB) TX bytes:1465 (1.4 KiB)
wlan0 Link encap:Ethernet HWaddr 00:0F:66:E3:9D:C8
inet addr:192.168.1.10 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:29 errors:0 dropped:0 overruns:0 frame:0
TX packets:15 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4534 (4.4 KiB) TX bytes:2177 (2.1 KiB)