Skip to content

Instantly share code, notes, and snippets.

@phumberdroz
Created November 15, 2016 17:15
Show Gist options
  • Save phumberdroz/e9c7353ef910a97c36451cf6a8d157a6 to your computer and use it in GitHub Desktop.
Save phumberdroz/e9c7353ef910a97c36451cf6a8d157a6 to your computer and use it in GitHub Desktop.
Hello people,
I am currently trying to run a VPN thru docker but the public IP is always bound to the main interface so I have:
eth0 <- host ip adress
eth0:1 <- VPN 1
eth0:2 <- VPN 2
so i can connect to the VPN with the IP Address specified (the correct one) but the facing public ip address is always the eth0 IP adress so how can I specify a certain interface to use? e.g. eth0:1? I think I have to use docker network thing but I am not sure.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment