Routing traffic through vpn giving 502 ERROR

Would there be a simpler way to route the container traffic through the vpn? I assumed creating the container and routing traffic through that would be the easiest option, but now that may not be the case.