我有一个VMware vSphere Hypervisor,其中运行了几个Hadoop。由于我们的支持激活了路由器上的端口安全,所以只允许两个MACs连接到路由器的一个端口。这就是为什么我添加了另一个带有pfsense的VM,将Hadoop放在自己的子网中,而pfsense“中间”:

我更喜欢的解决方案是,pfsense是透明的,只用它自己的所有MACs替换到“外部”的数据包。由于我不知道这是否可能,我目前正在努力让出站NAT工作,以便至少那些am可以与外界沟通。
到目前为止,我已经:
不起作用的是:
配置详细信息:
我的广域网是172.1.40.1/24。由于我最初的计划是使LAN和WAN之间的通信变得透明,所以我配置了pfsense,使得对于pfsense,LAN是172.16.40.128/25,而WAN是172.16.40.1/25。
以下是我的防火墙规则和NAT规则:
WAN防火墙规则
ID Proto Source Port Destination Port Gateway Queue Schedule Description
IPv4 TCP * * WAN address 80 (HTTP) * none WAN configurator access
IPv4 * 172.16.40.0/24 * * * * none WAN/LAN Passthrough
IPv4 * * * * * * none anypass 局域网防火墙规则
ID Proto Source Port Destination Port Gateway Queue Schedule Description
* * * LAN Address 80 * * Anti-Lockout Rule
IPv4 * LAN net * * * * none Default allow LAN to any rule
IPv6 * LAN net * * * * none Default allow LAN IPv6 to any
IPv4 * * * * * * none anypass 出站NAT规则
Interface Source Source Port Destination Destination Port NAT Address NAT Port Static Port Description
WAN 172.16.40.128/25 * * 500 WAN address * YES Auto created rule for ISAKMP - LAN to WAN
WAN 172.16.40.128/25 * * * WAN address * NO Auto created rule for LAN to WAN
WAN 127.0.0.0/8 * * * WAN address 1024:65535 NO Auto created rule for localhost to WAN
WAN any * * * WAN address * NO NAT everything 发布于 2015-10-13 12:57:44
https://serverfault.com/questions/662645
复制相似问题