| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- {
- devices:[
- {
- id:"Alice",
- ports:1,
- x:0.25,
- y:0.6,
- script: deviceScripts.encryption,
- player: true
- },
- {
- id:"Censor",
- image: "router",
- ports:4,
- x:0.5,
- y:0.6,
- script: deviceScripts.manualRouter,
- rules:[
- {dstip:"Alice", portNum:0},
- {dstip:"Allowed Site", portNum:2},
- {dstip:"Proxy", portNum:3}
- ],
- player:false
- },
- {
- id:"Blocked Site",
- image: "server",
- ports:1,
- x:0.8,
- y:0.4,
- player:false
- },
- {
- id:"Allowed Site",
- image: "server",
- ports:1,
- x:0.8,
- y:0.6
- },
- {
- id:"Proxy",
- image: "server",
- ports:2,
- x:0.6,
- y:0.4,
- script: deviceScripts.modem
- }
- ],
- links:[
- {
- src:"Alice", srcport:0,
- dst:"Censor", dstport:0
- },
- {
- src:"Censor", srcport:1,
- dst:"Blocked Site", dstport:0
- },
- {
- src:"Censor", srcport:2,
- dst:"Allowed Site", dstport:0
- },
- {
- src:"Censor", srcport:3,
- dst:"Proxy", dstport:0
- },
- {
- src:"Proxy", srcport:1,
- dst:"Blocked Site", dstport:0
- }
- ],
- timeline:[
- {
- type:"packet",
- at:500,
- from:"Alice",
- payload:{
- network:{srcip:"Alice",dstip:"Allowed Site"}
- }
- },
- {
- type:"packet",
- at:500,
- from:"Alice",
- payload:{
- network:{srcip:"Alice",dstip:"Blocked Site"}
- }
- }
- ],
- triggers:[
- {
- type:"packet",
- device:"Blocked Site",
- payload:{
- network:{srcip:"Alice",dstip:"Blocked Site"}
- }
- }
- ]
- }
|