-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsample_01.ios
More file actions
452 lines (450 loc) · 11.2 KB
/
sample_01.ios
File metadata and controls
452 lines (450 loc) · 11.2 KB
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
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
!
version 12.4
service nagle
no service pad
service tcp-keepalives-in
service tcp-keepalives-out
service timestamps debug datetime msec localtime show-timezone
service timestamps log datetime msec localtime show-timezone
service password-encryption
service internal
!
hostname Foo
!
boot-start-marker
boot-end-marker
!
security authentication failure rate 4 log
security passwords min-length 6
logging snmp-authfail
logging buffered 65535 debugging
logging rate-limit 50
no logging console guaranteed
enable secret 5 $1$Q0Zl$LN7ONybETL5LJZF1
!
spd headroom 65535
aaa new-model
!
!
aaa authentication login default local
aaa authentication login CONSOLE none
aaa authorization console
aaa authorization exec default local none
aaa authorization exec CONSOLE none
!
aaa session-id common
clock timezone MST -7
clock summer-time MDT recurring
no network-clock-participate slot 1
no network-clock-participate wic 0
no ip source-route
no ip gratuitous-arps
ip wccp version 1
ip wccp web-cache redirect-list INTERNAL_NETWORKS
ip cef
ip cef accounting per-prefix load-balance-hash
!
!
no ip dhcp use vrf connected
ip dhcp excluded-address 172.16.1.1 172.16.1.50
!
ip dhcp pool HOME_LAN
network 172.16.1.0 255.255.255.0
default-router 172.16.1.1
domain-name foo.com
dns-server 172.16.1.5
lease 2
!
!
no ip bootp server
ip domain name foo.com
ip name-server 172.16.1.5
ip inspect alert-off
ip inspect max-incomplete low 400
ip inspect max-incomplete high 400
ip inspect dns-timeout 8
ip inspect tcp idle-time 7200
ip inspect tcp finwait-time 8
ip inspect tcp max-incomplete host 100 block-time 1
ip inspect name EXT_OUT fragment maximum 256 timeout 15
ip inspect name EXT_OUT http java-list 11 alert on audit-trail off
ip inspect name EXT_OUT ftp alert on audit-trail off
ip inspect name EXT_OUT tcp alert on audit-trail off
ip inspect name EXT_OUT udp alert on audit-trail off
ip inspect name EXT_OUT icmp alert on audit-trail off
ip inspect name EXT_OUT rtsp alert on audit-trail off
ip inspect name EXT_OUT sip alert on audit-trail off
ip inspect name EXT_OUT realaudio alert on audit-trail off
ip inspect name EXT_OUT aol alert on audit-trail off
ip inspect name EXT_OUT cddbp alert on audit-trail off
ip inspect name EXT_OUT ddns-v3 alert on audit-trail off
ip inspect name EXT_OUT dns alert on audit-trail off
ip inspect name EXT_OUT esmtp alert on audit-trail off
ip inspect name EXT_OUT ftps alert on audit-trail off
ip inspect name EXT_OUT https alert on audit-trail off
ip inspect name EXT_OUT ipass alert on audit-trail off
ip inspect name EXT_OUT isakmp alert on audit-trail off
ip inspect name EXT_OUT ntp alert on audit-trail off
ip inspect name EXT_OUT pop3 alert on audit-trail off
ip inspect name EXT_OUT pop3s alert on audit-trail off
ip inspect name EXT_OUT realsecure alert on audit-trail off
ip inspect name EXT_OUT snmp alert on audit-trail on
ip inspect name EXT_OUT ssh alert on audit-trail on
ip inspect name EXT_OUT ipsec-msft alert on audit-trail off
ip inspect name EXT_OUT_AUDIT fragment maximum 250 timeout 15
ip inspect name EXT_OUT_AUDIT http java-list 11 alert on audit-trail on
ip inspect name EXT_OUT_AUDIT smtp alert on audit-trail on
ip inspect name EXT_OUT_AUDIT ftp alert on audit-trail on
ip inspect name EXT_OUT_AUDIT tcp alert on audit-trail on
ip inspect name EXT_OUT_AUDIT udp alert on audit-trail on
ip inspect name EXT_OUT_AUDIT icmp alert on audit-trail on
ip ips name Internet
!
ip sla monitor 8
type echo protocol ipIcmpEcho 172.16.2.254
timeout 500
frequency 2
login block-for 30 attempts 5 within 15
vpdn enable
!
!
no ipv6 source-route
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
memory statistics history table 12
username ddclient password 7 107D3D232342041E3A
archive
log config
logging enable
hidekeys
path ftp://ns.foo.com//tftpboot/Foo-archive
!
!
ip tcp selective-ack
ip tcp timestamp
ip tcp window-size 65535
ip tcp queuemax 50
ip tcp synwait-time 10
ip tcp path-mtu-discovery
ip telnet tos E0
ip ftp username ftp
ip ftp password 7 107D3D232342041E3A
ip ssh time-out 30
!
class-map match-all IP_PREC_MEDIUM
match ip precedence 2 3 4 5
class-map match-all IP_PREC_HIGH
match ip precedence 6 7
class-map match-all TEST
class-map match-all TO_ATM
match access-group name NOT_INTERNAL
class-map match-any ALL
match any
!
!
policy-map EXTERNAL_CBWFQ
class IP_PREC_HIGH
priority percent 10
police cir percent 10
conform-action transmit
exceed-action drop
class IP_PREC_MEDIUM
bandwidth percent 50
queue-limit 100
class class-default
bandwidth percent 40
queue-limit 100
policy-map SHAPE_HEIR
class ALL
shape average 630000
service-policy EXTERNAL_CBWFQ
!
!
!
!
!
bba-group pppoe global
!
!
interface Loopback0
description SEE http://www.cymru.com/Documents/secure-ios-template.html
ip address 172.16.0.1 255.255.255.255
no ip redirects
no ip unreachables
no ip proxy-arp
!
interface Null0
no ip unreachables
!
interface ATM0/0
no ip address
no ip redirects
no ip unreachables
no ip proxy-arp
load-interval 30
carrier-delay msec 100
no atm ilmi-keepalive
bundle-enable
dsl operating-mode auto
max-reserved-bandwidth 100
hold-queue 500 in
!
interface ATM0/0.32 point-to-point
no ip redirects
no ip unreachables
no ip proxy-arp
ip accounting access-violations
pvc 0/32
vbr-nrt 704 704
dialer pool-member 1
protocol ppp dialer
!
!
interface FastEthernet0/0
ip address 172.16.2.1 255.255.255.0
ip access-group ETH0_0_IN in
ip access-group BLACKHOLE out
no ip unreachables
no ip proxy-arp
ip nat inside
ip virtual-reassembly
ip tcp adjust-mss 1452
load-interval 30
speed 100
full-duplex
no keepalive
no cdp log mismatch duplex
hold-queue 100 in
hold-queue 100 out
!
interface FastEthernet0/1
ip address 172.16.3.1 255.255.255.0
no ip unreachables
!
interface FastEthernet1/0
ip address 172.16.4.1 255.255.255.0
no ip unreachables
!
interface Virtual-Template1
no ip address
!
interface Dialer1
mtu 1492
bandwidth 800
ip address negotiated
ip access-group EXT_IN in
ip access-group EXT_OUT out
no ip redirects
no ip unreachables
no ip proxy-arp
ip nat outside
ip inspect EXT_OUT out
ip virtual-reassembly
encapsulation ppp
ip tcp adjust-mss 1460
load-interval 30
dialer pool 1
dialer-group 1
no cdp enable
ppp authentication chap pap callin optional
ppp chap hostname auser
ppp chap password 7 107D3D232342041E3A
ppp pap sent-username auser password 7 023530612D5319347A
max-reserved-bandwidth 100
service-policy output EXTERNAL_CBWFQ
hold-queue 500 out
!
router ospf 1
router-id 172.16.0.1
log-adjacency-changes
timers throttle spf 50 150 5000
network 172.16.0.1 0.0.0.0 area 0.0.0.0
network 172.16.2.0 0.0.0.255 area 0.0.0.0
network 172.16.3.0 0.0.0.255 area 0.0.0.0
network 172.16.4.0 0.0.0.255 area 0.0.0.0
default-information originate metric 1 metric-type 1
!
ip route 0.0.0.0 0.0.0.0 Dialer1 250
ip route 0.0.0.0 0.0.0.0 172.16.2.254 254
ip route 172.16.255.254 255.255.255.255 Null0
!
ip bgp-community new-format
!
ip http server
ip http access-class 99
ip http authentication local
no ip http secure-server
ip nat translation timeout 300
ip nat translation tcp-timeout 7200
ip nat translation udp-timeout 1200
ip nat inside source list INTERNAL_NETWORKS interface Dialer1 overload
ip nat inside source static tcp 172.16.1.5 22 interface Dialer1 1415
ip ospf name-lookup
!
ip access-list standard INTERNAL_NETWORKS
permit 172.16.0.1
permit 172.16.1.0 0.0.0.255
permit 172.16.2.0 0.0.0.255
ip access-list standard PERMIT_ANY
permit any
!
ip access-list extended BLACKHOLE
deny ip host 81.7.148.87 any
deny ip host 217.97.133.107 any
deny ip host 66.52.63.90 any
deny ip host 69.110.157.96 any
deny ip host 68.227.20.195 any
deny ip host 134.126.197.218 any
deny ip host 195.56.106.87 any
deny ip host 217.208.142.19 any
deny ip host 84.174.67.168 any
deny ip host 24.100.157.247 any
deny ip host 209.161.226.199 any
deny ip host 134.84.126.10 any
deny ip host 81.88.12.218 any
deny ip host 69.53.6.6 any
deny ip host 80.165.224.86 any
deny ip host 68.100.212.80 any
deny ip host 82.125.145.213 any
deny ip host 69.228.40.195 any
deny ip host 70.32.51.228 any
deny ip host 82.82.121.36 any
deny ip host 200.28.134.89 any
deny ip host 80.221.218.185 any
deny ip host 69.204.216.32 any
deny ip host 82.225.200.168 any
deny ip host 213.114.249.51 any
deny ip host 140.211.166.205 any log
permit ip any any
ip access-list extended ETH0_0_IN
remark deny Windows Media Player Updates
deny tcp any 207.46.248.0 0.0.0.255 eq www
remark permit anything else
permit ip any any
remark log all IPSEC (temporarily)
permit esp any any log
ip access-list extended EXT_IN
remark ## ACL to protect external interface
remark ## CBAC (EXT_OUT) entries will be dynamically added here
remark ## Allow all on certain ports
permit tcp any any eq 1415
permit tcp any any eq 1416
remark ## Permit IPSEC
permit esp host any any
remark ## Permit ntp.bar.com NTP server
permit udp host 1.1.1.1 eq ntp any
remark ## Permit icmp messages
permit icmp any any unreachable
permit icmp any any time-exceeded
remark ## Deny by protocol
deny tcp any any log
deny udp any any log
deny icmp any any log
deny igmp any any
deny ip any any log
deny esp any any log
ip access-list extended EXT_OUT
remark Use a PERMIT IP ANY ANY to ensure that CBAC inspects all possible traffic
permit ip any any
ip access-list extended TEMPORARY
remark This is a temporary ACL... apply this to an
remark interface while the normal ACL is being updated
permit ip any any
!
logging facility local6
logging source-interface Loopback0
logging 172.16.1.5
logging 172.16.1.7
access-list 11 remark JAVA access-list
access-list 11 permit any
access-list 12 permit 172.16.1.5
access-list 99 permit 172.16.1.0 0.0.0.255
dialer-list 1 protocol ip permit
snmp-server community SoMeThaNGwIErd RW 99
snmp-server ifindex persist
snmp-server trap link ietf
snmp-server trap-source Loopback0
snmp-server enable traps snmp authentication linkdown linkup coldstart warmstart
snmp-server enable traps tty
snmp-server enable traps envmon
snmp-server enable traps atm subif
snmp-server enable traps bgp
snmp-server enable traps entity
snmp-server enable traps pppoe
snmp-server enable traps rtr
snmp-server enable traps syslog
snmp-server host 172.16.1.5 version 2c SoMeThaNGwIErd
no cdp log mismatch duplex
!
route-map IBGP_BLACKHOLE_IN permit 10
match ip address MATCH_ANY
set ip next-hop 172.16.255.254
!
!
!
control-plane
!
!
!
!
!
!
dial-peer cor custom
!
!
!
!
!
banner login
Router Foo. Access to this device or the attached
networks is prohibited without express written permission from the
legal owner of this device. Violators will be prosecuted to the
fullest extent of both civil and criminal law.
We don't like you. Go away.
!
line con 0
authorization exec CONSOLE
login authentication CONSOLE
exec prompt timestamp
history size 200
transport preferred none
line 33 48
login authentication CONSOLE
no exec
transport preferred none
transport input telnet
line aux 0
login authentication CONSOLE
no exec
transport preferred none
transport input telnet
stopbits 1
flowcontrol hardware
line vty 0 4
exec-timeout 15 0
logout-warning 30
exec prompt timestamp
history size 200
transport preferred none
transport input telnet ssh
!
ntp clock-period 17208943
ntp master
ntp server 1.1.1.1
!
end