This project sets up a simple HTTP proxy server using Node.js, which bridges a RADMIN VPN connection to a local network. This allows devices on the local network, such as phones, to access a web server running on the RADMIN VPN.
The proxy server listens for incoming HTTP requests on a specified port and forwards them to a target server running on the RADMIN VPN. If there is an error in the proxying process, the server responds with a "Bad Gateway" error.
-
Node.js installed on your machine. You can download it from nodejs.org.
-
RADMIN VPN connected and running.
- Clone the Repository
Clone the repo using:
git clone https://github.com/sukirtharajan18/radmin-proxy.git
- Install Dependencies
Navigate to the project directory and install the required dependencies:
cd radmin-proxy
npm install
- Configure the Target URL
In the server.js
file, replace the placeholder https://radmin-ip:8096
with the actual IP address and port of your web server on the RADMIN VPN.
- Start the Proxy Server
Start the proxy server using the npm start script:
npm start
You should see the following message indicating that the proxy server is running:
Proxy server is running on port 8080
- Access the Web Server from Your Phone
-
Ensure your phone is connected to the same local network (Wi-Fi) as your computer.
-
Open a web browser on your phone.
-
Enter the local IP address of your computer and the port number of the proxy server. For example:
https://192.168.1.xxx:8080
. -
You can also go to the route
https://192.168.1.xxx:8080/shutdown
to shutdown your computer.
By following these steps, you can bridge the RADMIN VPN connection to your local network, allowing devices on the local network to access the web server running on the RADMIN VPN.