News for hackers. Stuff that matters.
Re:VyOS From Scratch – Edition 1 (set up your own router) by jstanley on Friday July 28, 2023 @04:57AM (#36904451)
Might be worth adding a paragraph about what VyOS is, maybe not for the target audience but certainly for HN.

https://vyos.io/

The VyOS website says:

> Democratizing how we access networks through a universal Router and Open source software.

> Our vision at VyOS is to dramatically change how we access networks so that we can all build the solutions we always dreamed of, without restrictions, limitations, or prohibitive costs.

But I'm still kind of none the wiser. Does this thing use Linux or something else?

Re:VyOS From Scratch – Edition 1 (set up your own router) by rnhmjoj on Friday July 28, 2023 @05:07AM (#36904519)
It's a fork vyatta[1], the same system used by Ubiquiti for EdgeOS. Yes, it's Debian with a declarative configuration system. It works more or less similarly to NixOS, if you know about that: basically it uses a bunch of perl scripts to install and set up software from a single unified configuration file, hiding all the implementation details.

[1]: https://en.wikipedia.org/wiki/Vyatta

Re:VyOS From Scratch – Edition 1 (set up your own router) by sebazzz on Friday July 28, 2023 @06:34AM (#36905018)
And it works great because your router starts from a read-only image, then executes the scripts and applies the configuration. You can easily roll back and forward configuration and firmware versions.
Re:VyOS From Scratch – Edition 1 (set up your own router) by LeBit on Friday July 28, 2023 @07:36AM (#36905429)
I don't think they use Perl anymore. They have been moving to Python.
Re:VyOS From Scratch – Edition 1 (set up your own router) by nunez on Friday July 28, 2023 @10:22AM (#36907212)
Had no idea vyatta is what Ubiquiti uses. Very cool.
Re:VyOS From Scratch – Edition 1 (set up your own router) by paradox460 on Friday July 28, 2023 @04:57PM (#36913217)
Thats only on EdgeOS though. UbiquitiOS uses a different system, built around Podman and Debian
Re:VyOS From Scratch – Edition 1 (set up your own router) by minimaul on Friday July 28, 2023 @05:00AM (#36904470)
Yes - it's a Debian Linux based router distro that is at least partially modelled after Juniper's configuration style.

edit: used to be a maintainer for a short while :)

Re:VyOS From Scratch – Edition 1 (set up your own router) by yrro on Friday July 28, 2023 @07:05AM (#36905203)
It's a Network Operating System for configuring routers & switches (implemented on top of Debian). This means:

* You can SSH in and configure it like you would a managed switch or router. There's a single object that models all of the device's configuration, when you commit it a bunch of scripts activate and actaully apply the configuration to the running system.

* Deployments are image based, you can roll back to older images etc.

* You don't need to look at any of the system's underlying configuration files or use any of the normal Linux commands to examine and manipulate the state of the system (the commands are still there for convenience of course). You don't even need to be aware that you're really using a bunch of custom bash functions to examine and manipulate the state of the system.

Re:VyOS From Scratch – Edition 1 (set up your own router) by Arnavion on Friday July 28, 2023 @11:59AM (#36908819)
It's a Debian 8 base with a lot of its own custom packages. The homepage has an FAQ that tries to reassure you that being based on Debian 8 is not a problem. Whether that convinces you or not is up to you, of course.

I personally use regular Debian 12 on my router without problems. It also has "declarative config" since all the configuration, firewall rules, etc are a bunch of config files that I can scp / ansible over any time.