HN 표시: Android 전화를 HTTP 프록시로 사용

hackernews | | 📦 오픈소스
#하드웨어/반도체
원문 출처: hackernews · Genesis Park에서 요약 및 분석

요약

이 프로젝트는 안드로이드 폰의 모바일 데이터를 통해 브라우저 트래픽을 라우팅하여 상업 VPN의 대안으로 사용할 수 있게 합니다. 브라우저는 프록시 서버에 요청을 보내고, 이를 'Proxy Exit' 앱이 설치된 폰이 전달받아 콘텐츠를 가져오는 방식으로 작동합니다. 서버는 도커 명령어로 실행하며, 브라우저 연결용 8888번 포트와 앱 연결용 9999번 포트가 필요합니다.

본문

This project gives you a way to route your browser's web traffic through an Android phone's mobile data connection. For example if you want to access content that is geo-restricted to a specific country, this is a simple alternative to a commercial VPN - provided you have a trusted contact there with an Android phone. - The Proxy Server is a service that brokers connections between the browser and phone - Proxy Exit is an Android app that runs on the phone - Your browser needs to be configured to use the Proxy Server as an HTTP proxy - The Proxy Exit app connects to the Proxy Server, making the phone available as a proxy exit node. - When the browser needs to make an HTTP request, it sends it to the Proxy Server. - The Proxy Server forwards the request to the phone over the established connection. - The phone fetches the content and returns it through the server to the browser. flowchart BT B[Browser] -- 2 --> P[Proxy Server] M[Phone - Proxy Exit] -- 1 --> P P -- 3 --> M M -- 4 --> W[Website] Run this Docker command on a machine accessible from the internet: docker run -d -p 8888:8888 -p 9999:9999 -e AUTH_CODE=XXXX registry.gitlab.com/viru7/proxy:latest | Port | Purpose | |---|---| | 8888 | Browser HTTP proxy connections | | 9999 | Mobile app connections | XXXX is your chosen password. If the server is behind NAT (such as on a home network), ensure that port 9999 is forwarded to it. Also, confirm that you know both its public IP address and its internal (local) IP address. On the phone navigate to the following URL and download the APK for the Proxy Exit app, and install it following any Android prompts to allow the installation: https://gitlab.com/viru7/proxy/-/jobs/13819560752/artifacts/browse/app/build/outputs/apk/release/ Open the app and enter the server's public IP address, port (9999 ), and your password, then tap Start. Set the browser's HTTP and HTTPS proxy to the server's internal IP address and port 8888 . On Firefox this can be set directly. For Chrome, this setting is typically inherited from the operating system. On Android, open your Wi-Fi settings, select your current network, tap the edit (pencil) icon, and expand Advanced options to locate it. It's simpler solution specially if it's the needs is temporary, and you have a trusted person that is willing to help. Also unlike a VPN service, you control both ends of the connection: your contact runs the app on their phone and you connect through it directly, with no third-party servers involved beyond the relay you host yourself. Build from the command line with: export ANDROID_HOME=/path/to/android/sdk ./gradlew assembleRelease No. What is inside the docker image is actually just a single file Java class, so if you have Java installed you can also just run: java ProxyServer.java

Genesis Park 편집팀이 AI를 활용하여 작성한 분석입니다. 원문은 출처 링크를 통해 확인할 수 있습니다.

공유

관련 저널 읽기

전체 보기 →