При установке создан пользователь oxidized
Лог history
sudo add-apt-repository universe
sudo apt-get install ruby ruby-dev libsqlite3-dev libssl-dev pkg-config cmake libssh2-1-dev libicu-dev zlib1g-dev g++
sudo gem install oxidized oxidized-script oxidized-web
sudo apt install git
git config --global user.name "oxidized"
git config --global user.email "oxidized@MYDOMAIN.ru"
git init oxidized.git
oxidized
sudo nano /home/oxidized/.config/oxidized/router.db
oxidized
nano ~/.config/oxidized/config
oxidized
sudo nano /home/oxidized/.config/oxidized/router.db
oxidized
sudo reboot
sudo apt install mc
sudo mc
oxidized
sudo cp /var/lib/gems/2.5.0/gems/oxidized-0.28.0/extra/oxidized.service /lib/systemd/system/
sudo cp /var/lib/gems/2.5.0/gems/oxidized-0.28.0/extra/oxidized.init.d /etc/init.d/oxidized
sudo systemctl enable oxidized.service
sudo systemctl enable oxidized
sudo systemctl enable oxidized.service
sudo systemctl start oxidized
sudo a2enmod proxy
sudo apt install apache2
sudo a2enmod proxy
sudo systemctl restart apache2
sudo a2enmod proxy_http
sudo systemctl restart apache2
sudo mc
sudo nano /etc/apache2/sites-available/oxidized.conf
sudo a2ensite oxidized.conf
sudo systemctl reload apache2
sudo htpasswd -c /etc/apache2/.htpasswd oxidized
sudo systemctl reload apache2
sudo systemctl start apache2
sudo systemctl stop apache2
sudo systemctl start apache2
systemctl status apache2.service
sudo nano /etc/apache2/sites-available/oxidized.conf
sudo systemctl start apache2
sudo systemctl reload apache2
sudo a2ensite oxidized.conf
sudo systemctl start apache2.service
sudo
sudo reboot
oxidized
netstat --listening -t -n | grep 8888
sudo mc
oxidized
sudo systemctl start apache2.service
oxidized
netstat --listening -t -n | grep 8888
sudo systemctl start apache2.service
sudo systemctl reload apache2
oxidized
sudo a2ensite oxidized.conf
sudo mc
sudo systemctl reload apache2
oxidized
sudo mc
oxidized
sudo systemctl reload apache2
oxidized
sudo systemctl reload apache2.service
sudo systemctl reload apache2
oxidized
sudo mc
oxidized
sudo systemctl reload apache2
sudo systemctl enable apache2
sudo systemctl reload apache2
sudo systemctl start apache2
oxidized
sudo mc
sudo systemctl reload apache2
netstat --listening -t -n | grep 8888
sudo mc
sudo systemctl stop apache2
sudo systemctl start apache2
oxidized
sudo reboot
Файл ~/.config/oxidized/config
---
username: oidizedlogin
password: oxidizedpassword
model: routeros
resolve_dns: true
interval: 3600
use_syslog: false
debug: false
threads: 30
timeout: 140
retries: 3
prompt: !ruby/regexp /^([\w.@-]+[#>]\s?)$/
rest: 127.0.0.1:8888
next_adds_job: false
remove_secret: true
vars: {}
groups: {}
models: {}
pid: "/home/oxidized/.config/oxidized/pid"
log: "/home/oxidized/.config/oxidized/log"
crash:
directory: "/home/oxidized/.config/oxidized/crashes"
hostnames: false
stats:
history_size: 10
input:
default: ssh, telnet
debug: false
ssh:
secure: false
ftp:
passive: true
utf8_encoded: true
output:
default: git
git:
user: oxidized
email: oxidized@MYDOMAIN.ru
repo: "/home/oxidized/.config/oxidized/devices.git"
source:
default: csv
csv:
file: "/home/oxidized/.config/oxidized/router.db"
delimiter: !ruby/regexp /:/
map:
name: 0
model: 1
group: 2
ip: 3
port: 4
username: 5
password: 6
gpg: false
model_map:
juniper: junos
cisco: ios
Файл ~/.config/oxidized/router.db
switch1:comware:Office:10.1.1.2
switch2:procurve:Office:10.1.1.3:21:login:password
wifi-cisco:aireos:Office:10.1.1.4
Файл /etc/apache2/ports.conf
#Listen 80
Listen 10.1.1.10:8888
<IfModule ssl_module>
Listen 443
</IfModule>
<IfModule mod_gnutls.c>
Listen 443
</IfModule>
Файл /etc/apache2/site-available/oxidized.conf
<VirtualHost *:8888>
ServerAdmin admin@MYDOMAIN.ru
ServerName oxidized.MYDOMAIN.ru
ServerAlias oxidized
<Location />
AuthType Basic
AuthName "Username and Password Required"
AuthUserFile /etc/apache2/.htpasswd
Require valid-user
</Location>
ProxyPass / http://127.0.0.1:8888/
ProxyPassReverse / http://127.0.0.1:8888/
ErrorLog /var/log/apache2/oxidized_error.log
CustomLog /var/log/apache2/oxidized_access.log combined
</VirtualHost>