mirror of
https://github.com/hwdsl2/docker-ipsec-vpn-server.git
synced 2026-04-27 10:35:53 +03:00
[GH-ISSUE #470] Connect container to multiple interfaces #440
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 @UnBonWhisky on GitHub (Mar 15, 2025).
Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/470
Checklist
Describe the enhancement request
Would it be possible to connect the container to multiple interfaces ?
Is your enhancement request related to a problem? Please describe.
Currently, when connecting the container to 2 or 3 networks, I am unable to ping the 2nd and 3rd interfaces (eth1 and eth2). I would like to contact all the networks my container is in
Additional context
Add any other context about the enhancement request here.
@hwdsl2 commented on GitHub (Mar 15, 2025):
@UnBonWhisky Hello! This use case is not currently supported in this project. However, you may be able to achieve this using the following steps (not tested).
First open a bash shell inside the container:
https://github.com/hwdsl2/docker-ipsec-vpn-server/blob/master/docs/advanced-usage.md#bash-shell-inside-container
Next, add IPTables rules to allow traffic to additional network interfaces such as eth1. See:
https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/docs/advanced-usage.md#access-vpn-servers-subnet
Please let us know in this issue if you are able to successfully achieve your use case.