大网数据广告活动
服务器运维问答

WAN Static IP with Carp but different GW

· 52CE 我爱测

I have the following problem, and I cannot find the solution, even after googling and reading the pfsense documentation. my ISP gave me the following information: Gateway: 1.2.3.254/32 Public IP: 5.4.3.2/32 If I use these informa…

问题原文

原帖链接 · Alessandro Perucchi · CC BY-SA 3.0

I have the following problem, and I cannot find the solution, even after googling and reading the pfsense documentation.

my ISP gave me the following information:

Gateway: 1.2.3.254/32
Public IP: 5.4.3.2/32

If I use these information in my pfsense box, it works without any problem.

Now, I want to have some HA with Carp and multi-WAN. Before doing the whole setup, since this is the first time I am doing it, I want to do step by step, and doing 1 node with 1 WAN IP and test that it works.

If that works, I will add the second node.

After googling a lot, and reading everything I could on the subject, I have found the following 2 posts, which helps me to do what I want to achieve:

So, here is my setup in pfSense:

  • Gateway of my ISP: 1.2.3.254/32
  • pfSense WAN: 192.168.99.1/30
  • CARP VIP WAN: 5.4.3.2/32
  • AON
    • Source: any
    • Source Port : *
    • Destination: 5.4.3.2/32
    • Destination Port: *
    • NAT Address: WAN Address (192.168.99.1)
    • Nat Port: *
    • Static Port: Randomize Source Port

For the gateway, I have tried the following three scenarios:

1) Gateway: 5.4.3.2

2) Gateway: 1.2.3.254

3) Gateway: 5.4.3.2 and static route 5.4.3.2 via gw 1.2.3.254

And I cannot make the whole thing work. I get no connection to internet.

I use pfsense 2.3.2-RELEASE-p1

Could help me? I am stuck now... and don't what else to do...

已采纳解答

原帖链接 · Alessandro Perucchi · CC BY-SA 3.0

Just for the sake of completion, and also for me in the future...

even after doing everything, even if the answer from SmallLoanOf1M was helping me a lot to solve my problem, it wasn't working all the time...

I found out that the problem was that the ARP entry for the gateway wasn't filled. I needed to do a arp -s 1.2.3.254 00:de:ad:be:ef:ff and after adding it into the boot process to be sure that it was really entered, now it works everytime...

So the final setup I have is that one:

Gateway of my ISP: 1.2.3.254/32
pfSense WAN: 192.168.99.1/30
CARP VIP WAN: 5.4.3.2/32
AON
    Source: any
    Source Port : *
    Destination: *
    Destination Port: *
    NAT Address: CARP VIP WAN (5.4.3.2/32)
    Nat Port: *
    Static Port: Randomize Source Port
Add ARP entry for the Gateway (in my case 00:de:ad:be:ef:ff)

god... some many hours/days lost for that :-( At least, now I know! And I hope that could help some of you that had a similar problem that this one.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-11-16)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。