IP forward is not working on my Ubuntu machine.Setup:Ubuntu machine: Ubuntu 12.04.5 LTSKernel: 3.13.0-95-genericOne ethernet interface for LAN: eth0One wlan interface for WAN: wlan0Steps followed to enable IP forwarding:Enable wlan0 and connect to WANEnable eth0 and assing static IPip link set dev eth0 upip addr add 192.168.0.1/24 dev eth0Enable IP forwardingecho 1 > /proc/sys/net/ipv4/ip_forwardAdd forward chain rules for both eth0 and wlan0iptables -A FORWARD -i eth0 -j ACCEPTiptables -A FORWARD -o eth0 -j ACCEPTiptables -A FORWARD -i wlan0 -j ACCEPTiptables -A FORWARD -o wlan0 -j ACCEPTEnable MASQUERADE on wlan0iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADETest:I tried ping from eth0 to wlan0, but arp itself is failing.Observations:IP table rules shows that all data is going on OUTPUT chain rather than FORWARD.root@ubuntu:~# iptables -nvL -t filterChain INPUT (policy ACCEPT 55 packets, 6019 bytes) pkts bytes target     prot opt in     out     source               destinationChain FORWARD (policy ACCEPT 0 packets, 0 bytes) pkts bytes target     prot opt in     out     source               destination    0     0 ACCEPT     all  --  eth0   *       0.0.0.0/0            0.0.0.0/0    0     0 ACCEPT     all  --  *      eth0    0.0.0.0/0            0.0.0.0/0    0     0 ACCEPT     all  --  wlan0  *       0.0.0.0/0            0.0.0.0/0    0     0 ACCEPT     all  --  *      wlan0   0.0.0.0/0            0.0.0.0/0Chain OUTPUT (policy ACCEPT 6 packets, 588 bytes) pkts bytes target     prot opt in     out     source               destinationSome extra informationAll executed all commands with root permissions, there are no error in commandsI am pinging from eth0(LAN) to wlan0(WAN) on same host. Even though it is not meaning full ping, it should workI see arp request on eth0 but not on wlan0 interfaceCould someone help me resolve this issue?
IP forward is not working on Ubuntu
ubuntu;networking;ip;routing