Temat: raspberry pi pełen dostęp z zerotier
Witam.
Jak w raspberry pi uzyskać pełen dostęp do urządzeń podłączonych po wifi do rpi?
Do rpi jest podłączony modem 3g w hilink. Internet jest. Mogę się po zerotier podłączyć do ssh. Tymczasowo jest podłączony też lan. Rpi połączone jest jako client do urządzenia po wifi i to do tego urządzenia chciałbym mieć pełen dostęp.
Przez openwrt zrobiłem to bez problemu i działa ale openwrt nie pozwala zainstalować mavlink-router.
Rpi do testów to 4b ale docelowo będzie to na zero 2w. Całość ma być zamontowana w łódce zanętowej i służyć jako przedłużenie zasięgu echosondy + telemetria z pixa.
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.4.131 netmask 255.255.255.0 broadcast 192.168.4.255
inet6 fe80::5acf:4d44:513a:d0f9 prefixlen 64 scopeid 0x20<link>
ether dc:a6:32:df:fc:71 txqueuelen 1000 (Ethernet)
RX packets 7125 bytes 1289337 (1.2 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 3390 bytes 323553 (315.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.100 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::c7de:8398:8e40:dd0e prefixlen 64 scopeid 0x20<link>
ether 58:2c:80:13:92:63 txqueuelen 1000 (Ethernet)
RX packets 394 bytes 43739 (42.7 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 814 bytes 83203 (81.2 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
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 28 bytes 2958 (2.8 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 28 bytes 2958 (2.8 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.10.2 netmask 255.255.255.0 broadcast 192.168.10.255
inet6 fe80::2dda:ffe7:a4ef:76b prefixlen 64 scopeid 0x20<link>
ether dc:a6:32:df:fc:74 txqueuelen 1000 (Ethernet)
RX packets 4423 bytes 267700 (261.4 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 99 bytes 14477 (14.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
ztfasa57soy: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 2800
inet 192.168.10.152 netmask 255.255.255.0 broadcast 192.168.10.255
inet6 fe80::b4d1:2dff:fe0a:4ba9 prefixlen 64 scopeid 0x20<link>
ether b6:d1:2d:0a:4b:a9 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 75 bytes 7990 (7.8 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0Pula IP w zerotier jest zrobiona celowo takia jak urządzenie podłączone do rpi po wifi bo tak działało na openwrt.
wlan0 IEEE 802.11 ESSID:"Deeper CHIRP+2 C3F6"
Mode:Managed Frequency:2.412 GHz Access Point: D0:17:69:5B:C3:F6
Bit Rate=24 Mb/s Tx-Power=31 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:on
Link Quality=65/70 Signal level=-45 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0