本帖最後由 角色 於 2019-1-26 00:30 編輯
在Raspberry Pi安装V2Ray是没有什么难度,大家可以安装下面每一步去做就可以把Raspberry Pi的V2Ray设成transparent proxy server。
Step 1:
1)安装好Raspbian OS (Debian)
2)更改LAN Static IP address
3)apt-get update, apt-get upgrade 更新最新的软件
Step 2:
1)安装V2Ray
2)更改 V2Ray configuration file: /etc/v2ray/config.json
/etc/v2ray/config.json- {
- "inbounds": [
- {
- "protocol": "socks",
- "port": 1081, // SOCKS 代理端口,在浏览器中需配置代理并指向这个端口
- "listen": "192.168.55.20",
- "settings": {
- "udp": true
- }
- },
- {
- "protocol": "dokodemo-door",
- "port": 12345,
- "domainOverride": ["tls","http"],
- "settings": {
- "network": "tcp,udp",
- "followRedirect": true
- }
- },
- {
- "protocol": "dokodemo-door",
- "port": 53,
- "listen": "192.168.55.20",
- "settings": {
- "address": "8.8.8.8",
- "port": 53,
- "network": "udp",
- "timeout": 0,
- "followredirect": false
- }
- }
- ],
- "outbounds": [{
- "protocol": "vmess",
- "settings": {
- "vnext": [{
- "address": "host name or IP address of remote V2Ray server", // 服务器地址,请修改为你自己的服务器 ip 或域名
- "port": 10086, // 服务器端口
- "users": [{ "id": "UUID" }]
- }]
- },
- "streamSettings": {
- "network": "kcp",
- "kcpSettings": {
- "header": {
- "type": "wechat-video"
- }
- },
- "sockopt":{
- "mark": 1
- }
- }
- },
- {
- "protocol": "freedom",
- "tag": "direct",
- "settings": {}
- }],
- "routing": {
- "domainStrategy": "IPOnDemand",
- "rules": [{
- "type": "field",
- "domain": ["geosite:cn"],
- "ip": ["geoip:private"],
- "ip": ["geoip:cn"],
- "outboundTag": "direct"
- }]
- }
- }
複製代碼 . |