I followed the Routed AP configuration wiki, https://openwrt.org/docs/guide-user/network/wifi/routedap but internet communication not properly working, DNS resolves the IP address but communication between the target host and client computer is not working.
My main router IP address is 192.168.55.1 and OpenWRT router is configured with 192.168.2.1/24 subnet. My configuration as follows.
/etc/config/network
config interface 'lan'
option type 'bridge'
option ifname 'eth0'
option proto 'static'
option ipaddr '192.168.55.3'
option netmask '255.255.255.0'
option gateway '192.168.55.1'
option dns '192.168.55.1'
config interface 'wifi'
option proto 'static'
option ipaddr '192.168.2.1'
option netmask '255.255.255.0'
option gateway '192.168.55.1'
option dns '192.168.55.1'
/etc/config/firewall (+ default configuration from openwrt install)
config zone
option name 'wifi'
list network 'wifi'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'REJECT'
config forwarding
option src 'wifi'
option dest 'wan'
config forwarding
option src 'lan'
option dest 'wifi'
config forwarding
option src 'wifi'
option dest 'lan'
/etc/config/wireless
config wifi-device 'wl0'
option type 'mac80211'
option channel '36'
option hwmode '11a'
option path 'platform/soc/3f300000.mmc/mmc_host/mmc1/mmc1:0001/mmc1:0001:1'
option htmode 'VHT80'
option disabled '0'
config wifi-iface
option device 'wl0'
option network 'wifi'
option mode 'ap'
option ssid 'OpenWrt'
option encryption 'psk2'
option key 'some password'
From OpenWrt console, I am able to ping the google.com and install packages, everything works great.
root@OpenWrt:~# ping google.com
PING google.com (216.58.195.238): 56 data bytes
64 bytes from 216.58.195.238: seq=0 ttl=53 time=12.024 ms
64 bytes from 216.58.195.238: seq=1 ttl=53 time=12.390 ms
64 bytes from 216.58.195.238: seq=2 ttl=53 time=11.487 ms
64 bytes from 216.58.195.238: seq=3 ttl=53 time=11.929 ms
I am able to connect to the Wifi network OpenWrt and I get an IP address. When I ping from my client computer then I am getting request timeout and I am missing some configuration, I would really appreciate if someone gives some guidelines to resolve this issue.
From OpenWrt console (tcpdump)
root@OpenWrt:~# tcpdump icmp -n
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on br-lan, link-type EN10MB (Ethernet), capture size 262144 bytes
23:20:17.220716 IP 192.168.2.110 > 216.58.195.238: ICMP echo request, id 16427, seq 0, length 64
23:20:18.226091 IP 192.168.2.110 > 216.58.195.238: ICMP echo request, id 16427, seq 1, length 64
23:20:19.230200 IP 192.168.2.110 > 216.58.195.238: ICMP echo request, id 16427, seq 2, length 64
23:20:20.233514 IP 192.168.2.110 > 216.58.195.238: ICMP echo request, id 16427, seq 3, length 64
23:20:21.233639 IP 192.168.2.110 > 216.58.195.238: ICMP echo request, id 16427, seq 4, length 64
23:20:21.528415 IP 192.168.55.3 > 192.168.55.1: ICMP 192.168.55.3 udp port 137 unreachable, length 86
23:20:22.070366 IP 192.168.55.3 > 192.168.55.1: ICMP 192.168.55.3 udp port 137 unreachable, length 86
23:20:22.235002 IP 192.168.2.110 > 216.58.195.238: ICMP echo request, id 16427, seq 5, length 64
23:20:23.234857 IP 192.168.2.110 > 216.58.195.238: ICMP echo request, id 16427, seq 6, length 64
23:20:24.236183 IP 192.168.2.110 > 216.58.195.238: ICMP echo request, id 16427, seq 7, length 64
^C
10 packets captured
10 packets received by filter
0 packets dropped by kernel
From client computer
^^>>> ping google.com 15:20:09
PING google.com (216.58.195.238): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
Request timeout for icmp_seq 2
Request timeout for icmp_seq 3
Request timeout for icmp_seq 4
Request timeout for icmp_seq 5
Request timeout for icmp_seq 6
Thanks in Adv,
-Kuppa