Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing: what happens when client restarts cleanly. #18

Open
Rishabh04-02 opened this issue Aug 7, 2019 · 5 comments
Open

Testing: what happens when client restarts cleanly. #18

Rishabh04-02 opened this issue Aug 7, 2019 · 5 comments
Labels
enhancement New feature or request

Comments

@Rishabh04-02
Copy link
Owner

Support for recovery from client restart.

@Rishabh04-02
Copy link
Owner Author

Output - https://pastebin.com/raw/bTVSmLip
test case added libreswan/libreswan@58338e0
Solved in PR - libreswan/libreswan#263

@letoams
Copy link
Collaborator

letoams commented Aug 8, 2019 via email

@Rishabh04-02 Rishabh04-02 reopened this Aug 8, 2019
@Rishabh04-02
Copy link
Owner Author

Rishabh04-02 commented Aug 9, 2019

I have been working on this issue, I also got Tuomo's help in this. But every time i got two tunnels running in the end.

Then I checked the road.console.txt in the tests where server is crashing and where server is restarting cleanly. In those 2 test cases the road.console.txt also have two tunnels running in the end.

grep "negotiated connection" /tmp/pluto.log
"private-or-clear#192.1.2.0/24"[1] 10.0.10.1/32=== ...192.1.2.23 #2: negotiated connection [10.0.10.1-10.0.10.1:0-65535 0] -> [192.1.2.23-192.1.2.23:0-65535 0]
"private-or-clear#192.1.2.0/24"[2] 10.0.10.1/32=== ...192.1.2.23 #4: negotiated connection [10.0.10.1-10.0.10.1:0-65535 0] -> [192.1.2.23-192.1.2.23:0-65535 0]

Reference

grep "negotiated connection" /tmp/pluto.log
"private-or-clear#192.1.2.0/24"[1] 10.0.10.1/32=== ...192.1.2.23 #2: negotiated connection [10.0.10.1-10.0.10.1:0-65535 0] -> [192.1.2.23-192.1.2.23:0-65535 0]
"private-or-clear#192.1.2.0/24"[2] 10.0.10.1/32=== ...192.1.2.23 #4: negotiated connection [10.0.10.1-10.0.10.1:0-65535 0] -> [192.1.2.23-192.1.2.23:0-65535 0]

Reference

Tuomo said - this can still be race condition. like pluto stops before it sent delete sa. OR we have software error and delete sa is not sent. OR there are some special cases where we don't want to notify about deleting sa.

@Rishabh04-02
Copy link
Owner Author

But I have noticed a strange behavior:
when I connect from my laptop to the letsencrypt server. I see one connection on both client and server. when I restart client or server. I see no connection on either of them.
But on the test server we see 2 connections.

@letoams
Copy link
Collaborator

letoams commented Aug 9, 2019 via email

@Rishabh04-02 Rishabh04-02 added the enhancement New feature or request label Aug 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants