Difference between revisions of "VyOS"
From HackerNet
Helikopter (talk | contribs) |
Helikopter (talk | contribs) |
||
Line 18: | Line 18: | ||
'''SSH''' | '''SSH''' | ||
set service ssh port '22' | set service ssh port '22' | ||
+ | |||
+ | '''System''' | ||
+ | set system domain-name hackernet.se | ||
+ | set system host-name vyos01 | ||
+ | set system name-server 208.67.222.222 | ||
+ | set system name-server 208.67.220.220 | ||
+ | set system time-zone Europe/Stockholm | ||
'''Interface''' | '''Interface''' | ||
Line 29: | Line 36: | ||
Verify | Verify | ||
show ip route | show ip route | ||
+ | |||
+ | '''NAT'''<br/> | ||
+ | Overload/PAT | ||
+ | set nat source rule 10 outbound-interface eth0 | ||
+ | set nat source rule 10 source address 10.0.0.0/24 | ||
+ | set nat source rule 10 translation address masquerade | ||
+ | |||
+ | Live logging | ||
+ | monitor log | ||
[[Category:Network]] | [[Category:Network]] |
Revision as of 22:05, 13 March 2016
VyOS är ett Linux-baserat network operating system med mjukvaru-routing, firewall och VPN funktionalitet. Det är en community fork av Vyatta Core och bygger på Debian och Quagga routing engine.
Installation
Get iso, skapa vm, mount iso. PW: vyos
vyos@vyos:~$ install image
Konfiguration
Byt till konfigurationsläge.
configure
Ändringar måste commitas.
commit save
Show run
show conf
Show run kommandon
show configuration commands
SSH
set service ssh port '22'
System
set system domain-name hackernet.se set system host-name vyos01 set system name-server 208.67.222.222 set system name-server 208.67.220.220 set system time-zone Europe/Stockholm
Interface
configure set interfaces ethernet eth0 address '10.0.0.1/24' set interfaces ethernet eth0 description 'INSIDE' show interfaces
Default route
set protocols static route 0.0.0.0/0 next-hop 10.0.10.1 distance '1'
Verify
show ip route
NAT
Overload/PAT
set nat source rule 10 outbound-interface eth0 set nat source rule 10 source address 10.0.0.0/24 set nat source rule 10 translation address masquerade
Live logging
monitor log