Connect VM in VPN docker container


i have a vpn docker container, (misioslav/surfshark) it works perfectly but I would like to know how to connect a vm to this docker so that its network traffic goes through the vpn.

cara i try to connect my vm on the same network as the vpn and set the ip of the vpn as gateway in my vm but it does not work …

Thanks for your help :slight_smile:

Read the doku of the image on dockerhub and check wether it provides something like a http or proxy proxy. This is a problem directly related to the image. Worst case: ask the maintainer

no normally there is no proxy as it is just a vpn but suddenly to connect my vm to the container must just add a proxy between the two?