종류: Local Port Forwarding, Remote Port Forwarding, Dynamic Port Forwarding
Local Port Forwarding
사용 이유 → 기존 로컬에서는 B로 가는 길이 막혀있으나(다이렉트) 터널링을 통해 우회할 경우 B로 접근할 수 있음(리다이렉트)
터널 여는 방법
putty => ssh => ternunl
Remote Port Forwarding
service sshd restart firewall-cmd --permanent --add-port=4001-4005/tcpvi /etc/ssh/sshd_config
AllowTcpForwarding yes
GatewayPorts yes
PermitTunnel yes
source port 10.10.10.20:4001
destination 10.10.10.20:22