Hello misc, I have an OpenBSD 5.0 running with outgoing load balance and ifstated to check link status
I've pf.conf with rules for outgoing load balance for link 1 and link 2 , pf.link1 and pf.link2 respectively ifstated.conf link1_test = '("ping -q -c 3 74.125.234.212 > /dev/null" every 20)' link2_test = '("ping -q -c 3 74.125.234.208 > /dev/null" every 20)' at pf.conf pass out log quick on $link1_if inet proto icmp to 74.125.234.208 nat-to 192.168.20.2 route-to ($link2_if $link2_gw) pass out log quick on $link1_if inet proto icmp from $link1_if to 74.125.234.212 and I do the same tests when link status change and I load the pf to corresponding link Ok, it works great, but if one of interfaces change status do down example: ifconfig em1 down the follow rule stop to working pass out log quick on $link1_if inet proto icmp to 74.125.234.208 nat-to 192.168.20.2 route-to ($link2_if $link2_gw) and the ifstated not work correctly. # tcpdump -vvni em0 host 74.125.234.208 tcpdump: listening on em0, link-type EN10MB 23:24:56.762984 192.168.20.2 > 74.125.234.208: icmp: echo request (id:ae4c seq:0) (ttl 255, id 13722, len 84, bad cksum 0! differs by 7c16) 23:24:56.774130 74.125.234.208 > 192.168.20.2: icmp: echo reply (id:ae4c seq:0) (ttl 57, id 42659, len 84)23 :24:56.774295 192.168.20.2 > 74.125.234.208: icmp: time exceeded in-transit for 74.125.234.208 > 192.168.20.2: icmp: echo reply (id:ae4c seq:0) [ttl 1] (id 42659, len 84) (ttl 255, id 58775, len 56, bad cksum 0! differs by cc34) But if interface stay UP, work very well Other thing, I'm doing ping at google servers, because sometimes some gateways respond to a ping but the problem is ISP. Please, someone can show to me the correctly form to do this? Regards,