Hello
I'm still digging into the topic of openwrt on virtualbox. This time I have a problem connecting via ssh on the eth0 interface (host-only) from the host computer. I would like to be able to connect to (eth0) address 192.168.10.2.
My interface configuration is as follows:
# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel master br-lan state UP qlen 1000
link/ether 08:00:27:80:68:7b brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP qlen 1000
link/ether 08:00:27:eb:b7:e1 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.105/24 brd 192.168.0.255 scope global eth1
valid_lft forever preferred_lft forever
inet6 fe80::a00:27ff:feeb:b7e1/64 scope link
valid_lft forever preferred_lft forever
4: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
link/ether 08:00:27:80:68:7b brd ff:ff:ff:ff:ff:ff
inet 192.168.10.2/24 brd 192.168.10.255 scope global br-lan
valid_lft forever preferred_lft forever
inet6 fd38:18c7:c46::1/60 scope global noprefixroute
valid_lft forever preferred_lft forever
inet6 fe80::a00:27ff:fe80:687b/64 scope link
valid_lft forever preferred_lft forever
On the WAN interface, firewall rules worked:
config rule
option name 'WAN-SSH'
option src 'wan'
option dest_port '22'
option proto 'tcp'
option target 'ACCEPT'
I tried to add firewall rules analogously with the lan/br-lan interface but without success. Can you tell me what the rules for ssh giving access to the router should look like?
Best regards
MA