Salamat
Last edited:
sayo maam, anu settings mo?pang server ng vpn depende sayo ano trip mo
pang ano ko lang naman host ng botsayo maam, anu settings mo?
host ng bot? ehh gagawa kase ako ng noload sa vps...baka may technique po kaupang ano ko lang naman host ng bot
baka pwede pa isa hehe
slowdns ata trip nila now pero di ako surehost ng bot? ehh gagawa kase ako ng noload sa vps...baka may technique po kau
sayang lightsail ... pero cge lng kakayanin heheslowdns ata trip nila now pero di ako sure
#!/bin/bash
# Update and upgrade the system
sudo apt update && sudo apt upgrade -y
# Install necessary dependencies
sudo apt-get install -y curl wget zip unzip tar git
# Download and install Xray
wget https://github.com/XTLS/Xray-core/releases/latest/download/Xray-linux-64.zip
unzip Xray-linux-64.zip
sudo mv xray /usr/local/bin/
sudo chmod +x /usr/local/bin/xray
# Create a configuration file for Xray
sudo mkdir /usr/local/etc/xray
sudo nano /usr/local/etc/xray/config.json
# Paste the following configuration into the file and save:
{
"inbounds": [
{
"port": 443,
"protocol": "vless",
"settings": {
"clients": [
{
"id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"level": 0,
"email": "your-email@example.com"
}
],
"decryption": "none",
"fallbacks": [
{
"dest": 80
}
]
},
"streamSettings": {
"network": "tcp",
"security": "tls",
"tlsSettings": {
"alpn": [
"http/1.1"
],
"certificates": [
{
"certificateFile": "/path/to/certificate.crt",
"keyFile": "/path/to/private.key"
}
]
}
}
}
],
"outbounds": [
{
"protocol": "freedom",
"settings": {}
}
]
}
# Replace the "id" field with a unique UUIDv4 string
# Replace the "email" field with your email address
# Replace the "certificateFile" and "keyFile" fields with the path to your SSL certificate and private key files
# Start Xray
sudo systemctl start xray
# Enable Xray to start on boot
sudo systemctl enable xray
# Check the status of Xray
sudo systemctl status xray
What common OS in VPS will I use to install this script?Certainly, I can provide you with a script for a VPS that has Xray Vless installed. Below is the script:
Code:#!/bin/bash # Update and upgrade the system sudo apt update && sudo apt upgrade -y # Install necessary dependencies sudo apt-get install -y curl wget zip unzip tar git # Download and install Xray wget https://github.com/XTLS/Xray-core/releases/latest/download/Xray-linux-64.zip unzip Xray-linux-64.zip sudo mv xray /usr/local/bin/ sudo chmod +x /usr/local/bin/xray # Create a configuration file for Xray sudo mkdir /usr/local/etc/xray sudo nano /usr/local/etc/xray/config.json # Paste the following configuration into the file and save: { "inbounds": [ { "port": 443, "protocol": "vless", "settings": { "clients": [ { "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "level": 0, "email": "your-email@example.com" } ], "decryption": "none", "fallbacks": [ { "dest": 80 } ] }, "streamSettings": { "network": "tcp", "security": "tls", "tlsSettings": { "alpn": [ "http/1.1" ], "certificates": [ { "certificateFile": "/path/to/certificate.crt", "keyFile": "/path/to/private.key" } ] } } } ], "outbounds": [ { "protocol": "freedom", "settings": {} } ] } # Replace the "id" field with a unique UUIDv4 string # Replace the "email" field with your email address # Replace the "certificateFile" and "keyFile" fields with the path to your SSL certificate and private key files # Start Xray sudo systemctl start xray # Enable Xray to start on boot sudo systemctl enable xray # Check the status of Xray sudo systemctl status xray
Make sure to replace the "id", "email", "certificateFile", and "keyFile" fields in the configuration file with appropriate values. This script assumes that you have an SSL certificate and private key already installed on your server. If you don't have one, you'll need to obtain one and modify the configuration file accordingly.
kaya mo yansayang lightsail ... pero cge lng kakayanin hehe
baka may script ka maam na pang slowdns?kaya mo yan