# Help needed with a VPN sidecar

**URL:** <https://forums.suse.com/t/help-needed-with-a-vpn-sidecar/20269>\
**Category:** SUSE Rancher Prime\
**Created:** [May 9, 2021, 11:00pm UTC](https://forums.suse.com/t/help-needed-with-a-vpn-sidecar/20269 "2021-05-09T23:00:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidS](https://avatars.discourse-cdn.com/v4/letter/d/65b543/32.png) [@davidS](https://forums.suse.com/u/davidS)\
**Post date:** [May 9, 2021, 11:00pm UTC](https://forums.suse.com/t/help-needed-with-a-vpn-sidecar/20269/1 "2021-05-09T23:00:52Z")

</div>

Hello, I’m new to Rancher so I might use the wrong terminology… I am trying to setup a VPN inside a pod and have another application use its connection. From the research I have done it looks like I need to add a sidecar to the pod to complete the task. I deployed my main pod which has an application running and I can access its UI. I then created a sidecar to that deployment for the VPN–both start up and run. If I execute a shell and run “curl [ifconfig.io](http://ifconfig.io)” it shows a vpn ip of the region I selected.

The problem I’m having is I no longer can access the UI of the main container once the sidecar is added. I have tried moving the required ports from the main container to the vpn container with no luck. I also have tried both standard and init containers.

Any help or suggestions would be greatly appreciated.

-david

---

<div class="post-metadata">

**Author:** ![vincent](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/vincent/32/7156_2.png) [@vincent](https://forums.suse.com/u/vincent)\
**Post date:** [May 9, 2021, 11:09pm UTC](https://forums.suse.com/t/help-needed-with-a-vpn-sidecar/20269/2 "2021-05-09T23:09:18Z")

</div>

The entire pod (“main” and “sidecar” containers) is in the same network namespace. So you vpn is likely to replace the routing for all addresses, and needs to exclude the internal IP ranges Kubernetes uses. This has nothing to do with Rancher in particular, but for our distros the defaults are 10.42.0.0/16 and 10.43.0.0/16.

---

<div class="post-metadata">

**Author:** ![davidS](https://avatars.discourse-cdn.com/v4/letter/d/65b543/32.png) [@davidS](https://forums.suse.com/u/davidS)\
**Post date:** [May 9, 2021, 11:54pm UTC](https://forums.suse.com/t/help-needed-with-a-vpn-sidecar/20269/3 "2021-05-09T23:54:49Z")

</div>

@vincent ok thank you for the quick reply… I’ll have to continue to research…
