Hi,
I have installed 22.03 and I can ping openwrt.org from the router like the wiki docs say. However, I cannot ping or access the internet from the machine behind the router.
This router is behind a firewall which doesn't allow me to install a vpn client, so I am doing this for the purpose of installing VPN on OpenWRT router.
One thing I notice is that when I type route
on the host machine, it takes about 10 seconds for each entry to come up.
It would appear DNS is not working correctly from the host behind the router. I do have ip forwarding set on the host and it looks like I have a route in the table.
Thoughts?
Info ...
(wan) FW (lan) <- 192.168.20.0 -> (wan) OpenWRT (lan) <- 192.168.120.0 -> host
On host:
$ ifconfig
br0: flags=4419<UP,BROADCAST,RUNNING,PROMISC,MULTICAST> mtu 1500
inet 192.168.120.10 netmask 255.255.255.0 broadcast 192.168.120.255
inet6 fdca:57b1:ab19:0:d0ba:e6ff:fe6f:d04 prefixlen 64 scopeid 0x0<global>
inet6 fe80::d0ba:e6ff:fe6f:d04 prefixlen 64 scopeid 0x20<link>
ether d2:ba:e6:6f:0d:04 txqueuelen 1000 (Ethernet)
RX packets 1 bytes 160 (160.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 13 bytes 950 (950.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
docker0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255
ether 02:42:ad:30:87:a9 txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.20.10 netmask 255.255.255.0 broadcast 192.168.20.255
inet6 fe80::96de:80ff:feb4:7cc6 prefixlen 64 scopeid 0x20<link>
inet6 fdca:57b1:ab19:0:96de:80ff:feb4:7cc6 prefixlen 64 scopeid 0x0<global>
ether 94:de:80:b4:7c:c6 txqueuelen 1000 (Ethernet)
RX packets 2164757 bytes 2000461553 (1.8 GiB)
RX errors 1 dropped 0 overruns 0 frame 1
TX packets 1176227 bytes 163266626 (155.7 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 20 memory 0xf3100000-f3120000
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 31334 bytes 2485195 (2.3 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 31334 bytes 2485195 (2.3 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
tap0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 16:9e:af:b6:48:0f txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
tap1: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether b2:ed:96:b4:8c:6e txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
$ ip route
default via 192.168.120.1 dev br0 metric 24
172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1 linkdown
192.168.20.0/24 dev eno1 proto kernel scope link src 192.168.20.10
192.168.120.0/24 dev br0 proto kernel scope link src 192.168.120.10
192.168.120.0/24 via 192.168.120.1 dev br0 metric 24
On router:
# ip route
default via 192.168.20.1 dev wan src 192.168.20.100
192.168.20.0/24 dev wan scope link src 192.168.20.100
192.168.120.0/24 dev br-lan scope link src 192.168.120.2
# cat /etc/config/network
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fdca:57b1:ab19::/48'
config device
option name 'br-lan'
option type 'bridge'
list ports 'lan1'
list ports 'lan2'
list ports 'lan3'
list ports 'lan4'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ip6assign '60'
option gateway '192.168.120.1'
option broadcast '192.168.120.255'
list ipaddr '192.168.120.2/24'
config device
option name 'wan'
option macaddr '62:38:e0:c0:b5:90'
config interface 'wan'
option device 'wan'
option proto 'dhcp'
config interface 'wan6'
option device 'wan'
option proto 'dhcpv6'
$ ifconfig
br-lan Link encap:Ethernet HWaddr 60:38:E0:C0:B5:90
inet addr:192.168.120.2 Bcast:192.168.120.255 Mask:255.255.255.0
inet6 addr: fe80::6238:e0ff:fec0:b590/64 Scope:Link
inet6 addr: fdca:57b1:ab19::1/60 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:51760 errors:0 dropped:0 overruns:0 frame:0
TX packets:47439 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5110394 (4.8 MiB) TX bytes:49367245 (47.0 MiB)
eth0 Link encap:Ethernet HWaddr 60:38:E0:C0:B5:90
inet6 addr: fe80::6238:e0ff:fec0:b590/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1508 Metric:1
RX packets:54535 errors:0 dropped:0 overruns:0 frame:0
TX packets:48987 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1024
RX bytes:9120533 (8.6 MiB) TX bytes:49929829 (47.6 MiB)
Interrupt:45
lan1 Link encap:Ethernet HWaddr 60:38:E0:C0:B5:90
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lan2 Link encap:Ethernet HWaddr 60:38:E0:C0:B5:90
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lan3 Link encap:Ethernet HWaddr 60:38:E0:C0:B5:90
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:51845 errors:0 dropped:0 overruns:0 frame:0
TX packets:47439 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5114814 (4.8 MiB) TX bytes:49367245 (47.0 MiB)
lan4 Link encap:Ethernet HWaddr 60:38:E0:C0:B5:90
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:13099 errors:0 dropped:0 overruns:0 frame:0
TX packets:13099 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:997697 (974.3 KiB) TX bytes:997697 (974.3 KiB)
wan Link encap:Ethernet HWaddr 62:38:E0:C0:B5:90
inet addr:192.168.20.100 Bcast:192.168.20.255 Mask:255.255.255.0
inet6 addr: fe80::6038:e0ff:fec0:b590/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2690 errors:0 dropped:0 overruns:0 frame:0
TX packets:1530 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2805949 (2.6 MiB) TX bytes:168960 (165.0 KiB)