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

Why is the connection disconnected after 15s #203

Open
LinSir1997 opened this issue Mar 17, 2022 · 5 comments
Open

Why is the connection disconnected after 15s #203

LinSir1997 opened this issue Mar 17, 2022 · 5 comments

Comments

@LinSir1997
Copy link

LinSir1997 commented Mar 17, 2022

I used OpenVPN_ COMMAND_ Agent builds my program and let it work as a service, but definitely disconnects 15s after the connection, which doesn't happen on some other computers. If I do not use OpenVPN_ COMMAND_ Agent,does not present this problem

@schwabe
Copy link
Contributor

schwabe commented Mar 17, 2022

You need more provide more details. I have no idea what you are talking about. Esepcially since you use OpenVPN_ COMMAND_ Agent as if that was something that I should know but I cannot even find that string in our source code.

@LinSir1997
Copy link
Author

LinSir1997 commented Mar 17, 2022

Under the /ovpnagent win/ovpnagent.cpp of the source code, I installed this program into the system service. At the same time, I used the macro of OPENVPN_COMMAND_AGENT in my secondary development programt, so that the program can run without administrator permission. This macro definition can be found in /openvpn/client/ cliopt.hpp

You need more provide more details. I have no idea what you are talking about. Esepcially since you use OpenVPN_ COMMAND_ Agent as if that was something that I should know but I cannot even find that string in our source code.

@LinSir1997
Copy link
Author

Strangely, the connection will be disconnected at the 15th second. By the way, I closed WFP in the source code (OpenVPN / Tun / win / WFP. HPP). Finally, this problem occurs in some win10 operating systems.

You need more provide more details. I have no idea what you are talking about. Esepcially since you use OpenVPN_ COMMAND_ Agent as if that was something that I should know but I cannot even find that string in our source code.

@schwabe
Copy link
Contributor

schwabe commented Mar 17, 2022

Finally, this problem occurs in some win10 operating systems.

If it only affects some windows 10 operating system, don't you think that you need to tell us which ones are affected?

Overall you need to provide a lot more details that we can reporduce the problem. As for now the agent works fine for us. Also you just mentioned that you did some WFP related changes but also did not say what changes you did. I take a lot of guesswork to figure what you are exactly doing, let alone reproduce the problem.

@LinSir1997
Copy link
Author

LinSir1997 commented Mar 18, 2022

In the /openvpn/tun/win/wfp.hpp:I made some changes to keep WFP closed

   class ActionWFP : public Action
    {
    public:
      ActionWFP(const std::wstring& openvpn_app_path_arg,
		const NET_IFINDEX tap_index_arg,
		const bool enable_arg,
		const WFPContext::Ptr& wfp_arg)
	: openvpn_app_path(openvpn_app_path_arg),
	  tap_index(tap_index_arg),
	  enable(enable_arg),
	  wfp(wfp_arg)
      {
      }

      virtual void execute(std::ostream& log) override
      {
	log << to_string() << std::endl;
//	if (enable)
//	  wfp->block(openvpn_app_path, tap_index, log);
//	else
//	  wfp->unblock(log);
    wfp->unblock(log);
      }

System version in question:
WIN10 20H2 19042.1288
WIN10 21H2 19044.1586
WIN10 21H1 19043.1586

I installed the same version of virtual machine, but I can't reproduce this problem, so is it related to the network environment or anti-virus software?

Finally, this problem occurs in some win10 operating systems.

If it only affects some windows 10 operating system, don't you think that you need to tell us which ones are affected?

Overall you need to provide a lot more details that we can reporduce the problem. As for now the agent works fine for us. Also you just mentioned that you did some WFP related changes but also did not say what changes you did. I take a lot of guesswork to figure what you are exactly doing, let alone reproduce the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants