你的位置:首页 > 互联网IT

gost,gost3,gost-v3,gost3配置文件教材,http代理,socks5代理,转发端口,shadowsocks代理,SS代理,负载均衡,中转服务,端口映射

系统:Windows/linux

软件:gost v3.0

功能:http代理,socks5代理,转发端口,shadowsocks代理,SS代理,负载均衡,中转服务,端口映射

官网:https://gost.run/

项目地址:https://github.com/go-gost/gost

gost-v3-beta.6(使用很久,稳定版本)

本地下载1-Windows-32位:gost-windows-386-3.0.0-beta.6.zip

本地下载2-Windows-64位:gost-windows-amd64-3.0.0-beta.6.zip

本地下载3-linux-32位:gost-linux-386-3.0.0-beta.6.gz

本地下载4-linux-64位:gost-linux-amd64-3.0.0-beta.6.gz

gost-v3.0.0-rc8

本地下载5-Windows-32位:gost_3.0.0-rc8_windows_386.zip

本地下载6-Windows-64位:gost_3.0.0-rc8_windows_amd64.zip

本地下载7-linux-32位:gost_3.0.0-rc8_linux_386.tar.gz

本地下载8-linux-64位:gost_3.0.0-rc8_linux_amd64.tar.gz

项目地址下载地址:https://github.com/go-gost/gost/releases


 gost,gost3,gost-v3,gost3配置文件教材,http代理,socks5代理,转发端口,shadowsocks代理,SS代理,负载均衡,中转服务,端口映射 互联网IT

gost,gost3,gost-v3版本-命令文章

https://www.zhuguodong.com/?id=767


同类型gost-v2.0(gost2)版本

https://www.zhuguodong.com/?id=700


-----------------------------------------------------------


Windows隐藏运行软件,cmd隐藏运行,bat隐藏运行,命令窗口隐藏运行

https://www.zhuguodong.com/?id=520


linux隐藏运行软件

nohup /root/gost -L ss://aes-256-cfb:123456@:23333 >/dev/null 2>&1 &

nohup 《内容替换》 >/dev/null 2>&1 &


-----------------------------------------------------------


简单配置运行:

Windows:新建 gost.bat 文件

linux:命令窗口隐藏运行,gost要加入权限:chmod +x gost


启动参数:-c

Windows:start "" "gost.exe" -C gost.json

linux:gost -C gost.json

程序gost与文件同一目录下,说明:.json与.yaml配置文件格式(这个文件格式配置不能出现空格),教材就用.json格式演示


配置.json与.yaml格式可相互转换的


输出yaml格式配置

gost -L http://:8080 -O yaml


输出json格式配置

gost -L http://:8080 -O json


将json格式配置转成yaml格式

gost -C gost.json -O yaml

gost -C gost.yaml -O json


-----------------------------------------------------------


这篇文章是配置文件教材,更强大


Shadowsocks搭建,SS搭建,SSU搭建,TCP/UDP搭建

开始,新建:gost.json,保存配置文件


{

  "services": [

    {

      "name": "23333-tcp",

      "addr": ":23333",

      "handler": {

        "type": "ss",

        "auth": {

          "username": "aes-256-cfb",

          "password": "www.maiduoa.com"

        }

      },

      "listener": {

        "type": "tcp"

      }

    },

    {

      "name": "23333-udp",

      "addr": ":23333",

      "handler": {

        "type": "ssu",

        "auth": {

          "username": "aes-256-cfb",

          "password": "www.maiduoa.com"

        }

      },

      "listener": {

        "type": "udp"

      }

    }

  ]

}


-----------------------------------------------------------


socks搭建,socks5搭建,http搭建,socks/http搭建

开始,新建:gost.json,保存配置文件


{

  "services": [

    {

      "name": "1080",

      "addr": ":1080",

      "handler": {

        "type": "socks",

        "auth": {

          "username": "123456789",

          "password": "123456789"

       }  

       },

      "listener": {

        "type": "tcp"

       }

    },

    {

      "name": "808",

      "addr": ":808",

      "handler": {

        "type": "http",

        "auth": {

          "username": "123456789",

          "password": "123456789"

       }

       },

      "listener": {

        "type": "tcp"

       }

    }

  ]

}


-----------------------------------------------------------


端口转发,端口映射,TCP转发,UDP转发

开始,新建:gost.json,保存配置文件


{

    "services": [

        {

            "name": "23331-tcp",

            "addr": ":23331",

            "handler": {

                "type": "tcp"

            },

            "listener": {

                "type": "tcp"

            },

            "forwarder": {

                "targets": [

                    "IP或者域名:23331"

                ]

            }

        },

        {

            "name": "23331-udp",

            "addr": ":23331",

            "handler": {

                "type": "udp"

            },

            "listener": {

                "type": "udp"

            },

            "forwarder": {

                "targets": [

                    "IP或者域名:23331"

                ]

            }

        }

    ]

}


-----------------------------------------------------------


转发,转发负载均衡,TCP转发,UDP转发,负载均衡

开始,新建:gost.json,保存配置文件


{

  "services": [

    {

      "name": "23158",

      "addr": ":23158",

      "handler": {

        "type": "tcp",

        "chain": "chain-0"

      },

      "listener": {

        "type": "tcp"

      },

      "forwarder": {

        "targets": [

          "域名或者IP:23158"

        ]

      }

    },

    {

      "name": "23159",

      "addr": ":23159",

      "handler": {

        "type": "tcp",

        "chain": "chain-0"

      },

      "listener": {

        "type": "tcp"

      },

      "forwarder": {

        "targets": [

          "域名或者IP:23159"

        ]

      }

    }

  ],


  "chains": [

    {

      "name": "chain-0",

      "hops": [

        {

          "name": "hop-0",

          "selector": {

            "strategy": "round",

            "maxFails": 1,

            "failTimeout": "0s"

          },

          "nodes": [

            {

              "name": "node-0",

              "addr": "域名或者IP:22210",

              "connector": {

                "type": "ss"

              },

              "dialer": {

                "type": "ohttp"

              },

              "metadata": {

                "failTimeout": "30s",

                "maxFails": 1

              }

            },

            {

              "name": "node-1",

              "addr": "域名或者IP:22220",

              "connector": {

                "type": "ss"

              },

              "dialer": {

                "type": "ohttp"

              },

              "metadata": {

                "failTimeout": "30s",

                "maxFails": 1

              }

            },

            {

              "name": "node-2",

              "addr": "域名或者IP:22230",

              "connector": {

                "type": "ss"

              },

              "dialer": {

                "type": "ohttp"

              },

              "metadata": {

                "failTimeout": "30s",

                "maxFails": 1

              }

            }

          ]

        }

      ]

    }

  ]

}


-----------------------------------------------------------


转发,多链转发,代理与代理,代理1-代理2,多层代理

开始,新建:gost.json,保存配置文件


{

  "services": [

    {

      "name": "23333",

      "addr": ":23333",

      "handler": {

        "type": "ss",

        "chain": "chain-0",

        "auth": {

          "username": "aes-256-cfb",

          "password": "123456789"

        }

      },

      "listener": {

        "type": "tcp"

      }

    }

  ],


  "chains": [

    {

      "name": "chain-0",

      "hops": [

        {

          "name": "hop-0",

          "nodes": [

            {

              "name": "node-0",

              "addr": "IP或者域名:端口",

              "connector": {

                "type": "socks5",

                "auth": {

                  "username": "用户",

                  "password": "密码"

                }

              },

              "dialer": {

                "type": "tcp"

              }

            }

          ]

        }

      ]

    }

  ]

}


-----------------------------------------------------------


转发,多链转发,代理与代理,代理1-代理2-代理3,多层代理,3层代理以上或者更多层代理,同理

开始,新建:gost.json,保存配置文件


{

  "services": [

    {

      "name": "23333",

      "addr": ":23333",

      "handler": {

        "type": "ss",

        "chain": "chain-0",

        "auth": {

          "username": "aes-256-cfb",

          "password": "123456789"

        }

      },

      "listener": {

        "type": "tcp"

      }

    }

  ],


  "chains": [

    {

      "name": "chain-0",

      "hops": [

        {

          "name": "hop-0",

          "nodes": [

            {

              "name": "node-0",

              "addr": "IP或者域名:端口",

              "connector": {

                "type": "socks5",

                "auth": {

                  "username": "用户",

                  "password": "密码"

                }

              },

              "dialer": {

                "type": "tcp"

              }

            }

          ]

        },

        {

          "name": "hop-1",

          "nodes": [

            {

              "name": "node-0",

              "addr": "IP或者域名:端口",

              "connector": {

                "type": "socks5",

                "auth": {

                  "username": "用户",

                  "password": "密码"

                }

              },

              "dialer": {

                "type": "tcp"

              }

            }

          ]

        }

      ]

    }

  ]

}


-----------------------------------------------------------


SS-SS代理-转发-负载均衡-代理1-代理2,混合配置

开始,新建:gost.json,保存配置文件


{

  "services": [

    {

      "name": "23333",

      "addr": ":23333",

      "handler": {

        "type": "ss",

        "auth": {

          "username": "aes-256-cfb",

          "password": "123456789"

       },

        "chain": "chain-0"

      },

      "listener": {

        "type": "tcp"

      }

    },

    {

      "name": "23332",

      "addr": ":23332",

      "handler": {

        "type": "ss",

        "auth": {

          "username": "aes-256-cfb",

          "password": "123456789"

       },

        "chain": "chain-1"

      },

      "listener": {

        "type": "tcp"

      }

    },

    {

      "name": "23331",

      "addr": ":23331",

      "handler": {

        "type": "tcp",

        "chain": "chain-0"

      },

      "listener": {

        "type": "tcp"

      },

      "forwarder": {

        "targets": [

          "IP或者域名:端口"

        ]

      }

    },

    {

      "name": "23330",

      "addr": ":23330",

      "handler": {

        "type": "tcp",

        "chain": "chain-0"

      },

      "listener": {

        "type": "tcp"

      },

      "forwarder": {

        "targets": [

          "www.baidu.com:80"

        ]

      }

    }

  ],


  "chains": [

    {

      "name": "chain-0",

      "hops": [

        {

          "name": "hop-0",

          "selector": {

            "strategy": "round",

            "maxFails": 1,

            "failTimeout": "0s"

          },

          "nodes": [

            {

              "name": "node-0",

              "addr": "IP或者域名:端口",

              "connector": {

                "type": "http"

              },

              "dialer": {

                "type": "tcp"

              },

              "metadata": {

                "failTimeout": "1s",

                "maxFails": 1

              }

            },

{

              "name": "node-1",

              "addr": "www.baidu.com:808",

              "connector": {

                "type": "http"

              },

              "dialer": {

                "type": "tcp"

              },

              "metadata": {

                "failTimeout": "1s",

                "maxFails": 1

              }

            },

{

              "name": "node-2",

              "addr": "8.8.8.8:8080",

              "connector": {

                "type": "http"

              },

              "dialer": {

                "type": "tcp"

              },

              "metadata": {

                "failTimeout": "1s",

                "maxFails": 1

              }

            }

          ]

        },

        {

          "name": "hop-1",

          "selector": {

            "strategy": "round",

            "maxFails": 1,

            "failTimeout": "0s"

          },  

          "nodes": [

            {

              "name": "node-0",

              "addr": "8.8.8.8:2082",

              "connector": {

                "type": "http"

              },

              "dialer": {

                "type": "tcp"

              },

              "metadata": {

                "failTimeout": "1s",

                "maxFails": 1

              }

            }

          ]

        }

      ]

    },

    {

      "name": "chain-1",

      "hops": [

        {

          "name": "hop-0",

          "selector": {

            "strategy": "round",

            "maxFails": 1,

            "failTimeout": "0s"

          },

          "nodes": [

            {

              "name": "node-0",

              "addr": "www.baidu.com:80",

              "connector": {

                "type": "http"

              },

              "dialer": {

                "type": "ws"

              },

              "metadata": {

                "failTimeout": "1s",

                "maxFails": 1

              }

            },

{

              "name": "node-1",

              "addr": "www.baidu.com:80",

              "connector": {

                "type": "http"

              },

              "dialer": {

                "type": "ws"

              },

              "metadata": {

                "failTimeout": "1s",

                "maxFails": 1

              }

            },

{

              "name": "node-2",

              "addr": "www.baidu.com:80",

              "connector": {

                "type": "http"

              },

              "dialer": {

                "type": "ws"

              },

              "metadata": {

                "failTimeout": "1s",

                "maxFails": 1

              }

            }

          ]

        },

        {

          "name": "hop-1",

          "selector": {

            "strategy": "round",

            "maxFails": 1,

            "failTimeout": "0s"

          },  

          "nodes": [

            {

              "name": "node-0",

              "addr": "www.baidu.com:80",

              "connector": {

                "type": "socks5",

                "auth": {

                  "username": "123456",

                  "password": "123456"

                }

              },

              "dialer": {

                "type": "tcp"

              },

              "metadata": {

                "failTimeout": "1s",

                "maxFails": 1

              }

            }

          ]

        }

      ]

    }

  ]

}


-----------------------------------------------------------


gost限制带宽设置,限制网速,网速设置,网络限制

开始,新建:gost.json,保存配置文件


说明:服务器速度入100MB/10000KB,服务器速度出100MB/10000KB,线路速度入10MB/1000KB,线路速度出10MB/1000KB


gost.exe -L "ss://aes-256-cfb:123456789@:23333?limiter.in=2MB&limiter.out=2MB&limiter.conn.in=2200KB&limiter.conn.out=2200KB"


{

  "services": [

    {

      "name": "23333",

      "addr": ":23333",

      "limiter": "limiter-0",

      "handler": {

        "type": "ss",

        "auth": {

          "username": "aes-256-cfb",

          "password": "123456789"

        }

      },

      "listener": {

        "type": "tcp"

      }

    }

  ],

  "limiters": [

    {

      "name": "limiter-0",

      "limits": [

        "$ 2MB 2MB",

        "$$ 2200KB 2200KB"

      ]

    }

  ]

}


-----------------------------------------------------------


GO Simple Tunnel

GO语言实现的安全隧道

功能特性

多端口监听

多级转发链

多协议支持

TCP/UDP端口转发

TCP/UDP透明代理

DNS解析和代理

TUN/TAP设备

反向代理

负载均衡

路由控制

限速限流

准入控制

动态配置

插件系统

Prometheus监控指标

Web API

Web UI

Telegram讨论群:https://t.me/gogost


Google讨论组:https://groups.google.com/d/forum/go-gost


提交Issue:https://github.com/go-gost/gost/issues


旧版入口:v2.gost.run


下载安装

二进制文件

https://github.com/go-gost/gost/releases


源码编译


git clone https://github.com/go-gost/gost.git

cd gost/cmd/gost

go build

Docker


docker run --rm gogost/gost -V

Shadowsocks Android插件

xausky/ShadowsocksGostPlugin

https://github.com/xausky/ShadowsocksGostPlugin



  • 发表评论
  • 查看评论
【暂无评论!】

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。