Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

where is the port/uuid shown after running the shell script? #66

Closed
GuoXu-GX opened this issue Aug 18, 2020 · 4 comments
Closed

where is the port/uuid shown after running the shell script? #66

GuoXu-GX opened this issue Aug 18, 2020 · 4 comments

Comments

@GuoXu-GX
Copy link

No description provided.

@IceCodeNew
Copy link
Collaborator

IceCodeNew commented Aug 18, 2020

#61 (comment)

不会像现在已经被废除的旧安装脚本那样为用户创建一套开箱即用的配置。
你们既然选择自建,就应该自己写自己的配置了。

#63

@GuoXu-GX
Copy link
Author

开箱即用的脚本不是很好么?
为什么要废弃掉呢?

@1265578519
Copy link

1265578519 commented Aug 18, 2020

我也不懂这波操作,这是我自己写的配置文件,你可以复制使用它

vi /usr/local/etc/v2ray/config.json
修改后通过命令重启进程
service v2ray restart

查看确保在运行状态
cat /var/log/v2ray/error.log | grep started
top -b -n 1 |grep v2ray

{
        "log": {
                "access": "/var/log/v2ray/access.log",
                "error": "/var/log/v2ray/error.log",
                "loglevel": "warning"
        },
        "inbounds": [
                {
                        "port": 8880,
                        "protocol": "vmess",
                        "settings": {
                                "clients": [
                                        {
                                                "id": "da5c5b2d-06ca-4363-9b4d-3a9e23ce291d",
                                                "level": 1,
                                                "alterId": 64
                                        }
                                ]
                        },
                        "streamSettings": {
                                "network": "ws"
                        },
                        "sniffing": {
                                "enabled": true,
                                "destOverride": [
                                        "http",
                                        "tls"
                                ]
                        }
                }
                //include_ss
                //include_socks
                //include_mtproto
                //include_in_config
                //
        ],
        "outbounds": [
                {
                        "protocol": "freedom",
                        "settings": {}
                },
                {
                        "protocol": "blackhole",
                        "settings": {},
                        "tag": "blocked"
                },
                {
                        "protocol": "freedom",
                        "settings": {},
                        "tag": "direct"
                },
                {
                        "protocol": "mtproto",
                        "settings": {},
                        "tag": "tg-out"
                }
                //include_out_config
                //
        ],
        "dns": {
                "server": [
                        "8.8.8.8",
                        "1.1.1.1",
                        "localhost"
                ]
        },
        "routing": {
                "domainStrategy": "IPOnDemand",
                "rules": [
                        {
                                "type": "field",
                                "ip": [
                                        "0.0.0.0/8",
                                        "10.0.0.0/8",
                                        "100.64.0.0/10",
                                        "127.0.0.0/8",
                                        "169.254.0.0/16",
                                        "172.16.0.0/12",
                                        "192.0.0.0/24",
                                        "192.0.2.0/24",
                                        "192.168.0.0/16",
                                        "198.18.0.0/15",
                                        "198.51.100.0/24",
                                        "203.0.113.0/24",
                                        "::1/128",
                                        "fc00::/7",
                                        "fe80::/10"
                                ],
                                "outboundTag": "blocked"
                        },
                        {
                                "type": "field",
                                "inboundTag": ["tg-in"],
                                "outboundTag": "tg-out"
                        }
                        //include_ban_ad
                        //include_rules
                        //
                ]
        },
        "transport": {
                "kcpSettings": {
            "uplinkCapacity": 100,
            "downlinkCapacity": 100,
            "congestion": false
        },
                "sockopt": {
                        "tcpFastOpen": true
                }
        }
}

@IceCodeNew
Copy link
Collaborator

开箱即用的脚本不是很好么?
为什么要废弃掉呢?

@GuoXu-GX @1265578519
#51 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants