-
Notifications
You must be signed in to change notification settings - Fork 563
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding tests and vagrantfile for JunOS
- Loading branch information
Showing
9 changed files
with
121 additions
and
310 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,27 @@ | ||
version 12.1X47-D20.7; | ||
system { | ||
host-name junos-unittest; | ||
host-name vsrx; | ||
root-authentication { | ||
encrypted-password "$1$7DeoJKZ/$ahBWi9d.0oV4SJtcK7bst0"; ## SECRET-DATA | ||
encrypted-password "$1$5MhDFyrI$NBBMndW1POqbN.0QEA4z0."; ## SECRET-DATA | ||
ssh-rsa "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDGnRjHTifULSGZiJA53JQRYuUgqXFJUq74Ste+fY1VBjYPqrBPNWWCKxUZoiVktUxPw1htTQIqanGBAW4fuzum/s4ZbTwswTRkZYi96RKSx6RK8zlwoLKwKhCRrFJKijcKn0ygZWOrcS3LPSr64tjsJJmNdgmNX8QFP7IHVWFFSv2HRIYYc+ibtunwH30RzAsyPeLOTFgRihlnyarO6T6EJsihudMWbHyzQY6DeDvIqZ3QwpcFhrNkVq8hm1D3ozqOEk9IRetEc+DV0g5EGRXQZcQi8PraT8COR8qFijzUBXO2mjVW183JgtfPkkxiikzBtJD5rqj5ymSJHUXNdxzn vagrant"; ## SECRET-DATA | ||
} | ||
login { | ||
user dbarroso { | ||
user vagrant { | ||
uid 2000; | ||
class super-user; | ||
authentication { | ||
encrypted-password "$1$EHPQTCAm$j.O6idmx8GjL1CH5dNoSM/"; ## SECRET-DATA | ||
ssh-rsa "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDZNdIq1KbGzaaKjQLwVmhYbZZ2lNsVbqJqruEF7DaKfL1+0iMMwR4bx8fyzjweSTWG2k9zx9u9O1q3QAA9lsWkzuBYOch4iZIZauwI8R+GNRM7eUPyzfQ6jOkcdTK+1pRFx5s5QWAQqmsG78c+myWwMTOGpRKe46/ltw19xDIebivHffeeGV31zfSywoEWGvWR6BzkEnW2rBx0xzGIYQR8URRQj6Jjr5Qgjfqk1veay57BDPQ0iiejMxGZ0bw10gkOvAczBNYaLc7aKdmjFTfdp53A1suGmu8ZNyFFRDaQdaGMdpmFm5FDSD7NHNm5Mt2yJG9KG8vUMgDUUBxruTN1 [email protected]"; ## SECRET-DATA | ||
encrypted-password "$1$KMQ6fIje$STNZNzDwjAb46xNonInGq/"; ## SECRET-DATA | ||
ssh-rsa "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6NF8iallvQVp22WDkTkyrtvp9eWW6A8YVr+kz4TjGYe7gHzIw+niNltGEFHzD8+v1I2YJ6oXevct1YeS0o9HZyN1Q9qgCgzUFtdOKLv6IedplqoPkcmF0aYet2PkEDo3MlTBckFXPITAMzF8dJSIFo9D8HfdOV0IAdx4O7PtixWKn5y2hMNG0zQPyUecp4pzC6kivAIhyfHilFR61RGL+GPXQ2MWZWFYbAGjyiYJnAmCP3NOTd0jMZEnDkbUvxhMmBYSdETk1rRgm+R4LOzFUGaHqHDLKLX+FIPKcF96hrucXzcWyLbIbEgE98OHlnVYCzRdK8jlqm8tehUc9c9WhQ== vagrant insecure public key"; ## SECRET-DATA | ||
} | ||
} | ||
} | ||
services { | ||
ssh; | ||
ssh { | ||
root-login allow; | ||
} | ||
netconf { | ||
ssh; | ||
} | ||
web-management { | ||
http { | ||
interface ge-0/0/0.0; | ||
} | ||
} | ||
} | ||
syslog { | ||
user * { | ||
|
@@ -46,98 +44,29 @@ system { | |
interfaces { | ||
ge-0/0/0 { | ||
unit 0 { | ||
family inet { | ||
address 192.168.76.11/24; | ||
} | ||
family inet { | ||
address 192.168.56.203/24; | ||
} | ||
} | ||
} | ||
ge-0/0/1 { | ||
unit 0; | ||
} | ||
} | ||
protocols { | ||
lldp { | ||
interface all; | ||
} | ||
} | ||
security { | ||
screen { | ||
ids-option untrust-screen { | ||
icmp { | ||
ping-death; | ||
} | ||
ip { | ||
source-route-option; | ||
tear-drop; | ||
forwarding-options { | ||
family { | ||
inet6 { | ||
mode packet-based; | ||
} | ||
tcp { | ||
syn-flood { | ||
alarm-threshold 1024; | ||
attack-threshold 200; | ||
source-threshold 1024; | ||
destination-threshold 2048; | ||
queue-size 2000; ## Warning: 'queue-size' is deprecated | ||
timeout 20; | ||
} | ||
land; | ||
mpls { | ||
mode packet-based; | ||
} | ||
} | ||
} | ||
policies { | ||
from-zone trust to-zone trust { | ||
policy default-permit { | ||
match { | ||
source-address any; | ||
destination-address any; | ||
application any; | ||
} | ||
then { | ||
permit; | ||
} | ||
} | ||
} | ||
from-zone trust to-zone untrust { | ||
policy default-permit { | ||
match { | ||
source-address any; | ||
destination-address any; | ||
application any; | ||
} | ||
then { | ||
permit; | ||
} | ||
} | ||
} | ||
from-zone untrust to-zone trust { | ||
policy default-deny { | ||
match { | ||
source-address any; | ||
destination-address any; | ||
application any; | ||
} | ||
then { | ||
permit; | ||
} | ||
} | ||
} | ||
} | ||
zones { | ||
security-zone trust { | ||
tcp-rst; | ||
} | ||
security-zone untrust { | ||
screen untrust-screen; | ||
interfaces { | ||
ge-0/0/0.0 { | ||
host-inbound-traffic { | ||
system-services { | ||
http; | ||
https; | ||
ssh; | ||
telnet; | ||
dhcp; | ||
netconf; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,7 @@ | ||
|
||
[edit system] | ||
- host-name junos-CHANGED; | ||
+ host-name junos-unittest; | ||
[edit interfaces] | ||
- ge-0/0/1 { | ||
- unit 0 { | ||
- family inet { | ||
- address 192.168.77.11/24; | ||
- } | ||
- } | ||
- } | ||
+ host-name vsrx; | ||
[edit interfaces ge-0/0/1 unit 0] | ||
- family inet { | ||
- address 192.168.77.11/24; | ||
- } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,27 @@ | ||
version 12.1X47-D20.7; | ||
system { | ||
host-name junos-CHANGED; | ||
host-name vsrx; | ||
root-authentication { | ||
encrypted-password "$1$7DeoJKZ/$ahBWi9d.0oV4SJtcK7bst0"; ## SECRET-DATA | ||
encrypted-password "$1$5MhDFyrI$NBBMndW1POqbN.0QEA4z0."; ## SECRET-DATA | ||
ssh-rsa "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDGnRjHTifULSGZiJA53JQRYuUgqXFJUq74Ste+fY1VBjYPqrBPNWWCKxUZoiVktUxPw1htTQIqanGBAW4fuzum/s4ZbTwswTRkZYi96RKSx6RK8zlwoLKwKhCRrFJKijcKn0ygZWOrcS3LPSr64tjsJJmNdgmNX8QFP7IHVWFFSv2HRIYYc+ibtunwH30RzAsyPeLOTFgRihlnyarO6T6EJsihudMWbHyzQY6DeDvIqZ3QwpcFhrNkVq8hm1D3ozqOEk9IRetEc+DV0g5EGRXQZcQi8PraT8COR8qFijzUBXO2mjVW183JgtfPkkxiikzBtJD5rqj5ymSJHUXNdxzn vagrant"; ## SECRET-DATA | ||
} | ||
login { | ||
user dbarroso { | ||
user vagrant { | ||
uid 2000; | ||
class super-user; | ||
authentication { | ||
encrypted-password "$1$EHPQTCAm$j.O6idmx8GjL1CH5dNoSM/"; ## SECRET-DATA | ||
ssh-rsa "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDZNdIq1KbGzaaKjQLwVmhYbZZ2lNsVbqJqruEF7DaKfL1+0iMMwR4bx8fyzjweSTWG2k9zx9u9O1q3QAA9lsWkzuBYOch4iZIZauwI8R+GNRM7eUPyzfQ6jOkcdTK+1pRFx5s5QWAQqmsG78c+myWwMTOGpRKe46/ltw19xDIebivHffeeGV31zfSywoEWGvWR6BzkEnW2rBx0xzGIYQR8URRQj6Jjr5Qgjfqk1veay57BDPQ0iiejMxGZ0bw10gkOvAczBNYaLc7aKdmjFTfdp53A1suGmu8ZNyFFRDaQdaGMdpmFm5FDSD7NHNm5Mt2yJG9KG8vUMgDUUBxruTN1 [email protected]"; ## SECRET-DATA | ||
encrypted-password "$1$KMQ6fIje$STNZNzDwjAb46xNonInGq/"; ## SECRET-DATA | ||
ssh-rsa "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6NF8iallvQVp22WDkTkyrtvp9eWW6A8YVr+kz4TjGYe7gHzIw+niNltGEFHzD8+v1I2YJ6oXevct1YeS0o9HZyN1Q9qgCgzUFtdOKLv6IedplqoPkcmF0aYet2PkEDo3MlTBckFXPITAMzF8dJSIFo9D8HfdOV0IAdx4O7PtixWKn5y2hMNG0zQPyUecp4pzC6kivAIhyfHilFR61RGL+GPXQ2MWZWFYbAGjyiYJnAmCP3NOTd0jMZEnDkbUvxhMmBYSdETk1rRgm+R4LOzFUGaHqHDLKLX+FIPKcF96hrucXzcWyLbIbEgE98OHlnVYCzRdK8jlqm8tehUc9c9WhQ== vagrant insecure public key"; ## SECRET-DATA | ||
} | ||
} | ||
} | ||
services { | ||
ssh; | ||
ssh { | ||
root-login allow; | ||
} | ||
netconf { | ||
ssh; | ||
} | ||
web-management { | ||
http { | ||
interface ge-0/0/0.0; | ||
} | ||
} | ||
} | ||
syslog { | ||
user * { | ||
|
@@ -46,9 +44,9 @@ system { | |
interfaces { | ||
ge-0/0/0 { | ||
unit 0 { | ||
family inet { | ||
address 192.168.76.11/24; | ||
} | ||
family inet { | ||
address 192.168.56.203/24; | ||
} | ||
} | ||
} | ||
ge-0/0/1 { | ||
|
@@ -58,93 +56,24 @@ interfaces { | |
} | ||
} | ||
} | ||
ge-0/0/1 { | ||
unit 0; | ||
} | ||
} | ||
protocols { | ||
lldp { | ||
interface all; | ||
} | ||
} | ||
security { | ||
screen { | ||
ids-option untrust-screen { | ||
icmp { | ||
ping-death; | ||
} | ||
ip { | ||
source-route-option; | ||
tear-drop; | ||
forwarding-options { | ||
family { | ||
inet6 { | ||
mode packet-based; | ||
} | ||
tcp { | ||
syn-flood { | ||
alarm-threshold 1024; | ||
attack-threshold 200; | ||
source-threshold 1024; | ||
destination-threshold 2048; | ||
queue-size 2000; ## Warning: 'queue-size' is deprecated | ||
timeout 20; | ||
} | ||
land; | ||
mpls { | ||
mode packet-based; | ||
} | ||
} | ||
} | ||
policies { | ||
from-zone trust to-zone trust { | ||
policy default-permit { | ||
match { | ||
source-address any; | ||
destination-address any; | ||
application any; | ||
} | ||
then { | ||
permit; | ||
} | ||
} | ||
} | ||
from-zone trust to-zone untrust { | ||
policy default-permit { | ||
match { | ||
source-address any; | ||
destination-address any; | ||
application any; | ||
} | ||
then { | ||
permit; | ||
} | ||
} | ||
} | ||
from-zone untrust to-zone trust { | ||
policy default-deny { | ||
match { | ||
source-address any; | ||
destination-address any; | ||
application any; | ||
} | ||
then { | ||
permit; | ||
} | ||
} | ||
} | ||
} | ||
zones { | ||
security-zone trust { | ||
tcp-rst; | ||
} | ||
security-zone untrust { | ||
screen untrust-screen; | ||
interfaces { | ||
ge-0/0/0.0 { | ||
host-inbound-traffic { | ||
system-services { | ||
http; | ||
https; | ||
ssh; | ||
telnet; | ||
dhcp; | ||
netconf; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,4 @@ | ||
|
||
[edit system] | ||
- host-name junos-unittest; | ||
+ host-name junos-CHANGED; | ||
[edit interfaces] | ||
+ ge-0/0/1 { | ||
+ unit 0 { | ||
+ family inet { | ||
+ address 192.168.77.11/24; | ||
+ } | ||
+ } | ||
+ } | ||
[edit interfaces ge-0/0/1 unit 0] | ||
+ family inet { | ||
+ address 192.168.77.11/24; | ||
+ } |
Oops, something went wrong.