VyOS - tmansfield42/Tech-Journal GitHub Wiki

Vyos is an operating system that works a little different than an OS like pfSense.

Basic Commands

Edit configuration: configure

Commit config: commit

Save config: save

Exit config: exit

Make changes in config (ex. hostname): set system host-name fw01-michael

Delete changes in config (ex. IP address): delete interface ethernet eth0 address 192.168.1.2/24

Important commands to remember

Setting gateway: set protocols route 0.0.0.0/0 next-hop 10.0.17.2

Setting DNS: set system name-server 10.0.17.2

Configure NAT & DNS forwarding:

set nat source rule 10 description "NAT FROM DMZ to WAN"

set nat source rule 10 outbound-interface eth0

set nat source rule 10 source address 172.16.50.0/29

set nat source rule 10 translation address masquerade