Giter Site home page Giter Site logo

v2raygen's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

v2raygen's Issues

AGPLv3 license violation

You're using the PersianBlockerHosts filterlists as a source to block ads:

ADS = Request("https://raw.githubusercontent.com/MasterKia/PersianBlocker/main/PersianBlockerHosts.txt")

That filterlist is licensed under the AGPLv3:
https://github.com/MasterKia/PersianBlocker/blob/main/PersianBlockerHosts.txt#L7

The GPL explicitly prohibits the removal of its license from files, and it appears that the listed files below do not contain any license header. Therefore, you should add the appropriate GPL license header to these files to ensure compliance with the license requirements:

https://github.com/SonyaCore/V2RayGen/blob/f0112dd42588959975f86fd9f4d3a84c4e7deafc/geodata/ads.txt

https://github.com/SonyaCore/V2RayGen/blob/f0112dd42588959975f86fd9f4d3a84c4e7deafc/geodata/clash_rules.yaml

https://github.com/SonyaCore/V2RayGen/blob/f0112dd42588959975f86fd9f4d3a84c4e7deafc/geodata/iran.dat

https://github.com/SonyaCore/V2RayGen/blob/f0112dd42588959975f86fd9f4d3a84c4e7deafc/geodata/qv2ray-client.json

The GPL also requires attribution, so please add something like this in your README file:

The ads list is provided by the PersianBlocker list:
https://github.com/MasterKia/PersianBlocker

Option to add custom UUID

It would be nice if we can pass the UUID as an argument.
This way, the same client settings would be valid on a fresh installation on the same IP.

UI suggestion

Hi,
How do you think about adding X-UI panel to your script so that the admin can manage the server and accounts easier.

Cannot connect to the Docker daemon on Centos

On CentOS 9 Stream x64, I faced an error as:

Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Traceback (most recent call last):
File "", line 804, in
File "", line 435, in vmess_simple
File "", line 617, in run_docker
File "/usr/lib64/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'docker-compose -f docker-compose.yml up -d' returned non-zero exit status 1.

picture of the log attached.
image_2022-10-09_141248442

It was solved by systemctl start docker. You may want to include it somewhere.

latest v2ray image

I think there is an issue related to the latest v2ray image published yesterday.
here are the docker logs:
flag provided but not defined: -config
Usage of /usr/bin/v2ray:_

Error on installing on Ubuntu 22.04

I am installling on Ubuntu 22.04 in Arvan. Any ideas of this error?

! VMess Config Generated.
! Created vmess-v2ray docker-compose.yml configuration
Docker Not Found.
Installing Docker ...
% Total % Received % XferdDload AverageUpload SpeedTotal Time Spent TimeLeft Time CurrentSpeed
0 0 0 0 0 0 0 0 --:--:-- 0:05:00 --:--:-- 0
curl: (28) Operation timed out after 300433 milliseconds with 0 out of 0 bytes received
Failed to enable unit: Unit file docker.service does not exist.
docker-compose Not Found.
Installing docker-compose v2.11.2 ...

After upgrading all the packages. The error changed to .

curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to get.docker.com:443
Failed to enable unit: Unit file docker.service does not exist.
docker-compose Not Found.
Installing docker-compose v2.11.2 ...

Traffic limit suggestion

Hi Sonya
I use this wonderful script and thank you for it.
I want to share my configs with my friends, but I'm afraid that my configs will be exposed to the public (due to resources, bandwidth, etc.).
I tried the "conlimit" option in XRayAgent but it doesn't work for me.
It would be great and more functional if there was an option to limit traffic, like "Total traffic" in the X-UI panel.

unable to create docker-compose.yml

Version: V2RayGen latest version

Description:

Code which worked prior to creating docker-compose.yml is now might producing an error when generating config.

Demote the logging level

Dear Sonya

Would you please demote the logging level in config.json to "error"? The default right now is "warning", that leads to bulky log files.

{
  "log": {
    "loglevel": "warning",
    "access": "/var/log/v2ray/access.log", // Your path of log in Linux
    "error": "/var/log/v2ray/error.log"
  },

Download Failed !

hi
iam run this command in ubuntu 20.04
curl https://raw.githubusercontent.com/SonyaCore/V2RayGen/main/V2RayGen.py | sudo python3 - --vmess

and than i got this error:

! VMESS Config Generated.
! Created xray-core docker-compose.yml configuration
Docker Not Found.
Installing Docker ...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 19873 100 19873 0 0 497k 0 --:--:-- --:--:-- --:--:-- 497k

Executing docker install script, commit: 4f282167c425347a931ccfd95cc91fab041d414f

  • sh -c apt-get update -qq >/dev/null
    E: The repository 'http://deb.debian.org/debian $ Release' does not have a Release file.
    Download Failed !

why? how i can fix this?

same id for xray

After some trying, I found out that in some circumstances, there is a chance that Xray creates same id for new users again and again.
fault

error in add user config

root@proxy05:~# python3 XRayAgent.py

__   _______                                      _   
\ \ / /  __ \               /\                   | |  
 \ V /| |__) |__ _ _   _   /  \   __ _  ___ _ __ | |_ 
  > < |  _  // _` | | | | / /\ \ / _` |/ _ \ '_ \| __|
 / . \| | \ \ (_| | |_| |/ ____ \ (_| |  __/ | | | |_ 
/_/ \_\_|  \_\__,_|\__, /_/    \_\__, |\___|_| |_|\__|
                    __/ |         __/ |               
                   |___/         |___/                


Loaded Config : config.json
Docker Compose : ON
IP : 164.90.189.7
Protocol : vmess
PORT : 443

XRayAgent.py [options]
    USER Management :
    add, adduser                             Add user
    update, updateuser                       Update existing user
    del, deluser                             Delete existing user
    users, listusers                         List of users

    IPTables :
    deliptables, deleteiptables              Delete rules on server-side port
    climit , conlimit                        Add IP limitations on server-side port

    p, port                                  Change server side port
    h, help                                  Get help
    v, version                               Get version
    q, quit                                  Exit program

cmd > : add
! ADDING User
! Leave Sections Empty for Random Value
Email :[email protected]
ID / UUID : tj2ptj2;t3
AlterID 0 to 64 : 1
ADD user success! uuid: tj2ptj2;t3, alterId: 1, email : [email protected]
Traceback (most recent call last):
  File "/root/XRayAgent.py", line 772, in <module>
    commands["adduser"]()
  File "/root/XRayAgent.py", line 535, in create_user
    link_generator(data, -1)
  File "/root/XRayAgent.py", line 435, in link_generator
    security = data["inbounds"][0]["security"]
KeyError: 'security'
root@proxy05:~# 

How to run multiple configs?

Hi
Many thanks for the awesome script it is super helpful for us. I have created multiple configs like vmess, vless ... but how can I run them?

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.