Kood: Vali kõik
root@raspberry:~# systemctl status sshtunnel
● sshtunnel.service - Service to maintain an ssh reverse tunnel
Loaded: loaded (/etc/systemd/system/sshtunnel.service; enabled; vendor preset
Active: active (running) since Wed 2021-12-01 11:12:57 EET; 1h 1min ago
Main PID: 1663 (ssh)
Tasks: 1 (limit: 4915)
Kood: Vali kõik
[sshtunnel@mail ~]$ netstat -nat | grep 6666
tcp 0 0 0.0.0.0:6666 0.0.0.0:* LISTEN
tcp 0 0 192.168.1.101:6666 192.168.1.101:39454 TIME_WAIT
tcp6 0 0 :::6666 :::* LISTEN
[sshtunnel@mail ~]$ lynx 192.168.1.101:6666
Centos ip 192.168.1.101 sisevõrgu aadress, kui sisevõrgust pöörduda http//:192.168.1.101 poole, siis tunnel ei toimi. Probleem seega centos is.
tulemüüris port lubatud, selinuxit ei ole.

