====== Проброс TCP трафика через SSH ====== ===== конфигурация SSH ===== В файл /etc/ssh/sshd_config добавляем директивы для тунеля X11Forwarding yes PermitTunnel yes === Проброс трафика с tun0 на tun2 === apt update apt install uml-utilities Имеется два интерфейса на сервере - tun0 с локальной сетью openvpn клиентов, второй (tun2) - SSH туннель tun0: flags=4305 mtu 1500 inet 10.162.157.1 netmask 255.255.255.0 destination 10.162.157.1 inet6 fe80::cd7e:8ee5:7857:c03a prefixlen 64 scopeid 0x20 unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 500 (UNSPEC) RX packets 571976 bytes 318542719 (303.7 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 700955 bytes 733263977 (699.2 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 tun2: flags=4305 mtu 1500 inet 192.168.111.2 netmask 255.255.255.252 destination 192.168.111.2 inet6 fe80::9654:3fdd:fa5c:3a7b prefixlen 64 scopeid 0x20 unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 500 (UNSPEC) RX packets 157 bytes 10316 (10.0 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 12 bytes 752 (752.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0