Ik heb sinds kort een SRX210HE2 voor mijn werk maar speel ook zo nu en dan een spelletje op mijn PS4. Helaas moet ik het ermee doen. Ik heb hem zelf al aardig doorgenomen maar ik ben niet bekend met Junipers.
Heb eindelijk pas de VPN naar de zaak (SSG5) voor elkaar middels policy based vpn maar dit is weer een nieuwe horde die mij net te ver gaat.
Nu moet ik voor Online Gaming op de PS4 meerdere poorten openen om van een NAT type 3 naar 2 te gaan, wat ervoor zorgt dat ik probleemloos online kan.
Ik heb een applicatie set gemaakt middels deze commando's
Dit aan een set gehangen genaamd PS4.
Heb via DHCP de PS4 een vast adres gegeven en hoopte een port forward middels de applicatie te doen maar helaas.
Ik heb niet zo veel zin om tig individuele mappings aan te maken.
Dit is mijn config:
Zoek de juiste manier om dit te doen.
Heb eindelijk pas de VPN naar de zaak (SSG5) voor elkaar middels policy based vpn maar dit is weer een nieuwe horde die mij net te ver gaat.
Nu moet ik voor Online Gaming op de PS4 meerdere poorten openen om van een NAT type 3 naar 2 te gaan, wat ervoor zorgt dat ik probleemloos online kan.
Ik heb een applicatie set gemaakt middels deze commando's
code:
1
2
3
4
5
6
7
8
| set applications application tcp-1935 protocol tcp destination-port 1935 set applications application tcp-9293 protocol tcp destination-port 9293 set applications application tcp-3478-3480 protocol tcp destination-port 3478-3480 set applications application udp-3478-3479 protocol udp destination-port 3478-3479 set applications application udp-3047 protocol udp destination-port 3047 set applications application udp-2001 protocol udp destination-port 2001 set applications application tcp-1040-1060 protocol tcp destination-port 1040-10060 set applications application udp-50000-60000 protocol destination-port 50000-60000 |
Dit aan een set gehangen genaamd PS4.
Heb via DHCP de PS4 een vast adres gegeven en hoopte een port forward middels de applicatie te doen maar helaas.
Ik heb niet zo veel zin om tig individuele mappings aan te maken.
Dit is mijn config:
code:
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
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
| }
services {
ssh;
telnet;
web-management {
http {
interface vlan.0;
}
https {
system-generated-certificate;
interface [ vlan.0 ge-0/0/0.0 ];
}
session {
idle-timeout 60;
}
}
dhcp {
pool 192.168.1.0/24 {
address-range low 192.168.1.100 high 192.168.1.150;
router {
192.168.1.1;
}
}
static-binding c8:2a:14:1b:11:91 {
fixed-address {
192.168.1.100;
}
host-name IMAC;
}
static-binding c0:3f:d5:62:d3:95 {
fixed-address {
192.168.1.101;
}
host-name XBMC;
}
static-binding c0:3f:d5:63:18:29 {
fixed-address {
192.168.1.102;
}
host-name XBMC2;
}
static-binding b0:65:bd:5e:8c:48 {
fixed-address {
192.168.1.103;
}
host-name IMPad;
}
static-binding 00:15:5d:01:65:01 {
fixed-address {
192.168.1.104;
}
host-name DiskStation;
}
static-binding 70:9e:29:5c:90:27 {
fixed-address {
192.168.1.108;
}
host-name PS4;
}
propagate-settings ge-0/0/0;
}
}
syslog {
archive size 100k files 3;
user * {
any emergency;
}
file messages {
any critical;
authorization info;
}
file interactive-commands {
interactive-commands error;
}
}
max-configurations-on-flash 5;
max-configuration-rollbacks 5;
license {
autoupdate {
url https://ae1.juniper.net/junos/key_retrieval;
}
}
ntp {
server 0.nl.pool.ntp.org;
}
}
interfaces {
ge-0/0/0 {
unit 0 {
family inet {
dhcp;
}
}
}
ge-0/0/1 {
unit 0 {
family ethernet-switching {
vlan {
members vlan0;
}
}
}
}
fe-0/0/2 {
unit 0 {
family ethernet-switching {
vlan {
members vlan0;
}
}
}
}
fe-0/0/3 {
unit 0 {
family ethernet-switching {
vlan {
members vlan0;
}
}
}
}
fe-0/0/4 {
unit 0 {
family ethernet-switching {
vlan {
members vlan0;
}
}
}
}
fe-0/0/5 {
unit 0 {
family ethernet-switching {
vlan {
members vlan0;
}
}
}
}
fe-0/0/6 {
unit 0 {
family ethernet-switching {
vlan {
members vlan0;
}
}
}
}
fe-0/0/7 {
unit 0 {
family ethernet-switching {
vlan {
members vlan0;
}
}
}
}
vlan {
unit 0 {
family inet {
address 192.168.1.1/24;
}
}
}
}
protocols {
stp;
}
security {
ike {
policy IKE-POL {
mode aggressive;
proposal-set compatible;
pre-shared-key ascii-text "xxxxxxxxxxxxx";
}
gateway IKE-GW {
ike-policy IKE-POL;
address XXXXXXX;
no-nat-traversal;
local-identity user-at-hostname "XXXXXX";
external-interface ge-0/0/0.0;
}
}
ipsec {
vpn-monitor-options {
interval 10;
threshold 10;
}
proposal IPSEC-PROP {
protocol esp;
}
policy IPSEC-POL {
perfect-forward-secrecy {
keys group2;
}
proposals IPSEC-PROP;
}
vpn IPSEC-VPN {
ike {
gateway IKE-GW;
ipsec-policy IPSEC-POL;
}
establish-tunnels immediately;
}
}
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;
timeout 20;
}
land;
}
}
}
nat {
source {
rule-set nsw_srcnat {
from zone Trust;
to zone Untrust;
rule NoNatVPN {
match {
source-address 192.168.1.0/24;
destination-address 10.0.0.0/8;
}
then {
source-nat {
off;
}
}
}
rule nsw-src-interface {
match {
source-address 0.0.0.0/0;
destination-address 0.0.0.0/0;
}
then {
source-nat {
interface;
}
}
}
}
}
destination {
pool sabnzbd {
address 192.168.1.101/32 port 1978;
}
pool Diskstation {
address 192.168.1.104/32 port 5000;
}
pool vnc {
address 192.168.1.100/32 port 5900;
}
pool spotweb {
address 192.168.1.104/32 port 80;
}
pool rdp-xbmc {
address 192.168.1.101/32 port 3389;
}
pool rdp-xbmc2 {
address 192.168.1.102/32 port 3389;
}
pool PS4 {
address 192.168.1.108/32 port 1935;
}
pool PS4_2 {
address 192.168.1.108/32 port 3478;
}
pool PS4_3 {
address 192.168.1.108/32 port 3479;
}
pool PS4_4 {
address 192.168.1.108/32 port 3480;
}
pool PS4_destiny {
address 192.168.1.108/32 port 2001;
}
rule-set Portforward {
from zone Untrust;
rule sabnzbd {
match {
destination-address 0.0.0.0/0;
destination-port 1978;
}
then {
destination-nat pool sabnzbd;
}
}
rule Diskstation {
match {
destination-address 0.0.0.0/0;
destination-port 5000;
}
then {
destination-nat pool Diskstation;
}
}
rule spotweb {
match {
destination-address 0.0.0.0/0;
destination-port 1986;
}
then {
destination-nat pool spotweb;
}
}
rule vnc {
match {
destination-address 0.0.0.0/0;
destination-port 5900;
}
then {
destination-nat pool vnc;
}
}
rule rdp-xbmc {
match {
destination-address 0.0.0.0/0;
destination-port 33899;
}
then {
destination-nat pool rdp-xbmc;
}
}
rule rdp-xbmc2 {
match {
destination-address 0.0.0.0/0;
destination-port 33890;
}
then {
destination-nat pool rdp-xbmc2;
}
}
rule PS4 {
match {
destination-address 0.0.0.0/0;
destination-port 1935;
}
then {
destination-nat pool PS4;
}
}
rule PS4_2 {
match {
destination-address 0.0.0.0/0;
destination-port 3478;
protocol udp;
}
then {
destination-nat pool PS4_2;
}
}
rule PS4_3 {
match {
destination-address 0.0.0.0/0;
destination-port 3479;
protocol udp;
}
then {
destination-nat pool PS4_3;
}
}
rule PS4_4 {
match {
destination-address 0.0.0.0/0;
destination-port 3480;
}
then {
destination-nat pool PS4_4;
}
}
rule PS4_destiny {
match {
destination-address 0.0.0.0/0;
destination-port 2001;
}
then {
destination-nat pool PS4_destiny;
}
}
}
}
}
policies {
from-zone Trust to-zone Untrust {
policy VPN_OUT {
match {
source-address Prive_LAN;
destination-address XXXXX
application any;
}
then {
permit {
tunnel {
ipsec-vpn IPSEC-VPN;
}
}
}
}
policy All_Trust_Untrust {
match {
source-address any;
destination-address any;
application any;
}
then {
permit;
}
}
}
from-zone Untrust to-zone Trust {
policy VPN_IN {
match {
source-address XXXXX;
destination-address Prive_LAN;
application any;
}
then {
permit {
tunnel {
ipsec-vpn IPSEC-VPN;
}
}
}
}
policy Diskstation-FW {
match {
source-address any;
destination-address Diskstation;
application any;
}
then {
permit;
}
}
policy XBMC-FW {
match {
source-address any;
destination-address xbmc;
application any;
}
then {
permit;
}
}
policy IMAC-FW {
match {
source-address any;
destination-address iMAC;
application any;
}
then {
permit;
}
}
policy XBMC2-FW {
match {
source-address any;
destination-address xbmc2;
application any;
}
then {
permit;
}
}
policy PS4 {
match {
source-address any;
destination-address PS4;
application any;
}
then {
permit;
}
}
}
}
zones {
security-zone Trust {
address-book {
address xbmc 192.168.1.101/32;
address Diskstation 192.168.1.104/32;
address iMAC 192.168.1.100/32;
address xbmc2 192.168.1.102/32;
address Prive_LAN 192.168.1.0/24;
address PS4 192.168.1.108/32;
}
interfaces {
vlan.0 {
host-inbound-traffic {
system-services {
ping;
dhcp;
http;
https;
ssh;
telnet;
}
}
}
}
}
security-zone Untrust {
address-book {
address XXXXXXXX;
address XXXXXXXX;
}
host-inbound-traffic {
system-services {
ike;
}
}
interfaces {
ge-0/0/0.0 {
host-inbound-traffic {
system-services {
dhcp;
https;
ssh;
}
}
}
}
}
}
}
applications {
application tcp-1935 {
protocol tcp;
destination-port 1935;
}
application tcp-9293 {
protocol tcp;
destination-port 9293;
}
application tcp-3478-3480 {
protocol tcp;
destination-port 3478-3480;
}
application udp-3478-3479 {
protocol udp;
destination-port 3478-3479;
}
application udp-3047 {
protocol udp;
destination-port 3047;
}
application udp-2001 {
protocol udp;
destination-port 2001;
}
application tcp-1040-1060 {
protocol tcp;
destination-port 1040-10060;
}
application udp-50000-60000 {
protocol udp;
destination-port 50000-60000;
}
application-set PS4 {
application tcp-1935;
application tcp-9293;
application tcp-3478-3480;
application udp-3478-3479;
application udp-3047;
application udp-2001;
application tcp-1040-1060;
application udp-50000-60000;
}
}
vlans {
vlan0 {
vlan-id 2;
l3-interface vlan.0;
}
} |
Zoek de juiste manier om dit te doen.
Ik heb ook een leuke computer..