-
-
Notifications
You must be signed in to change notification settings - Fork 197
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
Update server.erb - fix proto for tcp client mode #349
Conversation
Update server.erb - fix proto for tcp client mode so that it sets: proto tcp rather than proto tcp-server
Rebased version of #230 I am afraid I am not skilled enough to add tests |
@juniorsysadmin I have checked the failed build and it only says there is something wrong with the build config - no idea how could I fix it. Could somebody from maintainers take a look? |
Hi @jimirocks i relaunched the job. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jimirocks i suppose the value with directive proto
changed but was previously correct when using tcp-server
.
If so, do you know the version of openvpn when the value changed ? All supported OSes are with a superior version ?
According to the doc https://openvpn.net/community-resources/reference-manual-for-openvpn-2-4/ the options My version is
Also note that the original #230 was pending here since 2017 - so in client mode the |
If directive
|
But in examples we have this:
|
During tests we already check that server is listening on tcp: And so, it looks that server really listen on tcp and not udp. What is the reason you proposed the PR ? What issue did you face ? |
proto with only tcp looks allowed in the code: it is probably for convenience because we can have case where the code force to specify tcp-server or tcp-client: |
well, I use
The openvpn doesn't start unless I replace Here is my puppet code (including workaroudn for the issue):
|
Oh! On a server, a We saw that openvpn code can force to specify tcp-server or tcp-client, can you set the value of directive Probably others client options like |
Hi, sorry for inactivity cause of vacation. Well, I am not really sure what are you asking me to try... could you be more specific in terms of code sample? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't worry. It is not important. The PR LGTM.
Update server.erb - fix proto for tcp client mode so that it sets:
proto tcp
rather than
proto tcp-server