otakup0pe.edgeos
EdgeOS Thoughts
Think of this as a test version, and be cautious.
I've been a fan of the Ubiquiti products for years. I still love them, even though their devices are often found on shodan. This setup works with an EdgeOS/VyOS machine to do various tasks.
- Install SSL certificate
- Set up pimd for multicast forwarding
- Install helpful scripts
vyos-misc
This section restarts lighthttp when I change the TLS settings.
# vyos-misc web restart
vyos-dns
This is used to manage static DNS entries.
# vyos-dns list
foo.example.com - 10.0.0.1
bar.example.com - 10.0.0.2
# vyos-dns update foo.example.com 10.0.0.3
Updating foo.example.com from 10.0.0.1 to 10.0.0.3
...
# vyos-dns delete bar.example.com
Removing bar.example.com (10.0.0.2)
...
vyos-dhcp
This helps manage static DHCP records.
# vyos-dhcp list Intranet
00:11:22:aa:bb:cc 10.0.0.1 - foo
00:11:22:aa:bb:cd 10.0.0.2 - bar
# vyos-dhcp update Intranet foo 10.0.0.3 00:11:22:aa:bb:cc
Updating foo - 00:11:22:aa:bb:cc from 10.0.0.1 to 10.0.0.3
...
# vyos-dhcp delete Intranet bar
Removing bar - 00:11:22:aa:bb:cd 10.0.0.2
Notes
I find the whole vbash
feature fascinating. However, I've noticed that configuration functions can't be accessed from other functions, which leads to a lot of duplicated code in the vbash scripts. Even when trying to re-initialize commands inside a function, they don't seem to be found. I think this is due to my lack of understanding about how bash functions work.
License
Author
This Ansible role was made by Jonathan Freedman to move away from the EdgeOS GUI.
ansible-galaxy install otakup0pe.edgeos