어제는 Private Internet Access VPN (PIA VPN)을 이용해 토렌트를 다운받는 방법을 소개해 드렸는데요.
오늘은 Surfshark VPN을 이용해 서버에 토렌트 자료를 다운받는 방법을 알려드리겠습니다.
[설치환경] Ubuntu 23.04
1. 각 도커별 config 폴더 및 다운로드 폴더 생성
mkdir -p /docker/gluetun
mkdir -p /docker/qbittorrent
mkdir -p /docker/transmission
mkdir -p /video
2. Surfshark의 conf 파일 확보
https://my.surfshark.com/vpn/manual-setup/main/wireguard/generate-key
서프샤크 VPN 로그인 후 VPN 수동 설정에서 키 쌍을 만들어 줍니다.
이후 VPN 우회할 국가의 conf 파일을 다운받고 메모장 등으로 실행합니다.
3. Portainer에서 Stack에 아래 구문 붙여넣고 폴더 경로나 포트 등 수정 후 Deploy
(docker-compose.yml 만들어서 붙여넣고 docker-compose up -d 해도 상관없어요)
이 때 surfshark 개인키는 과정2에서 다운받은 conf 파일에 나와 있는 PrivateKey를 붙여넣으셔야 합니다.
version: "3.8"
services:
gluetun:
image: qmcgaw/gluetun
container_name: gluetun
cap_add:
- NET_ADMIN
ports:
- 9091:9091 <- transmission 포트
- 8080:8080 <- Qbittorrent 포트
volumes:
- /docker/gluetun:/gluetun <- gluetun config 폴더
environment:
- VPN_SERVICE_PROVIDER=surfshark
- VPN_TYPE=wireguard
- WIREGUARD_PRIVATE_KEY=#############################= <- surfshark 개인키
- WIREGUARD_ADDRESSES=10.14.0.2/16 <- surfshark 주소
- SERVER_COUNTRIES=Japan <- 우회할 국가
restart: unless-stopped
transmission:
image: linuxserver/transmission
container_name: transmission
environment:
- PUID=1000 <- uid 넘버
- PGID=1000 <- gid 넘버
- TZ=Asia/Seoul
- USER=transmission_ID <- transmission 로그인용 아이디
- PASS=transmission_PW <- transmission 로그인용 비밀번호
volumes:
- /docker/transmission:/config <- transmission config 폴더
- /video:/downloads <- 다운로드 폴더
network_mode: "service:gluetun"
depends_on:
- gluetun
restart: unless-stopped
qbittorrent:
image: linuxserver/qbittorrent
container_name: qbittorrent
environment:
- PUID=1000 <- uid 넘버
- PGID=1000 <- gid 넘버
- TZ=Asia/Seoul
- WEBUI_PORT=8080 <- qbittorrent 웹UI 포트
volumes:
- /docker/qbittorrent:/config <- qbittorrent config 폴더
- /video:/downloads <- 다운로드 폴더
restart: unless-stopped
network_mode: "service:gluetun"
depends_on:
- gluetun
4. gluetun logs 확인
Public IP address is 37.19.xxx.xxx (Japan, Tokyo, Tokyo)
일본 도쿄로 VPN 연결 완료
5. qbittorrent 콘솔 접속해서 curl ifconfig.me 입력해서 접속된 IP Address 확인
37.19.xxx.xxx로 일본 도쿄로 VPN 우회 확인
끝. 이제 맘 놓고(?) qibttorrent 혹은 transmission 통해 필요한 자료 다운로드 하면 됩니다.
드라마 한 편 다운받는데 속도가 13.4MiB/S가 나오네요. 빠르진 않지만 안전하게 쓰면서 이정도 속도면 준수해 보입니다.
qbittorrent, transmission에 VPN Unlimited (wireguard) 적용하기 (0) | 2023.09.21 |
---|---|
qbittorrent, transmission에 Private Internet Access (PIA) VPN 적용하기 (0) | 2023.09.19 |