/commands + output Secret
Created
December 8, 2020 02:58
Star
You must be signed in to star a gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~ # 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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