-
[OpenVPN] 3.안드로이드에 OpenVPN Client 설치LINUX/OpenVPN 2019. 11. 24. 17:47반응형
오늘은 안드로이드에서 OpenVPN Client를 설치하려고 한다.
먼저 안드로이드용 ovpn파일을 만든다.(ex: client05.ovpn)
<ca>, <cert>, <key> 부분은 ca.crt, client05.crt, client05.key 파일의 암호화 된 값을 입력한다.
이제 생성한 ovpn 파일을 스마트폰으로 옮긴다.
client dev tun proto tcp remote test.iptime.org 4433 resolv-retry infinite nobind persist-key persist-tun <ca> -----BEGIN CERTIFICATE----- MIIEyjCCA7KgAwIBAgIJAN5pDnJxdp1cMA0GCSqGSIb3DQEBCwUAMIGeMQswCQYD VQQGEwJLUjEOMAwGA1UECBMFU2VvdWwxEzARBgNVBAcTClN1bmdCdWstR3UxETAP BgNVBAoTCFJpZ2VsSW5jMQwwCgYDVQQLFANSJkQxFDASBgNVBAMTC1JpZ2VsSW5j IENBMRAwDgYDVQQpEwdFYXN5UlNBMSEwHwYJKoZIhvcNAQkBFhJhbHNkdWQxNTRA cmlnZWwua3IwHhcNMTkxMTE5MDgwNzI4WhcNMjkxMTE2MDgwNzI4WjCBnjELMAkG A1UEBhMCS1IxDjAMBgNVBAgTBVNlb3VsMRMwEQYDVQQHEwpTdW5nQnVrLUd1MREw DwYDVQQKEwhSaWdlbEluYzEMMAoGA1UECxQDUiZEMRQwEgYDVQQDEwtSaWdlbElu YyBDQTEQMA4GA1UEKRMHRWFzeVJTQTEhMB8GCSqGSIb3DQEJARYSYWxzZHVkMTU0 QHJpZ2VsLmtyMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvxLemh9m buWi+g7ruMqOt58jwxV9C+1+X9iJylhGQHfkqFtpzkTwneWS6UUi9AIhawiBmsqG 3P/qu8ouMuf6ruX2vLQPxL89me6IsJg3XhALoJUE8PytuSzxqQU6FjzGqpmI0DQV dTVU9Ssi2pnVxzyeFWYTWD5zuS69tDXSKw9kgelfFx18cPJn9IOFwvrP1yGdeNBY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InT7Pp R3N2bnR1DkZYkvyzuQtcDSm49g== -----END PRIVATE KEY----- </key> ns-cert-type server comp-lzo verb 3 dhcp-option DNS 168.126.63.1 route 10.16.50.0 255.255.255.0
그 다음 구글 스토어에서 OpenVPN Connect를 다운로드 한다.
OVPN Profile을 선택한다.
client05.ovpn을 선택 후 IMPORT를 클릭한다.
Title을 입력 후 ADD를 클릭한다.
ovpn을 connect 해보자!
정상적으로 연결되었다.
이전 포스팅
2019/10/20 - [LINUX/OpenVPN] - [OpenVPN] 2. Windows OpenVPN Client 설치
다음 포스팅
2020/04/22 - [LINUX/OpenVPN] - [OpenVPN] 4. Ubuntu OpenVPN Client 설치
반응형'LINUX > OpenVPN' 카테고리의 다른 글
[OpenVPN] 4. Ubuntu OpenVPN Client 설치 (0) 2020.04.22 [OpenVPN] 2. Windows OpenVPN Client 설치 (0) 2019.10.20 [OpenVPN] 1. 우분투에 OpenVPN 서버 설치하기 (0) 2019.10.20