Skip to content
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

VPN traffic over tun0 only works when DEFAULT_GATEWAY: 'false' environment variable is not set #407

Open
nft2 opened this issue May 26, 2022 · 0 comments

Comments

@nft2
Copy link

nft2 commented May 26, 2022

Steps to reproduce:

Building (in docker-compose) without DEFAULT_GATEWAY: 'false' (intended behavior):

> curl ifconfig.me will return the VPN's IP address, and curl --interface eth0 ifconfig.me will return the server's real public IP address.

Building (in docker-compose) with DEFAULT_GATEWAY: 'false':

> curl ifconfig.me will return the server's real public IP address. However, curl --interface tun0 ifconfig.me will time out.

What I'm trying to do is have the server setup only to route traffic through the VPN if the tun0 interface is used. My intention is to write a Python script that controls which source adapter is used (I have done this before with "real" network interfaces). However, the default route needs to be non-VPN.

I'm not sure if this is unintended behavior or not, but any guidance you could provide on how best to do this would be much appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant