我有很less的外部IP地址,但我想用一个,而NAT就是不同的PC。
这应该是这样的。
123.123.123.123这是我的IP,我想有3台PC在不同的端口,例如3111,3112,3133。
我知道如何NAT内部端口,但我不知道如何设置,我可以连接到这些端口上的RDP与IP。
123.123.123.123:3111 -> 10.10.10.101 123.123.123.123:3112 -> 10.10.10.102 123.123.123.123:3113 -> 10.10.10.103
有任何想法吗? 我认为这可能是与SNAT的东西(但没有端口设置外部IP),或与政策?
对不起,在我的消息混乱,我希望你能理解我无论如何。
最好的祝福
WatchGuard上的SNAT实际上分为两个部分,使用起来更简单。 然而,这会导致理解用户的设置问题,这些用户使用解决scheme来处理SNAT。
第一步是SNAT行动。 他们只定义外部2内部IP地址转换和您想要转换的内部端口的不同可能的组合。 这只是您设置的别名列表。 在防火墙规则中使用它们之前,它们都不是活动的。
对于RDP连接,您可以设置如下的SNAT操作:
Name: Ext_123-RDP_101 SNAT Members: 123.123.123.123 -> 10.10.10.101:3389 Name: Ext_123-RDP_102 SNAT Members: 123.123.123.123 -> 10.10.10.102:3389 Name: Ext_123-RDP_103 SNAT Members: 123.123.123.123 -> 10.10.10.103:3389
这就是翻译部分。 接下来你需要设置防火墙规则。 由于离开开放的RDP端口永远不会很聪明,所以我将使用属于组“Allow-RDP”的经过身份validation的用户(通过https:// firewall_IP:4100对其进行身份validation)。
你将需要3条规则,这将使用你已经定义的SNAT动作。 由于端口3111-311x没有标准服务,因此您将创build一个名为SNAT-RDP的自定义模板,并添加一个TCP端口范围3111-3113,并根据此模板创build3个新的防火墙规则。
Name the new rules something like 'RDP-IN-101', 'RDP-IN-102' and 'RDP-IN-103' 'RDP-IN-101': In the FROM: field put the authenticated users name (if it is for the access to his own PC) or the 'Allow-RDP' groupname (if it is for the access to a shared computer). In the TO: field put the Ext_123-RDP_101 SNAT Action 'RDP-IN-102': In the FROM: field put the authenticated users name (if it is for the access to his own PC) or the 'Allow-RDP' groupname (if it is for the access to a shared computer). In the TO: field put the Ext_123-RDP_102 SNAT Action 'RDP-IN-103': In the FROM: field put the authenticated users name (if it is for the access to his own PC) or the 'Allow-RDP' groupname (if it is for the access to a shared computer). In the TO: field put the Ext_123-RDP_103 SNAT Action
为了对发生的事情有一定的控制权,你也应该打开这些规则的日志logging。
但就是这样。 上传到FB并享受。
在这种情况下,SNAT行动并不是一个简单的事情。 但是如果你有一些比较普通的SNAT,例如某些服务器,那么对于所有的规则,只需要一个“可重用的”SNAT动作,即从一个外部IP地址连接到该服务器。 当端口转换join游戏时,SNAT动作不是“可重用的”,所以你不能看到它的好处。
如果我正确地理解了你,如果你想用RDP连接到这些内部服务器,你需要做以下的事情:
123.123.123.123:3111 -> 10.10.10.101:3389 123.123.123.123:3112 -> 10.10.10.102:3389 123.123.123.123:3113 -> 10.10.10.103:3389
RDP使用端口TCP / UDP 3389,您可以通过在Watchguard中使用端口转发进行NAT来实现此目的。 阅读: https : //en.wikipedia.org/wiki/Remote_Desktop_Protocol
在这里看到说明:
configuration静态NAT
如何在WatchGuard XTM 2上configuration端口转发?