Hole punching (or sometimes punch-through) is a technique in computer networking for establishing a direct connection between two parties in which one or both are behind firewalls or behind routers that use network address translation (NAT). To punch a hole, each client connects to an unrestricted third-party server that temporarily stores external and internal address and port information for each client. The server then relays each client's information to the other, and using that information each client tries to establish direct connection; as a result of the connections using valid port numbers, restrictive firewalls or routers accept and forward the incoming packets on each side.
回覆 14#javacomhk
其實UPnP可以set allowed internal port range
亦需要該service有UPnP support才有效果
例如就算你enable UPnP,都唔會自動forward port 22,想由外部ssh去 LAN只能自己手動set port forwarding rules,開UPnP唔等於可以隨意連LAN client所有port
我又真係想知有咩service唔可以靠 set port forwarding rules 出 router