#!/bin/bash # 이 스크립트는 sudo로 실행시킬 것 # 이 host에서 `telnet 192.168.111.222 9999` 를 눌러서 접속이 되면 ok, # 잘못된 곳에 붙으면 아예 connection이 안 될 것임. # `curl 192.168.111.222:9999` 도 괜찮음. # curl: (1) Received HTTP/0.9 when not allowed # 이런 반응이 온다. # 점검을 한 뒤 forwarding이 실제로 되나 체크 # 참고: # https://www.digitalocean.com/community/tutorials/how-to-forward-ports-through-a-linux-gateway-with-iptables DEST=192.168.111.222 POR..