uncloud-mravi/uncloud/hack
Nico Schottelius 8078ffae5a Add working --last-used-mac
{'create_vm': False, 'last_used_mac': True, 'get_new_mac': False, 'debug': False, 'conf_dir': '/home/nico/uncloud', 'etcd_host': 'etcd1.ungleich.ch', 'etcd_port': None, 'etcd_ca_cert': '/home/nico/vcs/ungleich-dot-cdist/files/etcd/ca.pem', 'etcd_cert_cert': '/home/nico/vcs/ungleich-dot-cdist/files/etcd/nico.pem', 'etcd_cert_key': '/home/nico/vcs/ungleich-dot-cdist/files/etcd/nico-key.pem'}
00:20:00:00:00:00
(venv) [19:02] diamond:uncloud% ./bin/uncloud-run-reinstall hack  --etcd-host etcd1.ungleich.ch --etcd-ca-cert /home/nico/vcs/ungleich-dot-cdist/files/etcd/ca.pem --etcd-cert-cert /home/nico/vcs/ungleich-dot-cdist/files/etcd/nico.pem --etcd-cert-key /home/nico/vcs/ungleich-dot-cdist/files/etcd/nico-key.pem --last-used-mac
2020-01-14 19:02:15 +01:00
..
conf.d find ucloud -name \*.py -exec sed -i "s/ucloud/uncloud/g" {} \; 2019-12-31 11:29:08 +01:00
hackcloud Begin further integration of code into hack 2020-01-14 11:25:06 +01:00
rc-scripts find ucloud -name \*.py -exec sed -i "s/ucloud/uncloud/g" {} \; 2019-12-31 11:29:08 +01:00
__init__.py Begin to integrate hack into the main script 2020-01-14 11:05:42 +01:00
config.py Write VM to etcd 2020-01-14 14:23:26 +01:00
db.py Add working --last-used-mac 2020-01-14 19:02:15 +01:00
mac.py Add working --last-used-mac 2020-01-14 19:02:15 +01:00
main.py Add working --last-used-mac 2020-01-14 19:02:15 +01:00
nftables.conf find ucloud -name \*.py -exec sed -i "s/ucloud/uncloud/g" {} \; 2019-12-31 11:29:08 +01:00
README.org find ucloud -name \*.py -exec sed -i "s/ucloud/uncloud/g" {} \; 2019-12-31 11:29:08 +01:00
uncloud-hack-init-host [hack] add scripts to start VM 2020-01-05 18:32:14 +01:00
uncloud-run-vm ++stuff 2020-01-11 00:24:17 +01:00
vm.py Add working --last-used-mac 2020-01-14 19:02:15 +01:00

This directory contains unfinishe hacks / inspirations

firewalling / networking in ucloud

automatically route a network per VM - /64?

nft: one chain per VM on each vm host (?)

might have scaling issues?

firewall rules on each VM host

  • mac filtering:

To add / block

TODO arp poisoning

TODO ndp "poisoning"

TODO ipv4 dhcp server

drop dhcpv4 requests

drop dhcpv4 answers