小智 5
您将无法为此使用静态 PAT,因为您会破坏 1:1 映射规则。防火墙必须知道在两个方向上使用什么映射——in->out 和 out->in。在您的情况下,如果 192.168.0.200 源自端口 25 防火墙的连接将不知道要使用哪个全局 IP。换句话说,这是不可能的。
最简单的解决方案是在内部设备上分配额外的 IP 地址并保持 NAT 清洁。假设您分配了额外的 IP 192.168.0.201。配置将是:
static (inside,outside) tcp 10.0.0.1 25 192.168.0.200 25
static (inside,outside) tcp 10.0.0.3 25 192.168.0.201 25
Run Code Online (Sandbox Code Playgroud)