Hello
I'm trying to setup wrt to my needs but have no luck What I'm trying to do is have different network on each interface:
wan 192.168.2.0
lan 192.168.1.0
wifi 192.168.0.0
I was reading a lot about iptables but it seams there is no problem with it
root@OpenWrt:~# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
root@OpenWrt:~# cat /proc/sys/net/ipv4/ip_forward
1
root@OpenWrt:~#
also I don't know how to set up interfaces to forward packets between them, here is my config
root@OpenWrt:~# nvram show|grep wan_
size: 1567 bytes (31201 left)
wan_netmask=255.255.255.0
wan_proto=static
wan_ipaddr=192.168.2.1
wan_ifname=vlan1
root@OpenWrt:~# nvram show|grep lan_
size: 1567 bytes (31201 left)
lan_netmask=255.255.255.0
lan_ifnames=vlan0
lan_ipaddr=192.168.1.1
lan_proto=static
lan_ifname=vlan0
root@OpenWrt:~# nvram show|grep wifi_
size: 1567 bytes (31201 left)
wifi_netmask=255.255.255.0
wifi_proto=static
wifi_ipaddr=192.168.0.1
wifi_ifname=eth1
root@OpenWrt:~#
I was trying with or without setting gateway addres and still nothing, it doesn't forward packets from one interface to another... I'm checking this pinging lan or wan interface from computer connected to lan, and always get no answer. Only way to get it working was setting all interfaces in one network 192.168.1.0 otherwise it dosn't work
root@OpenWrt:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.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 vlan0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
root@OpenWrt:~# route -e
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.2.0 * 255.255.255.0 U 0 0 0 vlan1
192.168.1.0 * 255.255.255.0 U 0 0 0 vlan0
192.168.0.0 * 255.255.255.0 U 0 0 0 eth1
root@OpenWrt:~#
if you know what to do plese help me I'm close to madness...