Coder Social home page Coder Social logo

easystsdust's Introduction

STSDUST中转指南


本文中的一键脚本适用人群

  • 你不想做过多麻烦的设置,只想上手就立刻转发,懒得折腾,能立刻用上就最好
  • 你知道STSDUST的机器面板关于NAT策略的使用方法,分得清内外网端口是什么意思,并能自己设定NAT转发策略
  • 你知道要先设置了转发策略后,接下来才是在中转鸡上设置端口转发

如果你不符合上述条件

  1. 你知道很多相关知识,也爱折腾,只为压榨出最后一滴带宽和性能,那么放直接关闭本文,使用自己的方式进行折腾
  2. 你连端口转发都不知道,是纯纯正正的萌新

如果你是纯纯正正的萌新,请先不要急着使用一键脚本,而是跟随本文的「完整食用教程」一步步进行设置,最终通过一键脚本实现转发


一键脚本

  • 使用脚本快速中转你的流量,仅适用于STSDUST家默认开通的CentOS7.7模版机型
  • 在NAT策略已经配置好的情况下,ssh进入机器,依次执行下列2条命令直接进入配置中转阶段:
  • echo "199.232.28.133 raw.githubusercontent.com" >> /etc/hosts && echo "140.82.114.3 github.com" >> /etc/hosts
  • bash <(curl https://raw.githubusercontent.com/stsdust/EasySTSDUST/master/easy_stsdust.sh)


完整食用教程

  • 先进入官网,如图所示点击左侧侧边栏"产品服务">>"我的服务"。选择要进行端口转发的实例,并点击机子名称:
    1.png

  • 为了保证顺利实现转发,首先确认安全组策略设置正确,具体如图所示:
    2.png

  • 建立NAT转发策略,所有的端口转发都要在这里新建策略:
    3.png

  • 以SSH服务为例说明如何实现端口转发:
    4.png

  • SSH进入你的机器,并依次执行下方两条命令,根据图片内容设置中转:
  • echo "199.232.28.133 raw.githubusercontent.com" >> /etc/hosts && echo "140.82.114.3 github.com" >> /etc/hosts
  • bash <(curl https://raw.githubusercontent.com/stsdust/EasySTSDUST/master/easy_stsdust.sh)
    5.png

到此一切设置完毕,尽情享受STSDUST的产品为你带来的愉悦吧 :)

easystsdust's People

Contributors

stsdust avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.