mirror of
https://github.com/hwdsl2/docker-ipsec-vpn-server.git
synced 2026-04-26 10:05:48 +03:00
[GH-ISSUE #140] Configure VPN to go through proxy #126
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kennyparsons on GitHub (Apr 19, 2019).
Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/140
@hwdsl2 I have not been able to find any info on how to configure the vpn to go through a proxy. I am running a proxy container to log my traffic, and I'm using your vpn docker to bring in all my traffic. So far, your container is working perfectly, just hitting a road block on this proxy part.
How can I accomplish this?
@hwdsl2 commented on GitHub (Apr 19, 2019):
@kennyparsons Hello! Due to the Docker architecture, it is difficult to forward traffic between containers (the proxy in your use case). You may use the "host" network mode (refer to #133) to get around this restriction, however that mode is not recommended for this Docker image, because it modifies the IPTables rules on your Docker host, instead of IPTables rules in the container.
To actually forward the traffic to the proxy, you can try IPTables FORWARD and/or NAT rules. For details, please ask on the Libreswan/strongSwan users mailing list or the Docker community.
@kennyparsons commented on GitHub (Apr 19, 2019):
@hwdsl2 would it be possible to build my own image with your docker image and a proxy image all in one container?
@hwdsl2 commented on GitHub (Apr 19, 2019):
@kennyparsons Yes, please refer to: https://github.com/hwdsl2/docker-ipsec-vpn-server#build-from-source-code
@kennyparsons commented on GitHub (Apr 19, 2019):
Thank you for the quick responses!