This repository has been archived on 2024-04-29. You can view files and clone it, but cannot push or open issues or pull requests.
vyos-config/config-parts/system.sh

29 lines
1.2 KiB
Bash
Raw Normal View History

2023-03-29 13:30:45 -05:00
#!/bin/vbash
set system domain-name 'jahanson.tech'
set system host-name 'gateway'
set system ipv6 disable-forwarding
set system login user vyos authentication public-keys ios key 'AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBPHFQ3hDjjrKsecn3jmSWYlRXy4IJCrepgU1HaIV5VcmB3mUFmIZ/pCZnPmIG/Gbuqf1PP2FQDmHMX5t0hTYG9A='
set system login user vyos authentication public-keys ios type 'ecdsa-sha2-nistp256'
2023-03-29 13:30:45 -05:00
set system login user vyos authentication public-keys personal key 'AAAAC3NzaC1lZDI1NTE5AAAAIBsUe5YF5z8vGcEYtQX7AAiw2rJygGf2l7xxr8nZZa7w'
set system login user vyos authentication public-keys personal type 'ssh-ed25519'
set system name-server '1.1.1.1'
set system sysctl parameter kernel.pty.max value '24000'
# Sent to vector syslog server
2023-07-29 06:50:41 -05:00
set system syslog global facility all level info
2023-05-11 09:47:08 -05:00
set system syslog host 10.45.0.2 facility kern level 'warning'
2023-05-25 11:11:51 -05:00
set system syslog host 10.45.0.2 protocol 'tcp'
2023-05-11 09:47:08 -05:00
set system syslog host 10.45.0.2 port '6001'
2023-07-29 06:50:41 -05:00
set system syslog host 10.45.0.2 format 'octet-counted'
2023-03-29 13:30:45 -05:00
# Custom backup
set system task-scheduler task backup-config crontab-spec '30 0 * * *'
set system task-scheduler task backup-config executable path '/config/scripts/custom-config-backup.sh'
2023-03-29 13:30:45 -05:00
set system time-zone 'America/Chicago'