Syslog Organization - nicolas-tullio/Tech-Journal GitHub Wiki
Changing default VyOS password:
set system login user vyos authentication plaintext-password [password]
Keybased SSH Connections
- Install SSH on both devices
- Permanently allow SSH through firewall on both devices (port 22)
-
ssh username@IP_ADDRESS
- Reply yes to the fingerprint
How to log authpriv messages
- Add the following to the /etc/rsyslog.d/sec350 file on the rsyslog client:
authpriv.* @IP_OF_LOG_SYSTEM
- This can be tested by connecting via ssh and failing a password attempt
Drop in Rsyslog config
Drop a custom rsyslog config file onto the log machine here:
/etc/rsyslog.d/sec350.conf
Forward logs from VyOS
In configure mode in VyOS, enter the following:
set system syslog host IP_OF_LOG_SYSTEM facility authpriv level info
- Remember to commit and save