ne:lv_pronesy
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
| ne:lv_pronesy [2022/02/24 06:50] – angelegt admin | ne:lv_pronesy [2025/01/14 08:29] (aktuell) – [Inhalt] admin | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| - | ====== Projekt | + | ====== Projekt |
| + | ===== Automatische Konfiguration eines Labor-Routers mit Ansible und TACACS sowie automtische Überprüfung der Konfiguration mit PyATS ===== | ||
| + | ==== Organisation ==== | ||
| - | ==== Gruppenarbeit | + | === Gruppenarbeit === |
| * [[https:// | * [[https:// | ||
| - | + | === Tools === | |
| - | ==== Tools ==== | + | |
| * https:// | * https:// | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ==== Inhalt ==== | ||
| + | |||
| + | === TACACS === | ||
| + | <cli> | ||
| + | aaa new-model | ||
| + | ! | ||
| + | aaa authentication login default group tacacs+ local | ||
| + | aaa authentication login CONSOLE none | ||
| + | aaa authorization config-commands | ||
| + | aaa authorization exec default group tacacs+ local | ||
| + | aaa authorization commands 15 default group tacacs+ local | ||
| + | ! | ||
| + | line con 0 | ||
| + | login authentication CONSOLE | ||
| + | </ | ||
| + | |||
| + | Konfiguration: | ||
| + | <cli> | ||
| + | # The TACASC shared-secret | ||
| + | key = labtacacskey | ||
| + | |||
| + | # A full admin user called ' | ||
| + | user = tacacs { | ||
| + | # allows everything that is not forbidden | ||
| + | default service = permit | ||
| + | |||
| + | # Create a DES encrypted password ' | ||
| + | login = des Oy6FGC2LNE6ao | ||
| + | # Create a cleartext password | ||
| + | #login = cleartext cisco | ||
| + | |||
| + | # Set priv 15 for user | ||
| + | service = exec { | ||
| + | priv-lvl = 15 | ||
| + | } | ||
| + | |||
| + | cmd = show { | ||
| + | # deny show running-config, | ||
| + | deny running-config | ||
| + | } | ||
| + | cmd = interface { | ||
| + | deny " | ||
| + | permit " | ||
| + | permit " | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | == TACACS Server == | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | |||
| + | |||
| + | |||
| + | Tacacs starten: | ||
| + | <code bash> | ||
| + | sudo tac_plus -C / | ||
| + | </ | ||
| + | |||
| + | Tacacs beenden (vor Neustart): | ||
| + | <code bash> | ||
| + | ps -aux | grep tac | ||
| + | sudo killall tac_plus | ||
| + | </ | ||
| + | |||
| + | == Ansible auf Raspberry-Pi == | ||
| + | |||
| + | Paramiko installieren (ansible-pylibssh ist nicht in den Paketquellen): | ||
| + | <code bash> | ||
| + | apt install python3-paramiko | ||
| + | </ | ||
| + | |||
| + | <code bash> | ||
| + | ansible-playbook -i inventory backup_router.yml | ||
| + | </ | ||
| + | |||
| + | == Links == | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
ne/lv_pronesy.1645685406.txt.gz · Zuletzt geändert: von admin
