server_vless_grpc_simple.json 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. {
  2. "dns": {
  3. "hosts": {
  4. "domain:listgoogle.com": "127.0.0.1"
  5. },
  6. "servers": ["1.1.1.1"]
  7. },
  8. "inbounds": [{
  9. "listen": "0.0.0.0",
  10. "port": 4430,
  11. "protocol": "vless",
  12. "settings": {
  13. "clients": [
  14. {
  15. "id": "f4ba6cd2-bcbf-4dd7-bba8-619ba269305f",
  16. "flow": ""
  17. }
  18. ],
  19. "decryption": "none"
  20. },
  21. "streamSettings": {
  22. "grpcSettings": {
  23. "serviceName": "grpc"
  24. },
  25. "network": "grpc"
  26. }
  27. }],
  28. "log": {
  29. "dnsLog": false,
  30. "loglevel": "warning"
  31. },
  32. "outbounds": [{
  33. "protocol": "freedom",
  34. "settings": {
  35. "domainStrategy": "UseIPv4"
  36. },
  37. "tag": "direct"
  38. }, {
  39. "protocol": "blackhole",
  40. "tag": "block"
  41. }],
  42. "policy": {
  43. "system": {
  44. "statsInboundDownlink": true,
  45. "statsInboundUplink": true,
  46. "statsOutboundDownlink": true,
  47. "statsOutboundUplink": true
  48. }
  49. },
  50. "routing": {
  51. "domainStrategy": "AsIs",
  52. "rules": [{
  53. "domain": ["geosite:private"],
  54. "outboundTag": "block"
  55. }, {
  56. "ip": ["geoip:private"],
  57. "outboundTag": "block"
  58. }, {
  59. "outboundTag": "direct",
  60. "port": "0-65535",
  61. "ruleTag": "default"
  62. }]
  63. },
  64. "stats": {}
  65. }