GNOME을 사용하는 Ubuntu 환경에서 어떻게 VPN을 구성할 수 있는지 알아봅시다.

현재 L2TP / OpenVPN / Outline으로 연결할 수 있습니다. (무엇을 고를지 모르겠다면 제일 먼저 나오는 L2TP를 고르세요.)

L2TP로 연결하기

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/c34c2a1c-1ae7-4039-b9de-6d9b72b4aaff/ubuntu.png

먼저 터미널을 열고 다음과 같은 명령어를 입력해 줍니다. 우분투에서는 L2TP 클라이언트가 기본적으로 내장되어 있지 않기 때문에 별도의 PPA를 추가하고 L2TP 클라이언트를 설치해야 합니다.

sudo add-apt-repository ppa:nm-l2tp/network-manager-l2tp
sudo apt-get update
sudo apt-get -y install network-manager-l2tp  network-manager-l2tp-gnome

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/9ef41a11-7cec-4e66-af09-5e37afa6cad4/ubuntu2.png

이런 창이 나오면 [ENTER]키를 눌러 계속 진행하도록 합니다.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/679aeeca-8523-49bd-844b-f0b13300aa56/ubuntu3.png

그런 다음 설정을 연 뒤 "네트워크" → "VPN(가상사설망)" 옆에 있는 "+" 단추를 찾습니다. 그러면 "VPN(가상사설망) 추가"가 나오는데 위에 있는 "Layer 2 Tunneling Protocol (L2TP)"를 선택해 줍니다.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/343386ae-c13e-4fd9-b094-6a786047ea76/ubuntu4.png