Project

General

Profile

Actions

Task #7366

open

Finish the first levels of the ungleich-game

Added by Nico Schottelius almost 2 years ago. Updated almost 2 years ago.

Status:
In Progress
Priority:
Normal
Assignee:
Start date:
11/29/2019
Due date:
% Done:

90%

Estimated time:
PM Check date:

Description

  • Probably for Marc & Den

The story:...

  • smallest network: /64 -> 64 bit
  • there is a (web)server

step 1

  • my name is nico and my network is 2a0a:e5c1:137::/64
  • Hello, please prove that this is your network by setting up the ip address
    • random ip in the network
    • 64 bit random number
    • network + number = IP
  • Hey server, I have it setup now
  • -> the server tries to ping me
    • yes->I get the next step
    • no-> I get an error message

step 2

  • Setup a webserver on your IPv6 address
  • "curl http://[...]" (Linux)
  • Server checks if a webserver is reachable on the ip

Files

gameserver.py (10.1 KB) gameserver.py Attached gameserver file Den Ivanov, 12/01/2019 03:34 AM
gameserver.py (10.1 KB) gameserver.py Den Ivanov, 12/03/2019 11:00 PM
test_game.sh (2.14 KB) test_game.sh Den Ivanov, 12/03/2019 11:00 PM
Actions #1

Updated by Den Ivanov almost 2 years ago

Nico Schottelius wrote:

  • Probably for Marc & Den

Den's here. I think I can work more on the task. At least I've got smth working :D

Actions #2

Updated by Den Ivanov almost 2 years ago

  • Assignee set to Den Ivanov
Actions #3

Updated by Nico Schottelius almost 2 years ago

  • Description updated (diff)
Actions #4

Updated by Nico Schottelius almost 2 years ago

Hints:

  • you have an IPv6 address on your computer
  • if you let nico know the address, we can route a /64
Actions #5

Updated by Den Ivanov almost 2 years ago

  • % Done changed from 0 to 40
  • Status changed from New to In Progress
Actions #6

Updated by Den Ivanov almost 2 years ago

What's done for now in porting to ETCD-3:
1) Information about the game
2) Registration of the new user with his IP and date
3) Checking if user registered, it returns user IP

Actions #7

Updated by Den Ivanov almost 2 years ago

  • % Done changed from 40 to 70

Working for now with ETCD-3 and wrapper:
1) Information about the game: ("curl ip/index")
2) Registration of the new user with his IP and date: ("curl -X POST -d user=sxiii ip/register")
3) Checking if user registered, it returns user IP (re-run previous command again)
4) Challenges listing ("curl ip/challenge")
5) RegisterNet challenge ("curl -X POST -d user=sxiii -d 'network=2a0a:e5c0:101::/64' ip/challenge/RegisterNet")
6) Checking if challenge already done; it returns error (re-run prev. command)

What needs further work: IPv6Address challenge; POINTS; listing multiple records

Actions #8

Updated by Den Ivanov almost 2 years ago

  • % Done changed from 70 to 80

Points now also work.

Actions #9

Updated by Den Ivanov almost 2 years ago

7) Getting points for user: ``` curl -X POST -d user=sxiii ip/points ```
8) Challenge IPv6Address (checking if IP is pingable): ``` curl -X POST -d user=sxiii ip/challenge/IPv6Address ```

So, Step 1 = 90% completed. The only thing not working now is multiple users points listing.

Actions #10

Updated by Den Ivanov almost 2 years ago

Files

Actions

Also available in: Atom PDF