-
Notifications
You must be signed in to change notification settings - Fork 0
/
vsrx.conf
233 lines (233 loc) · 5.32 KB
/
vsrx.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
## Last commit: 2019-03-10 11:07:48 EDT by root
version 15.1X49-D130.6;
system {
time-zone America/New_York;
root-authentication {
encrypted-password "$5$uz0Xg/X3$Am3z/0v2sz6kcaejR3XZ7Dm2qz9wpbtYrGGn/mXb.ZB"; ## SECRET-DATA
}
services {
ssh;
}
syslog {
user * {
any emergency;
}
file messages {
any any;
authorization info;
}
file interactive-commands {
interactive-commands any;
}
}
license {
autoupdate {
url https://ae1.juniper.net/junos/key_retrieval;
}
}
}
security {
log {
mode event;
report;
}
address-book {
global {
address dns1 203.0.113.2/32;
address-set dns-servers {
address dns1;
}
}
}
screen {
ids-option untrust-screen {
icmp {
ping-death;
}
ip {
source-route-option;
tear-drop;
}
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;
}
}
}
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 trust to-zone servers {
policy permit-dns {
match {
source-address any;
destination-address dns-servers;
application junos-dns-udp;
}
then {
permit;
}
}
}
from-zone servers to-zone untrust {
policy permit-from-dns-servers {
match {
source-address dns-servers;
destination-address any;
application [ junos-http junos-https junos-dns-udp junos-dns-tcp junos-ntp ];
}
then {
permit;
}
}
}
global {
policy deny-all-log {
match {
source-address any;
destination-address any;
application any;
}
then {
deny;
log {
session-init;
session-close;
}
}
}
}
}
zones {
security-zone trust {
tcp-rst;
host-inbound-traffic {
system-services {
any-service;
}
protocols {
ospf;
bgp;
}
}
interfaces {
ge-0/0/0.0;
lo0.0;
}
}
security-zone untrust {
screen untrust-screen;
interfaces {
ge-0/0/2.0 {
host-inbound-traffic {
system-services {
dhcp;
}
}
}
}
}
security-zone servers {
interfaces {
ge-0/0/1.0;
}
}
}
}
interfaces {
ge-0/0/0 {
unit 0 {
family inet {
address 198.51.100.34/30;
}
}
}
ge-0/0/1 {
unit 0 {
family inet {
address 203.0.113.1/24;
}
}
}
ge-0/0/2 {
unit 0 {
family inet {
address 192.168.255.2/24;
}
}
}
fxp0 {
unit 0;
}
lo0 {
unit 0 {
family inet {
address 198.51.100.6/32;
}
}
}
}
routing-options {
static {
route 0.0.0.0/0 next-hop 192.168.255.1;
}
router-id 198.51.100.6;
autonomous-system 65000;
}
protocols {
bgp {
group core {
neighbor 198.51.100.1 {
peer-as 65000;
}
}
}
ospf {
export default-originate;
area 0.0.0.0 {
interface lo0.0 {
passive;
}
interface ge-0/0/0.0 {
interface-type p2p;
}
}
}
}
policy-options {
policy-statement default-originate {
from {
route-filter 0.0.0.0/0 exact;
}
then accept;
}
}