甲骨文云搭建xray免流上网节点
- 平台: Windows 10 Pro
- 工具: 免流卡
目前我知道的几种免流组合方式在此罗列,没有详细的图文因为我没有测试的免流卡,只放出服务器端配置,支持有偿远程协助。
xray:vless+tcp+http (已测试)
Cannot load image on this device.
none.blue
服务器端配置如下:
#!/bin/sh
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -F;netfilter-persistent save
# Xray Installation
wget -O /usr/local/bin/xray https://github.com/none-blue/xray-amd64/raw/main/xray
chmod +x /usr/local/bin/xray
cat <<EOF > /etc/systemd/system/xray.service
[Unit]
Description=The Xray Proxy Serve
After=network-online.target
[Service]
ExecStart=/usr/local/bin/xray -c /etc/xray/serve.toml
ExecStop=/bin/kill -s QUIT $MAINPID
Restart=always
RestartSec=15s
[Install]
WantedBy=multi-user.target
EOF
systemctl daemon-reload
systemctl enable xray
# Xray Configuration
# custom id = "none.blue"
mkdir -p /etc/xray
cat <<EOF > /etc/xray/serve.toml
[log]
loglevel = "none"
[[inbounds]]
port = 80
protocol = "vless"
[inbounds.settings]
decryption = "none"
[[inbounds.settings.clients]]
id = "none.blue"
[inbounds.streamSettings]
network = "tcp"
[inbounds.streamSettings.tcpSettings]
[inbounds.streamSettings.tcpSettings.header]
type = "http"
[[outbounds]]
protocol = "freedom"
EOF
systemctl start xray
xray:vless+websocket (未测试)
Cannot load image on this device.
none.blue
服务器端配置如下:
#!/bin/sh
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -F;netfilter-persistent save
# Xray Installation
wget -O /usr/local/bin/xray https://github.com/none-blue/xray-amd64/raw/main/xray
chmod +x /usr/local/bin/xray
cat <<EOF > /etc/systemd/system/xray.service
[Unit]
Description=The Xray Proxy Serve
After=network-online.target
[Service]
ExecStart=/usr/local/bin/xray -c /etc/xray/serve.toml
ExecStop=/bin/kill -s QUIT $MAINPID
Restart=always
RestartSec=15s
[Install]
WantedBy=multi-user.target
EOF
systemctl daemon-reload
systemctl enable xray
# Xray Configuration
# custom id = "none.blue"
mkdir -p /etc/xray
cat <<EOF > /etc/xray/serve.toml
[log]
loglevel = "info"
[[inbounds]]
port = 80
protocol = "vless"
[inbounds.settings]
decryption = "none"
[[inbounds.settings.clients]]
id = "none.blue"
[inbounds.streamSettings]
network = "ws"
#[inbounds.streamSettings.wsSettings]
#[inbounds.streamSettings.wsSettings.headers]
#Host = "189.cn"
[[outbounds]]
protocol = "freedom"
EOF
systemctl start xray
xray:vless+websocket+xtls (未测试)
Cannot load image on this device.
none.blue
服务器端配置如下:
#!/bin/sh
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -F;netfilter-persistent save
# Xray Installation
wget -O /usr/local/bin/xray https://github.com/none-blue/xray-amd64/raw/main/xray
chmod +x /usr/local/bin/xray
cat <<EOF > /etc/systemd/system/xray.service
[Unit]
Description=The Xray Proxy Serve
After=network-online.target
[Service]
ExecStart=/usr/local/bin/xray -c /etc/xray/serve.toml
ExecStop=/bin/kill -s QUIT $MAINPID
Restart=always
RestartSec=15s
[Install]
WantedBy=multi-user.target
EOF
systemctl daemon-reload
systemctl enable xray
# Xray Configuration
# custom id = "none.blue"
mkdir -p /etc/xray
cat <<EOF > /etc/xray/serve.toml
[log]
loglevel = "info"
[[inbounds]]
port = 80
protocol = "vless"
[inbounds.settings]
decryption = "none"
[[inbounds.settings.clients]]
id = "none.blue"
flow = "xtls-rprx-direct"
[inbounds.streamSettings]
network = "ws"
security = "xtls"
#[inbounds.streamSettings.wsSettings]
#[inbounds.streamSettings.wsSettings.headers]
#Host = "189.cn"
[[outbounds]]
protocol = "freedom"
EOF
systemctl start xray
xray:vless+websocket+xtls+cdn (废)
Cannot load image on this device.
none.blue
伪装的 http 的 host 无法通过 cloudflare 的 cdn
https://github.com/XTLS/Xray-core/issues/246
xray:vless+tcp+http+xtls (废)
Cannot load image on this device.
none.blue
flow": "xtls-rprx-direct"
和 HTTP 伪装冲突,或许要 xtls 改成 tls ?
https://github.com/XTLS/Xray-core/issues/160
xray:vless+http/2 (未测试)
Cannot load image on this device.
none.blue
服务器端需要只能 HTTP 伪装的 host 吗?还是只要在客户端设置即可?
#!/bin/sh
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -F;netfilter-persistent save
# Xray Installation
wget -O /usr/local/bin/xray https://github.com/none-blue/xray-amd64/raw/main/xray
chmod +x /usr/local/bin/xray
cat <<EOF > /etc/systemd/system/xray.service
[Unit]
Description=The Xray Proxy Serve
After=network-online.target
[Service]
ExecStart=/usr/local/bin/xray -c /etc/xray/serve.toml
ExecStop=/bin/kill -s QUIT $MAINPID
Restart=always
RestartSec=15s
[Install]
WantedBy=multi-user.target
EOF
systemctl daemon-reload
systemctl enable xray
# Xray Configuration
# custom id = "none.blue"
mkdir -p /etc/xray
cat <<EOF > /etc/xray/serve.toml
[log]
loglevel = "none"
[[inbounds]]
port = 80
protocol = "vless"
[inbounds.settings]
decryption = "none"
[[inbounds.settings.clients]]
id = "none.blue"
[inbounds.streamSettings]
network = "h2"
security = "tls"
#[inbounds.streamSettings.tlsSettings]
#serverName = "189.cn"
#[inbounds.streamSettings.httpSettings]
#host = ["189.cn"]
[[outbounds]]
protocol = "freedom"
EOF
systemctl start xray
Loading ...
无广告!