-
Notifications
You must be signed in to change notification settings - Fork 247
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
k8s yaml for the vpn server #21
Comments
Port 443 TCP/UDP is needed to be compatible with Cisco AnyConnect. If you are not using AnyConnect as the client you can change the port to any number you liked. And you might need a root privilege to use 443 port. |
@TommyLau Really appreciate your explanation so I would like to know below things: -p 443:443 -p 443:443/udp So can I change it to 443:443/tcp 8443:443/udp so that I can deploy to k8s since two same ports looks like impossible to be mapped in my k8s cluster. By the way the certificate is integrated to the image right? Every time when I try to connect the credentials is the only thing needed right? :) |
@TommyLau I have successfully deployed to my k8s cluster, just would like to know where can I find the certificate so that I dont need to input credentials everytime? Under certs I see below Wher is p12? |
You should reference the documentation from Docker here: The default setting for eg: That's to say, it will listen on your host's 8443 TCP and 9443 UDP. The certificate was no integrated, it will be generated the first time you create and run the container, you can check out the scripts, and only username / password is needed for the default setting. Or you can change to certificate authentication as you wish by modifying the config files. |
You can generate your own certificate without using Docker nor ocserv.
for eg:
Make sure you have |
@TommyLau It is something different than I thought and here is my yaml file I thought the latter part is the container port.... apiVersion: v1
apiVersion: extensions/v1beta1 Thanks for the certification part I will try that :) |
Came across the image here and wonder whether you have the example yaml file to deploy it to k8s?
I noticed it needs two port 443 and 443/udp i find it impossible to expose the service on k8s?
Any help?
The text was updated successfully, but these errors were encountered: