728x90
서버 설치
openvpn 자동설치 쉘 스크립트 다운로드
wget https://git.io/vpn -O openvpn-install.sh
파일 실행 권한 부여
sudo chmod +x openvpn-install.sh
실행
sudo bash openvpn-install.sh
질문에 답을 하여 설치
This server is behind NAT. What is the public IPv4 address or hostname?
Public IPv4 address / hostname []: IP주소
Which protocol should OpenVPN use?
1) UDP (recommended)
2) TCP
Protocol [1]: 1
What port should OpenVPN listen to?
Port [1194]:
Select a DNS server for the clients:
1) Current system resolvers
2) Google
3) 1.1.1.1
4) OpenDNS
5) Quad9
6) AdGuard
DNS server [1]: 2
Enter a name for the first client:
Name [client]: 클라이언트명
생성된 vpn 접속 키 확인 및 다운로드
리눅스 서버에서 확인
/root/클라이언트명.ovpn
클라이언트에서 다운로드
scp -i 암호파일 사용자명@서버아이피주소:/root/클라이언트명.ovpn ./
클라이언트 설치
클라이언트 다운로드
윈도우 - https://openvpn.net/community-downloads/
맥용 - https://openvpn.net/client-connect-vpn-for-mac-os/