Skip to content

Instantly share code, notes, and snippets.

@silenius
Created October 8, 2019 13:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save silenius/b237565b0d181248ff80ea296e5537db to your computer and use it in GitHub Desktop.
Save silenius/b237565b0d181248ff80ea296e5537db to your computer and use it in GitHub Desktop.
# MACHINE 1
ifconfig_igb0="inet 10.11.12.89 netmask 255.255.255.224 -tso"
ifconfig_igb0_alias0="inet vhid 53 advskew 0 pass xxx alias 193.x.x.90/32"
ifconfig_igb1="inet 10.11.12.90 netmask 255.255.255.224 -tso"
ifconfig_igb1_alias0="inet vhid 54 advskew 0 pass xxx alias 193.x.x.92/32"
# MACHINE 2
ifconfig_igb0="inet 10.11.12.91 netmask 255.255.255.224 -tso"
ifconfig_igb0_alias0="inet vhid 53 advskew 100 pass xxx alias 193.x.x.90/32"
ifconfig_igb1="inet 10.11.12.92 netmask 255.255.255.224 -tso"
ifconfig_igb1_alias0="inet vhid 54 advskew 100 pass xxx alias 193.x.x.92/32"
# PF on both MACHINE 1 and MACHINE 2
CARPvhid53="193.x.x.90"
CARPvhid54="193.x.x.92"
nat on igb0 from { $net1 } to any -> $CARPvhid53
nat on igb1 from { $net2 } to any -> $CARPvhid54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment