How to Print Firewall Commands Config - jwells24/Tech-Journal GitHub Wiki

How to Print Firewall Commands and Get them to Github (VYOS)

  • In order to easily export the current commands used to build the firewall, we first need to SSH into the VYOS Router of choice that contains the firewall. This command and process is specifically for VYOS. Once we SSH into the router from a WINDOWS machine, we use the command below to print out the commands.

  • show configuration commands | grep -v "syslog global|ntp|login|console|config|hw-id|loopback|conntrack"

  • Now, copy this output to a text file on the Windows Machine, and upload it to the Github Repository using the web interface of Github.