假设我有两台电脑A、B,皆透过IP分享器对外连线:
IP分享器的外网IP: 1.2.3.4
IP分享器的内网IP: 192.168.0.1
内网host A: 192.168.0.100
内网host B: 192.168.0.101
我设定一组转port,从外面可以连进来:
1.2.3.4:22222 -> 192.168.0.100:22 (ssh server)
从Internet上,可以成功透过1.2.3.4:22222连到host A的ssh server,但从host B
无法直接连线1.2.3.4:22222,必须要直接连192.168.0.100:22才可以。
ssh错误讯息:
debug3: set_sock_tos: set socket 4 IP_TOS 0x48
debug1: connect to address 1.2.3.4 port 22222: Connection timed out
请问为什么会这样呢?谢谢。