npsh

NodePass Deployment Script

Introduction

NodePass is a secure, efficient TCP/UDP tunneling solution that delivers fast, reliable access across network restrictions using pre-established TLS/TCP connections.

This script provides easy-to-use master mode (API mode) installation, configuration, and management functions.

简体中文 English

Table of Contents

Features

Deployment Methods

Interactive Deployment

  1. Download and execute the script:
bash <(wget -qO- https://run.nodepass.eu/np.sh)

or

bash <(curl -sSL https://run.nodepass.eu/np.sh)
  1. Follow the prompts to select language (default is Chinese)
  2. Choose “Install NodePass” from the main menu
  3. Enter the following information as prompted:
    • Server IP (default is 127.0.0.1)
    • Port number (1024-65535, leave empty for random port between 1024-8192)
    • API prefix (default is api)
    • TLS mode (0: no encryption, 1: self-signed certificate, 2: custom certificate)
  4. Wait for installation to complete

Non-interactive Deployment

Use the following commands for non-interactive installation with command-line parameters:

Example 1: Chinese, specify server IP, port, API prefix, and no TLS encryption(Click to expand or collapse)
```bash bash <(curl -sSL https://run.nodepass.eu/np.sh) \ -i \ --language zh \ --server_ip 127.0.0.1 \ --user_port 18080 \ --prefix api \ --tls_mode 0 ```
Example 2: English, specify server IP, port, API prefix, and self-signed certificate(Click to expand or collapse)
```bash bash <(curl -sSL https://run.nodepass.eu/np.sh) \ -i \ --language en \ --server_ip localhost \ --user_port 18080 \ --prefix api \ --tls_mode 1 ```
Example 3: Chinese, specify server IP, port, API prefix, custom certificate and certificate file paths(Click to expand or collapse)
```bash bash <(curl -sSL https://run.nodepass.eu/np.sh) \ -i \ --language zh \ --server_ip 1.2.3.4 \ --user_port 18080 \ --prefix api \ --tls_mode 2 \ --cert_file </path/to/cert.pem> \ --key_file </path/to/key.pem> ```

If parameters are not specified, default configuration will be used:

Quick Commands

After installation, the system creates np shortcuts that can be used as follows:

Directory Structure

/etc/nodepass/ 
├── data                # Configuration data file 
├── nodepass            # Main program 
├── nodepass.gob        # Data storage file 
└── np.sh               # Deployment and management script

System Requirements

Deployment Screenshots

Image

Feedback

If you encounter any issues, please submit feedback at GitHub Issues.