Skip to content

Convert OpenVPN to a v2ray node based on docker. Use soga as the v2ray backend.

License

Notifications You must be signed in to change notification settings

attr0/OpenVPN-soga

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenVPN to V2Ray Node

Convert OpenVPN to a V2Ray node based on docker. Use soga as the v2ray backend.

Similar Project to OpenVPN-xray

Usage

Environment Requirement

  • Docker
  • Docker Compose

Please prepare them yourself and clone this project into your disk.

git clone https://github.com/attr0/OpenVPN-soga.git openvpn-soga
cd openvpn-soga

Build Image

This will generate an image including the latest soga and OpenVPN.

chmod +x ./build_container.sh
./build_container.sh

The image is called OpenVPN-soga. Use the following command to see.

docker image ls

Configuration

One folder means one node.

Please copy node-example to your-node.

cp node-example <your-node>

There are four configurations.

  • soga.conf

    soga configuration file, please change to yours

  • vpn.ovpn

    OpenVPN configuration file, please change to yours

    If password auth is required, change

    auth-user-pass
    

    To

    auth-user-pass /vpn.auth
    
  • vpn.auth

    auth file for OpenVPN. If password auth is required, please change it to

    your_username
    your_password
    
  • docker-compose.yml

    controls the name of the container, ports, and file

    • change container name to yours (must be unique)

    • change ports as you desire (must follow the v2ray configuration)

    • change the file map if you wish

      !DO NOT CHANGE THE FILE PATH ON THE CONTAINER SIDE (RIGHT OF THE COLON)

Start

docker-compose up -d
docker logs <your_container_name>

Startup the container, and print the log.

In case you need to change your configuration.

docker restart <your_container_name>

Update

  1. Rebuild the image

    ./build_container.sh
  2. Recompose

    cd <your_node>
    docker-compose up -d

Enjoy it & Star⭐ it

About

Convert OpenVPN to a v2ray node based on docker. Use soga as the v2ray backend.

Topics

Resources

License

Stars

Watchers

Forks