당사는 당사 웹페이지를 개선하기 위해 쿠키를 사용합니다. 당사의 쿠키 정책 을 읽으십시오.

NAS 323

NAS를 VPN 서버로 사용하는 방법

ASUSTOR NAS를 VPN 서버로 사용하고 Windows와 Mac을 사용하여 연결하는 방법을 배웁니다.

2024-03-25

강좌 목표

이 강좌를 마치면 다음을 할 수 있게 됩니다.
1. ASUSTOR NAS를 VPN 서버로 사용하고 Windows와 Mac을 사용하여 연결할 수 있습니다.

전제 조건

강좌를 위한 전제 조건:
없음

수강생들이 갖출 것으로 기대되는 실무 지식:
해당사항 없음

요약

1. VPN 서버를 구성하는 방법
1.1 PPTP 연결을 활성화하고 구성하는 방법
1.2 OpenVPN 연결을 활성화하고 구성하는 방법

1.3 L2TP 연결을 활성화하고 구성하는 방법

2. Windows와 Mac을 사용하여 VPN 서버에 연결하는 방법
2.1 PPTP를 통해 VPN 서버에 연결하는 방법
2.1.1 Windows 11 을 사용하여 연결하는 방법
2.1.2 Windows 10 을 사용하여 연결하는 방법

2.2 OpenVPN을 통해 VPN 서버에 연결하는 방법
2.2.1 Windows 7을 사용하여 연결하는 방법
2.2.2 Mac을 사용하여 연결하는 방법

2.3 게이트웨이를 구성하고 VPN 클라이언트를 위해 라우팅하는 방법
2.3.1 Windows 7을 사용하는 구성
2.3.2 Windows10 을사용하는 구성
2.3.3 Mac을사용하는 구성

2.4 Connecting to your VPN server via L2TP/Ipsec

2.4.1 Connecting using Windows 7
2.4.2 Connecting using Windows 10
2.4.3 Connecting using a Mac
2.4.4 Connecting using an Android device
2.4.5 Connecting using an iOS device



1. VPN 서버를 구성하는 방

다음 예제에서는 ASUSTOR NAS의 VPN 서버를 구성하겠습니다.

시작하기 전에 웹 브라우저에서 ADM에 로그인한 후 [앱 센트럴]에서 [VPN 서버]를 검색하여 설치합니다.

1.1 PPTP 연결을 활성화하고 구성하는 방법

단계 1

PPTP 서비스를 활성화하기: [PPTP]에 있는 토글을 사용하여 PPTP 서비스를 활성화할 수 있습니다.


단계 2

새 사용자 추가하기: [권한] [사용자] [추가]를 선택합니다. 아래의 그림에서는 예로서 "vpn" 계정 추가를 선택했습니다. 추가하려는 사용자를 선택한 후 [저장]을 클릭합니다.


[PPTP] 확인란을 선택한 후 [적용]을 클릭합니다. 이제 "vpn" 사용자 계정이 PPTP 연결을 사용할 수 있습니다.


단계 3

고급 설정 구성하기: [설정] → [PPTP]를 선택합니다. 여기에서는 [동적 IP 주소], [최대 클라이언트 수], [인증], [최대 MTU], [최대 MRU] 및 [DNS 서버]에 대한 설정을 구성할 수 있습니다. 설정을 변경한 후에는 반드시 [적용]을 클릭합니다.



If you are using an ASUS router, please manually open port 1723 under port forwarding.
Some other routers might have to do a similar procedure.
From the router configuration interface, select [WAN] > [Virtual Server / Port Forwarding] tab > [Port Forwarding List]. Add a new item to the Port Forwarding list by entering the following information:


Service Name: A name of your choice
Port Range: 1723 ,(You can also add port 47 and select other protocol)
Local IP: Your NAS’s IP address.
Local Port: 1723
Protocol: TCP

Click on the [Add] button after you have entered all the information. Port 1723 should now be opened.

(1) port 1723, protocol TCP (2) port 47, protocol other



1.2
OpenVPN 연결을 활성화하고 구성하는 방법

단계 1

OpenVPN 서비스를 활성화하기: [OpenVPN]에 있는 토글을 사용하여 OpenVPN 서비스를 활성화할 수 있습니다.


단계 2

새 사용자 추가하기: [권한] [사용자] [추가]를 선택합니다. 아래의 그림에서는 예로서 "vpn" 계정 추가를 선택했습니다. 추가하려는 사용자를 선택한 후 [저장]을 클릭합니다.


[OpenVPN] 확인란을 선택한 후 [적용]을 클릭합니다. 이제 "vpn" 사용자 계정이 PPTP 연결을 사용할 수 있습니다.


단계 3

고급 설정 구성하기: [설정] → [OpenVPN]을 선택합니다. 여기에서 [동적 IP 주소], [전송 프로토콜], [포트], [최대 클라이언트 수], [체크섬(다이제스트)], [암호화(사이퍼)], [DNS 서버], [게이트웨이 리디렉션][VPN 링크 압축]에 대한 설정을 구성할 수 있습니다. 설정을 변경한 후에는 반드시 [적용]을 클릭합니다.


참고: OpenVPN 클라이언트의 구성 파일을 다운로드하려면 [구성 파일 다운로드] 버튼을 클릭하십시오. OpenVPN 연결을 성공적으로 완료하려면 이 파일을 VPN 클라이언트로 가져와야 합니다.
If you are using an ASUS router, please manually open port 1194 under port forwarding.
Some other routers might have to do a similar procedure.
From the router configuration interface, select [WAN] > [Virtual Server / Port Forwarding] tab > [Port Forwarding List]. Add a new item to the Port Forwarding list by entering the following information:


Service Name: A name of your choice
Port Range: 1194 
Local IP: Your NAS’s IP address.
Local Port: 1194
Protocol: UDP

Click on the [Add] button after you have entered all the information. Port 1194 should now be opened.

 


1.3 L2TP  연결을 활성화하고 구성하는 방법



STEP 1

Enabling L2TP service: Enable L2TP service by using the provided toggle button.

 






STEP 2

Add new users: Select [Privilege] > [User] > [Add]. In this example we add the user “vpn” by selecting its checkbox and then clicking on [Save].

 


 





For the added user, select the [L2TP] checkbox and then click on [Apply]. This will allow the user to use L2TP connections.







STEP 3

Modifying advanced settings: Click on [Settings] >[L2TP]. Here you will be able to configure settings such as the dynamic IP address, max client number, max MTU, DNS server and key. Make sure to click on [Apply] once you are done modifying the settings.

 


If you are using an ASUS router, please manually open port 500,4500,1701 under port forwarding.
Some other routers might have to do a similar procedure.
From the router configuration interface, select [WAN] > [Virtual Server / Port Forwarding] tab > [Port Forwarding List]. Add a new item to the Port Forwarding list by entering the following information:


Service Name: A name of your choice
Port Range:  500,4500,1701
Local IP: Your NAS’s IP address
Local Port: 500,4500,1701
Protocol: UDP

Click on the [Add] button after you have entered all the information. Port 500 should now be opened.



 

2. Windows와 Mac을 사용하여 VPN 서버에 연결하는 방법

2.1 PPTP를 통해 VPN 서버에 연결하는 방법

2.1.1 Windows 11 을 사용하여 연결하는 방법

단계 1

작업 표시줄 오른쪽에 있는 네트워크 아이콘을 클릭하고 네트워크 인터넷 설정 선택합니다


단계 2

VPN 선택합니다.


단계 3
VPN
추가 선택합니다.


단계 4
VPN
공급자에서Windows (내장) 선택합니다. VPN 연결에 대한 이름을 입력하고 ASUSTOR NAS 현재 호스트 이름 또는 WAN IP 주소를 서버 이름 또는 주소란에 입력합니다. VPN 유형으로 PPTP 선택하고 적절한 필드에 사용자 이름/비밀번호를 입력한 다음 저장을 클릭합니다.



단계 5

고급 옵션 선택합니다.


 

단계 6

많은 VPN 속성에서 편집 선택합니다.



단계
7

 보안 탭을 선택하고 VPN 서버에 대해 PAP /또는 MS-CHAP v2 프로토콜로 선택하고 프로토콜 허용 활성화합니다. 설정을 적용하려면 확인을 클릭합니다.



단계 8

연결하려면 네트워크 인터넷으로 이동하여 VPN 클릭하십시오. VPN 프로필을 선택하고 연결을 누르십시오.

 

2.1.2 Windows 10 을 사용하여 연결하는 방법

STEP 1

Click the [Network] icon on the bottom right-hand side of the system tray and select [Network Settings].

 



STEP 2

Select [VPN] from the left panel, and click [Add a VPN connection].

 



STEP 3

Select Windows (built-in) in [VPN Provider] field. Type in the name for this VPN connection and enter the WANl IP address of your ASUSTOR NAS into the [Server name or address] field. Choose PPTP as the [VPN Type], enter the username/password in the appropriate fields, and click [Save].

 

STEP 4

Now you can see that the newly created VPN connection has appeared. To specify the authentication protocol, please click [Change adapter options].

 



Right click on the VPN connection and select [Properties].

 



STEP 5

Select the [Security] tab, check the [Allow these protocols] option, then choose the same protocol (PAP or MS-CHAP v2) as the VPN server on your ASUSTOR NAS. Click [OK] to save the settings.

 



STEP 6

To establish the VPN connection, go to the Windows [NETWORK & INTERNET] > [VPN] page, select an existing VPN profile and click [Connect].

 


2.2 OpenVPN을 통해 VPN 서버에 연결하는 방법

2.2.1 Windows 7을 사용하여 연결하는 방법

단계 1

OpenVPN 프로그램을 OpenVPN 웹사이트에서 다운로드하여 설치합니다.


단계 2

ASUSTOR NAS의 VPN 서버에서 다운로드한 OpenVPN 구성 파일의 압축을 풉니다(3.2항 참조). [asustor.ovpn] 파일을 열어 VPN 서버의 WAN IP 주소를 변경한 후 변경 내용을 저장합니다. 아래의 그림에서는 VPN 서버의 WAN IP 주소가 172.16.2.102로 변경되어 있습니다.


 


단계 3

[asustor.ovpn][ca.crt] 파일을 (C:Program FilesOpenVPNconfig) 폴더에 복사합니다.


단계 4

[OpenVPN GUI]를 엽니다.

이제 시스템 트레이에 [OpenVPN GUI] 아이콘이 보입니다. 이 아이콘을 두 번 클릭합니다.


단계 5

ASUSTOR NAS VPN 서버에 대한 이름과 비밀번호를 입력한 후 [확인]을 클릭합니다.


단계 6

성공적으로 연결되면 시스템 트레이에 있는 OpenVPN GUI 아이콘이 녹색으로 표시됩니다. 이제 Windows를 사용하여 ASUSTOR NAS에 액세스할 수 있습니다.


2.2.2 Mac을 사용하여 연결하는 방법

단계1

tunnelblick을 다운로드합니다.


단계 2

[Tunnelblick]을 설치합니다.


설치 후 [실행]을 클릭합니다.


단계 3

[설정 파일 있음]을 클릭합니다.


이미 설정 파일을 ASUSTOR NAS의 VPN 서버에서 다운로드한 경우 [OpenVPN 설정]을 클릭합니다.


이제 바탕화면에서 새로 작성한 [비어 있는 Tunnelblick VPN 설정] 폴더를 볼 수 있어야 합니다. 설정 파일을 ASUSTOR NAS의 VPN 서버에서 이 폴더로 복사합니다.


[asustor.ovpn] 파일을 열고 ASUSTOR NAS VPN 서버의 WAN IP 주소를 변경합니다.


변경 내용을 파일에 저장한 후 폴더 이름을 "ASUSTORVPN.tblk"로 변경합니다.


이제 Tunnelblick VPN 구성이 성공적으로 설치되었습니다.


단계 4

Mac 메뉴 모음에서 [Tunnelblick] 아이콘을 클릭한 후 [ASUSTORVPN 연결]을 선택합니다.


단계 5

성공적으로 연결되면 아래의 그림과 같이 메뉴 모음에서 연결 상태와 시간을 볼 수 있습니다.


2.3 게이트웨이를 구성하고 VPN 클라이언트를 위해 라우팅하는 방법

VPN 클라이언트를 사용할 경우 시스템이 VPN 서버의 기본 게이트웨이를 자동으로 전달합니다. 이러한 상황에서 사용자는 인터넷에 연결할 수 없습니다. 따라서 인터넷에 연결하려면 VPN 게이트웨이와 라우팅을 변경해야 합니다.

2.3.1 Windows 7을 사용하는 구성

단계 1

VPN 연결을 마우스 오른쪽 버튼으로 클릭한 후 [속성]을 선택합니다. [인터넷 프로토콜 버전 4 (TCP/IPv4)]를 선택한 후 [속성]을 클릭합니다.


단계 2

[고급…]을 클릭합니다.


단계 3

[원격 네트워크에 기본 게이트웨이 사용] 확인란 선택을 취소합니다.


2.3.2 Windows 10을 사용하는 구성
STEP 1

Click the Windows icon on the bottom left-hand side of the taskbar, select [All apps] from the list, and scroll down to find [Windows Powershell]. Click on it to execute the program.

 



STEP 2
Issue the ”Get-VpnConnection” command to list the information of your existing VPN connections.

By default, the value of the SplitTunneling parameter is False, which means all network traffic of this VPN client will be forwarded to the VPN server’s gateway.

 



STEP 3
Issue the Set-VpnConnection -Name “ASUSTOR VPN" -SplitTunneling $True” command to change the value of the SplitTunneling parameter to True.

Note: The “ASUSTOR NAS” string in the example above must be replaced to your own VPN connection name.

 



STEP 4

Issue the Get-VpnConnection command again to verify that the change has been made successfully.

 

 

2.3.3 Mac을 사용하는 구성
단계 1

[터미널]을 열어 "ifconfig-a" 명령을 입력합니다. 이제 VPN 서버의 IP 주소를 볼 수 있습니다. Mac 운영체제는 VPN 서버에 연결하기 위해 이 게이트만 제공하기 때문에 인터넷에 연결할 수 없다는 점에 유의하십시오. 따라서 ASUSTOR NAS의 IP 주소를 수동으로 입력해야 합니다.


단계 2

10.0.1.6 또는 10.0.1.5를 ASUSTOR NAS의 WAN IP 주소로 대체하십시오. 아래의 명령들을 실행하여 인터넷에 연결할 수 있습니다.

sudo route add –net 123.51.123.123/16 10.0.1.6

또는

sudo route add –net 123.51.123.123/16 10.0.1.5







2.4 Connecting to your VPN server via L2TP/IPsec

2.4.1 Connecting using Windows 7

If you are using an ASUS router, please manually open port 500,4500,1701 under port forwarding.
Some other routers might have to do a similar procedure.
From the router configuration interface, select [WAN] > [Virtual Server / Port Forwarding] tab > [Port Forwarding List]. Add a new item to the Port Forwarding list by entering the following information:


Service Name: A name of your choice
Port Range:  500,4500,1701
Local IP: Your NAS’s IP address
Local Port: 500,4500,1701
Protocol: UDP

Click on the [Add] button after you have entered all the information. Port 500 should now be opened.








STEP 1
In Windows, go to [Control Panel] > [All Control Panel Items] > [Network and Sharing Center] and then click on [Set up a new connection or network].




STEP 2
Select [Connect to a workplace] then click [Next].





STEP 3
Select [No, create a new connection] and then click [Next].





STEP 4
Select [Use my Internet connection (VPN)]









STEP 5
In the [Internet address:] field enter your ASUSTOR NAS’s WAN IP address or domain address.




STEP 6
Enter your [User name] and [Password] and then click on [Connect]. You will now be able to access the local network resources on your ASUSTOR NAS via Windows.





Note: If you are unable to connect to the VPN Server, please ensure that the [VPN Settings] and [VPN Server] settings are identical.
Using the graphic below as an example, we check that the [Type of VPN] is L2TP/IPSec, that the data encryption method is either PAP or MS-CHAP v2 and that [Allow these protocols] radio button has been selected.


STEP 7
Click on [Start] and run “regedit”.




STEP 8
Navigate to HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesPolicyAgent and then right click and select [New] > [DWORD (32 bit) Value].






STEP 9
For the Value name enter “AssumeUDPEncapsulationContextOnSendRule”and set the Value data to “2” and then click [OK]. Restart your computer.






STEP 10
After restarting your computer, go to [Control Panel] > [Network and Internet] > [Network Connections] to see that your new connection is successful.





2.4.2 Connecting using Windows 10


If you are using an ASUS router, please manually open port 500,4500,1701 under port forwarding.
Some other routers might have to do a similar procedure.
From the router configuration interface, select [WAN] > [Virtual Server / Port Forwarding] tab> [Port Forwarding List]. Add a new item to the Port Forwarding list by entering the following information:


Service Name: A name of your choice
Port Range:  500,4500,1701
Local IP: Your NAS’s IP address
Local Port: 500,4500,1701
Protocol: UDP

Click on the [Add] button after you have entered all the information. Port 500 should now be opened.





STEP 1
Click on the [Network] icon in the system tray and then click on [Open Network and Sharing Center].




STEP 2
Click on [Set up a new connection or network].




STEP 3
Select [Connect to a workplace] then click [Next].





STEP 4
Click on [Use my Internet connection (VPN)].





STEP 5
Enter the Internet address from WAN IP of NAS, Destination name and then select the [Allow other people to use this connection] checkbox. Click on [Create] once you are done.





STEP 6
Click on [Change adapter settings]. Right-click on the VPN connection that you have just created and select [Properties]. Click on the [Security] tab and change the [Type of VPN] to L2TP/IPsec. Click on [Advanced settings], make sure the [Use preshared key for authentication] radio button is selected and then enter your key (Your key can be found from the ADM interface by selecting [VPN Server] > [Settings] > [L2TP]). Click on [OK] once you are done.




STEP 7
Click on [Start] and run “regedit”.





STEP 8
Navigate to HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesPolicyAgent and then right click and select [New] > [DWORD (32 bit) Value].





STEP 9
For the Value name enter “AssumeUDPEncapsulationContextOnSendRule”and set the Value data to “2” and then click [OK]. Restart your computer.



2.4.3 Connecting using a Mac
If you are using an ASUS router, please manually open port 500,4500,1701 under port forwarding.
Some other routers might have to do a similar procedure.
From the router configuration interface, select [WAN] > [Virtual Server / Port Forwarding] tab > [Port Forwarding List]. Add a new item to the Port Forwarding list by entering the following information:


Service Name: A name of your choice
Port Range:  500,4500,1701
Local IP: Your NAS’s IP address
Local Port: 500,4500,1701
Protocol: UDP

Click on the [Add] button after you have entered all the information. Port 500 should now be opened.






STEP 1
Click on the [Apple] icon and then select [System Preferences…].




STEP 2
Click on [Network].




STEP 3
Click on the + button, select [VPN] for “Interface:”, [L2TP Over IpSec] for “VPN Type”, enter a Service Name and then click on [Create].








STEP 4
Enter your [Server Address (Your NAS WANIP like here:123.51.123.123)] and [Account Name]. Click on [Authentication Settings…] and enter the User Account Password and Shared Secret (The Shared Secret is the key that can be found from the ADM interface by selecting [VPN Server] > [Settings] >[L2TP]).


Click [OK] and then click on [Connect].





STEP 5
Enter the VPN Server account name and password and then click on [OK].





STEP 6
After successfully connecting, you will be able to access the resources on your ASUSTOR NAS local network. If you wish to disconnect the VPN connection, you can click on the [Disconnect] button.






2.4.4 Connecting using an Android device

STEP 1
Select [Settings]>[More] > [VPN].









STEP 2
Click on [Add VPN profile], enter a name of your choice, select [L2TP/IPSEC PSK] for “Type” and enter your NAS’s IP address or URL into the [Server Address] field. Choose an encryption method and then select [Save] to complete configurations.





STEP 3
Select the created VPN profile. After entering the username and password, select [Connect] to create the VPN connection.

After creating the connection, selecting the profile again will allow you to view the associated information for the connection.



2.4.5 Connecting using an iOS device

The configurations in the following example were done using an iPhone 6.

STEP 1
In iOS, select [Settings] >[General] > [VPN].


STEP 2
Select [Add a VPN configuration…] and then enter the following information:
Type: L2TP
Description: A description of your choice
Server: Your NAS’s WAN IP address or URL
Account: Your account name
Password: The password for the account
Secret: They key that can be found in ADM interface by selecting [VPN Server]> [Settings]>[L2TP]

Once you have finished entering the information select [Done].




STEP 3
After completing the VPN profile you can select the status toggle to activate the VPN connection.

 





이 게시물이 도움이 되었습니까? / 아니요