sonyacore / v2raygen Goto Github PK
View Code? Open in Web Editor NEWXRayGen for generating XRay JSON configs
License: GNU General Public License v3.0
XRayGen for generating XRay JSON configs
License: GNU General Public License v3.0
You're using the PersianBlockerHosts filterlists as a source to block ads:
Line 19 in f0112dd
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/iran.dat
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
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.
Hi,
How do you think about adding X-UI panel to your script so that the admin can manage the server and accounts easier.
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.
It was solved by systemctl start docker
. You may want to include it somewhere.
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:_
can you add some functionality to call external api after generating the vmess code
and send some data like vmess to api ?
what is the reason i get bad handshake error?
Dns ad blocking server not working
Ip4 not working. How can i use private ip4 dns
Debian 12
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 ...
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.
Version: V2RayGen latest version
Code which worked prior to creating docker-compose.yml is now might producing an error when generating config.
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"
},
درود
برای ایمپورت کردن لیست دامین ads در بخش rule providers قالب ساختاری Clash، بایستی قالب دامین ها بدین صورت باشد:
https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/apple.txt
در صورت امکان تصحیح بفرمایید
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
why? how i can fix this?
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:~#
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.