Skip to content

Instantly share code, notes, and snippets.

@kbruner
Created November 25, 2020 23:01
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 kbruner/978b281eaaf2e7ebf282d7125bd024e0 to your computer and use it in GitHub Desktop.
Save kbruner/978b281eaaf2e7ebf282d7125bd024e0 to your computer and use it in GitHub Desktop.
root@nucklehead:~ # ipfw add 200 prob 0.33 fwd 10.10.0.10 ip from any to 10.10.0.1 keep-state
00200 prob 0.330000 fwd 10.10.0.10 ip from any to 10.10.0.1 keep-state :default
root@nucklehead:~ # ipfw add 201 prob 0.5 fwd 10.10.0.11 ip from any to 10.10.0.1 keep-state
00201 prob 0.500000 fwd 10.10.0.11 ip from any to 10.10.0.1 keep-state :default
root@nucklehead:~ # ipfw add 202 fwd 10.10.0.12 ip from any to 10.10.0.1 keep-state
00202 fwd 10.10.0.12 ip from any to 10.10.0.1 keep-state :default
root@nucklehead:~ # for i in 0 1 2; do
ssh -i ~cbsd/.ssh/id_rsa ubuntu@controller-$i sudo ip address add 10.10.0.1/32 dev enp0s5:1
done
root@nucklehead:~ # ssh -o StrictHostKeyChecking=false -i ~cbsd/.ssh/id_rsa ubuntu@10.10.0.1
[...]
ubuntu@controller-2:~$ logout
Connection to 10.10.0.1 closed.
root@nucklehead:~ # ssh -o StrictHostKeyChecking=false -i ~cbsd/.ssh/id_rsa ubuntu@10.10.0.1
[...]
ubuntu@controller-0:~$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment