Connect to VPN using Amazon Lightsail instance

0

I have a requirement to set up an application as middleware to which I can make HTTPS requests, which will then forward my requests to the API I wish to reach which is behind a VPN.

To that end, I've created a Django app with Amazon Lightsail, whose OS I am trying to connect to a VPN using the command line. I have set up a connection using nmcli, the output of that connection when checking system connections I've pasted below (I've replaced the actual servername with servername.com) The error I get is : "Error: Connection activation failed: Could not find source connection."


id=myID
uuid=34a5a7b4-4af1-4224-89b5-8a488a559ce3
type=vpn
interface-name=servername.com
permissions=
 
[vpn]
gateway=servername.com
service-type=org.freedesktop.NetworkManager.pptp
user-name=myusername
 
[vpn-secrets]
password=mypassword
 
[ipv4]
dns-search=
method=auto
 
[ipv6]
addr-gen-mode=stable-privacy
dns-search=
method=auto
bitnami@ip-172-2

I'm unsure as to why the connection is throwing that error as I don't know what the best way to get to source of the issue is. The only thing I can think of is that the server name hasn't been entered properly into the VPN details, but I'm unsure how to verify that.

Linux version is 4.19 and the VPN is PPTP. Can anyone see anything I am doing wrong, or have ideas what I should look for?

已提問 2 年前檢視次數 158 次
沒有答案

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南