otakup0pe.edgeos

维护

糟糕的 EdgeOS 看法

这充其量只能算是测试版,购买需谨慎。

一张图片

多年前我发现了 Ubiquiti 系统后,我就对它们非常着迷。即使它们的设备在 shodan 上频繁出现,我依然非常喜欢它们。这个角色在 EdgeOS/VyOS 机器上执行了很多操作。

  • 安装 SSL 证书
  • 设置 pimd 进行多播转发
  • 安装一些辅助脚本

vyos-misc

用于在我更换 TLS 部分时重启 lighthttp。

# vyos-misc web restart

vyos-dns

用于管理静态 DNS 映射。

# 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
将 foo.example.com10.0.0.1 更新到 10.0.0.3
...
# vyos-dns delete bar.example.com
删除 bar.example.com10.0.0.2)
...

vyos-dhcp

用于管理静态 DHCP 条目。

# 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
将 foo - 00:11:22:aa:bb:cc10.0.0.1 更新到 10.0.0.3
...
# vyos-dhcp delete Intranet bar
删除 bar - 00:11:22:aa:bb:cd 10.0.0.2

说明

整体上 vbash 这个东西有点有趣。到目前为止,我注意到的最大问题是,配置功能似乎不能在其他功能内访问。这就是为什么在 vbash 脚本中一切都重复了。即使在函数内 sourcing 和重新初始化,各种命令仍然找不到。我假设这是因为我对 bash 函数的工作原理理解不够。

许可证

MIT

作者

这个 Ansible 角色是由 Jonathan Freedman 创建的,因为他想打破对 EdgeOS 界面操作的依赖。

关于项目

How I roll with my EdgeOS kit

安装
ansible-galaxy install otakup0pe.edgeos
许可证
mit
下载
83
拥有者
Just another freak in the freak kingdom.