Skip to content

Instantly share code, notes, and snippets.

@kbruner

kbruner/commands + output Secret

Created Dec 8, 2020
Embed
What would you like to do?
~ # ipfw add 300 prob 0.33 fwd 10.240.0.10 ip from any to 10.240.0.2 keep-state
00300 prob 0.330000 fwd 10.240.0.2 ip from any to 10.240.0.10 keep-state :default
~ # ipfw add 301 prob 0.5 fwd 10.240.0.11 ip from any to 10.240.0.2 keep-state
00301 prob 0.500000 fwd 10.240.0.2 ip from any to 10.240.0.11 keep-state :default
~ # ipfw add 302 fwd 10.240.0.12 ip from any to 10.240.0.2 keep-state
00302 fwd 10.240.0.2 ip from any to 10.240.0.12 keep-state :default
~ # for i in 0 1 2; do
ssh -i ~cbsd/.ssh/id_rsa ubuntu@10.240.0.1$i sudo ip address add 10.240.0.2/32 dev enp0s5:1
done
ipfw add 300 prob 0.33 fwd 10.240.0.10 ip from any to 10.240.0.2 keep-state
ipfw add 301 prob 0.5 fwd 10.240.0.11 ip from any to 10.240.0.2 keep-state
ipfw add 302 fwd 10.240.0.12 ip from any to 10.240.0.2 keep-state
# Add the VIP to the interface of each controller
for i in 0 1 2; do
ssh -i ~cbsd/.ssh/id_rsa ubuntu@10.240.0.1$i sudo ip address add 10.240.0.2/32 dev enp0s5:1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment