thomwiggers / kemtls-experiment

Experimental implementation of KEMTLS in Rustls
https://wggrs.nl/p/kemtls/
Other
27 stars 14 forks source link

Unknown host #8

Closed SimonRastikian closed 3 years ago

SimonRastikian commented 3 years ago

I was running the measurement file using the script. This generates the KDDD with client auth DD, KKDD, KKDD with client auth KD, XRRR, XRRR with client auth RR. However the code stops with an error:

File ".../kemtls-experiment/measuring/scripts/experiment.py", line 647, in hostname = reverse_resolve_hostname() File ".../kemtls-experiment/measuring/scripts/experiment.py", line 497, in reverse_resolve_hostname return socket.gethostbyaddr("10.99.0.1")[0] socket.herror: [Errno 1] Unknown host

What should I do to solve this?

thomwiggers commented 3 years ago

To run the experiment.py scripts, you need 10.99.0.1 servername in /etc/hosts; you also need the ip namespaces set up (there's a script to do the work for you)

SimonRastikian commented 3 years ago

Ok this just worked. I had to run the ./setup_ns.sh script then ./setinitcwd.sh 10. Thanks again!

Btw I just found your Hacking in C courses and I am following them :)