Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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