CARP VIP not reachable
-
<interfaces><lan><if>vlan0</if>
<ipaddr>192.168.50.1</ipaddr>
<subnet>24</subnet>
<media><mediaopt><bandwidth>100</bandwidth>
<bandwidthtype>Mb</bandwidthtype></mediaopt></media></lan>
<wan><if>fxp0</if>
<mtu><media><mediaopt><bandwidth>100</bandwidth>
<bandwidthtype>Mb</bandwidthtype>
<spoofmac><disableftpproxy><ipaddr>192.168.1.200</ipaddr>
<subnet>1</subnet>
<gateway>192.168.1.1</gateway></disableftpproxy></spoofmac></mediaopt></media></mtu></wan>
<opt1><descr>DMZ</descr>
<if>vlan1</if>
<bridge><ipaddr>192.168.51.1</ipaddr>
<subnet>24</subnet>
<gateway><spoofmac><mtu><enable></enable></mtu></spoofmac></gateway></bridge></opt1>
<opt2><descr>SYNC</descr>
<if>vlan2</if>
<bridge><enable><ipaddr>192.168.49.1</ipaddr>
<subnet>24</subnet>
<gateway><spoofmac></spoofmac></gateway></enable></bridge></opt2>
<opt3><descr>DMZExt</descr>
<if>vlan3</if>
<bridge><ipaddr>192.168.52.1</ipaddr>
<subnet>24</subnet>
<gateway><spoofmac></spoofmac></gateway></bridge></opt3></interfaces><virtualip><vip><mode>carp</mode>
<interface>lan</interface>
<vhid>2</vhid>
<advskew>0</advskew>
<password>test</password>
<descr><type>single</type>
<subnet_bits>24</subnet_bits>
<subnet>192.168.50.3</subnet></descr></vip>
<vip><mode>carp</mode>
<interface>opt1</interface>
<vhid>8</vhid>
<advskew>0</advskew>
<password>test</password>
<descr><type>single</type>
<subnet_bits>24</subnet_bits>
<subnet>192.168.51.3</subnet></descr></vip></virtualip> -
pfsense 2
<interfaces><lan><if>vlan0</if>
<ipaddr>192.168.50.2</ipaddr>
<subnet>24</subnet>
<media><mediaopt><bandwidth>100</bandwidth>
<bandwidthtype>Mb</bandwidthtype></mediaopt></media></lan>
<wan><if>fxp0</if>
<mtu><ipaddr>192.168.1.201</ipaddr>
<subnet>1</subnet>
<gateway>192.168.1.1</gateway>
<disableftpproxy><dhcphostname><media><mediaopt><bandwidth>100</bandwidth>
<bandwidthtype>Mb</bandwidthtype>
<spoofmac></spoofmac></mediaopt></media></dhcphostname></disableftpproxy></mtu></wan>
<opt1><descr>DMZ</descr>
<if>vlan1</if>
<bridge><enable><ipaddr>192.168.51.2</ipaddr>
<subnet>24</subnet>
<gateway><spoofmac></spoofmac></gateway></enable></bridge></opt1>
<opt2><descr>SYNC</descr>
<if>vlan2</if>
<bridge><enable><ipaddr>192.168.49.2</ipaddr>
<subnet>24</subnet>
<gateway><spoofmac></spoofmac></gateway></enable></bridge></opt2>
<opt3><descr>DMZExt</descr>
<if>vlan3</if>
<bridge><ipaddr>192.168.52.2</ipaddr>
<subnet>24</subnet>
<gateway><spoofmac></spoofmac></gateway></bridge></opt3></interfaces><virtualip><vip><mode>carp</mode>
<interface>lan</interface>
<vhid>2</vhid>
<advskew>100</advskew>
<password>test</password>
<descr><type>single</type>
<subnet_bits>24</subnet_bits>
<subnet>192.168.50.3</subnet></descr></vip>
<vip><mode>carp</mode>
<interface>opt1</interface>
<vhid>8</vhid>
<advskew>100</advskew>
<password>test</password>
<descr><type>single</type>
<subnet_bits>24</subnet_bits>
<subnet>192.168.51.3</subnet></descr></vip></virtualip> -
everything seems to be ok. If we forget about vip for the moment… can you ping real IP?
-
Now i'm getting crazy. I ran a ping for a few minutes and did add a new VIP for testing. While pressing the pfsense "Apply Changes" button, this happens:
ping 192.168.51.3
PING 192.168.51.3 (192.168.51.3): 56 data bytes
64 bytes from 192.168.51.3: icmp_seq=108 ttl=64 time=0.191 ms
64 bytes from 192.168.51.3: icmp_seq=109 ttl=64 time=0.101 ms
–- 192.168.51.3 ping statistics ---
115 packets transmitted, 2 packets received, 98.3% packet loss
round-trip min/avg/max/stddev = 0.101/0.146/0.191/0.045 msafter this two packets, now its silence again. I can ping the real ip.
Thank you for hour help!
-
may be stupid question but you have rule allowing icmp to this ip, right?
pfctl -sr | grep vlan1 -
I hope so!
pfctl -sr | grep vlan1
block drop in on ! vlan1 inet from 192.168.51.0/24 to any
block drop in on vlan1 inet6 from fe80::250:8bff:feec:84d0 to any
pass out quick on vlan1 all flags S/SA keep state label "let out anything from firewall host itself"
pass out quick on vlan1 proto icmp all keep state (tcp.closed 5) label "let out anything from firewall host itself"
pass out quick on vlan1 all flags S/SA keep state (tcp.closed 5) label "let out anything from firewall host itself"
pass in quick on vlan1 inet proto tcp from 192.168.51.0/24 to any port = domain flags S/SA keep state label "USER_RULE: DNS Requests"
pass in quick on vlan1 inet proto udp from 192.168.51.0/24 to any port = domain keep state label "USER_RULE: DNS Requests"
pass in quick on vlan1 inet proto tcp from 192.168.51.0/24 to any port = http flags S/SA keep state label "USER_RULE"
pass in quick on vlan1 inet from 192.168.51.0/24 to 192.168.51.0/24 flags S/SA keep state label "USER_RULE"
pass in quick on vlan1 all flags S/SA keep state label "USER_RULE"
pass in quick on vlan1 inet proto tcp from 192.168.51.0/24 to any port = https flags S/SA keep state label "USER_RULE"
pass in quick on vlan1 inet proto tcp from any to 127.0.0.1 port = 8022 flags S/SA keep state label "FTP PROXY: Allow traffic to localhost"
pass in quick on vlan1 inet proto tcp from any to 127.0.0.1 port = ftp flags S/SA keep state label "FTP PROXY: Allow traffic to localhost" -
Ok, sounds interesting. Can you please run tcpdump -i vlan1 -n vrrp on pfsense1 and click edit any vip and then save apply on pfsense1?
-
-
i think I run out of ideas… Your carp does not work.
- pfsctl -sr | grep carp
- Try swap nics fxp0 and fxp1.
Sorry
-
pfctl -sr | grep carp
anchor "carp" all
pass in quick on carp0 inet proto udp from any port = bootpc to 255.255.255.255 port = bootps keep state label "allow access to DHCP server on LAN"
pass in quick on carp0 inet proto udp from any port = bootpc to 192.168.50.2 port = bootps keep state label "allow access to DHCP server on LAN"
pass out quick on carp0 inet proto udp from 192.168.50.2 port = bootps to any port = bootpc keep state label "allow access to DHCP server on LAN"
pass out quick on carp0 proto icmp all keep state label "let out anything from firewall host itself"
pass out quick on carp1 all flags S/SA keep state (tcp.closed 5) label "let out anything from firewall host itself"
pass out quick on carp2 all flags S/SA keep state (tcp.closed 5) label "let out anything from firewall host itself"
pass quick proto carp all keep state
pass in quick on carp2 all flags S/SA keep state label "USER_RULE: Trust the Firewall CARP net"
pass in quick on carp0 inet from 192.168.50.0/24 to any flags S/SA keep state label "USER_RULE: Default LAN - any"
pass in quick on carp1 all flags S/SA keep state label "USER_RULE"Isn't here something wrong?
-
you have this: pass quick proto carp all keep state
It means at least carp packets (vrrp) shouldn't have any restrictions.
you should have the same (almost) dump on vlan1 as you have on WAN for vrrp. -
<wan><if>fxp0</if>
<mtu><ipaddr>192.168.1.201</ipaddr>
<subnet>1</subnet>
[..]I finally found the problem. Simple little configuration mistake, see above. I apologize for the trouble caused.</mtu></wan>
-