VyOS: A Router Operating System With a Real CLI
VyOS is a router rather than a Linux box you configured as one, and the difference is the configuration model.
Config as a transaction
The thing that distinguishes VyOS from assembling nftables and systemd-networkd yourself is that configuration is staged, committed and versioned.
configure
set interfaces ethernet eth0 address 10.0.0.1/24
compare
commit-confirm 5
save
commit-confirm applies the change and reverts it automatically unless you confirm within the timeout. On a remote router, that single feature is the difference between a mistake and a site visit. Our systemd-networkd guide notes netplan’s try as the nearest equivalent elsewhere.
Configuration is a single tree, so routing, firewall, NAT, VPN and DHCP are expressed in one syntax rather than five config file formats.
What it replaces
Commercial router and firewall appliances, and the comparison is with pfSense and OPNsense more than with a plain Linux install.
The split is interface philosophy. pfSense and OPNsense are web-first, which suits a firewall someone administers by clicking. VyOS is CLI-first and scriptable, which suits routers managed by configuration management and people who think in terms of set commands.
If you have operated commercial network gear, VyOS will feel familiar in a way the web-based options do not.
Capabilities
BGP, OSPF, VRRP, policy routing, VXLAN, WireGuard, IPsec, OpenVPN, DHCP, DNS forwarding, QoS, VRF. Our VLANs and bridges guide covers the underlying Linux constructs it is driving, and our WireGuard guide covers that tunnel type specifically.
The release situation
Worth knowing before you plan around it. VyOS produces LTS releases available to subscribers and contributors, with freely available rolling release images built from current development.
The rolling images are genuinely usable and they are development builds. For production, the licensing of the stable stream is something to read carefully rather than assume, and our licences guide covers why source-available arrangements differ from open source.
Operational caution
save after commit, or the configuration is lost on reboot. That catches everyone once.
License
VyOS is released under the GNU General Public License v2, with image distribution terms that differ between the rolling and LTS streams.