Code Monkey home page Code Monkey logo

amdwvpns's Introduction

amdwvpns

Asus-Merlin Dual WAN VPN Support tool

v1.0.5

This project is used to solve the problem that the client can't access and use the VPN server inside the router when the dual WAN port of ASUS Merlin router is connected to the external network.

The router VPN servers involved in this project include OpenVPN server, PPTP VPN server, IPSec VPN server and WireGuard server.

The project script can be deployed and run in the JFFS partition of the router or the Entware environment in the USB disk.

Since the author's amdwprsct project has included all the functions of this project, in order to avoid the application running conflict, the project script can't run in the router at the same time as the author's amdwprsct project product.

For the author's amdwprsct project, please visit the following address: https://github.com/larsonzh/amdwprprsct.git

Installation & Operation

  1. Download the compressed package named "lzvpns-[version ID].tgz" (e.g., lzvpns-v1.0.5.tgz).

  2. Upload the compressed package to the temporary directory in the router.

  3. In the SSH terminal, use the tar command to extract files in the temporary directory:

        tar -xzvf lzvpns-[version ID].tgz
  1. After executing the above command, execute the installation script command in the newly created directory (lzvpns-[version ID]):
        To JFFS partition            ./install.sh
            or
        To the Entware of USB disk   ./install.sh entware
  1. After installation, the following commands can be executed in the lzvpns directory where the script file is located:
        Start/Restart Service        ./lzvpns.sh
        Stop Service                 ./lzvpns.sh stop
        Forced Unlocking             ./lzvpns.sh unlock
        Uninstall project files      ./uninstall.sh
  1. In the user-defined data area of the script file (lzvpns.sh), you can configure three basic operation parameters according to the instructions.
#  ------------- User Defined Data --------------

# The host port of the router, which is used by the VPN client when accessing the router 
# from the WAN using the domain name or IP address. 
# 0--Primary WAN (Default), 1--Secondary WAN
WAN_ACCESS_PORT=0

# The router host port used by VPN clients when accessing the WAN through the router.
# 0--Primary WAN (Default), 1--Secondary WAN, Other--System Allocation
VPN_WAN_PORT=0

# Polling time for detecting and maintaining PPTP/IPSec/WireGuard VPN service status.
# 1~10s (The default is 3 seconds)
POLLING_TIME=3

amdwvpns's People

Contributors

larsonzh avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

json9666

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.