Score:0

WebApp does not work when VPN is enabled

in flag

I am running a WebApp on port 8080. The server running this app also needs to have an outbound VPN connected at all times. I am using OpenVPN on Ubuntu 20 server.

Once the VPN is connected I can no longer access the webaapp, for example on https://servername.com:8080

I assume this is because of routing. The web server is responding to my browser via the VPN which makes my browser abort the connection because the response differs from the sending request.

Is there a way in the routing table or something that I can get around this? Somehow if a request is sent directly to my web server it will respond outside of the VPN and go back over the regular NIC?

user535733 avatar
cn flag
Ubuntu 20.04 or 20.10? NetworkManager or networkd?
roog avatar
in flag
I am using the .netplan files. So Is that NetworkManager?
user535733 avatar
cn flag
No, it's different. Does your Netplan YAML have a `renderer:` line?
roog avatar
in flag
I am using networkd! Checked by looking for the service
ofirule avatar
th flag
This solution is worth a try: https://unix.stackexchange.com/a/317187/318849 . I think you should redirect using source port 8080
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.