Ubuntu/Debian/CentOS搭建Socks5代理一键脚本

说明

Socks5属于明文代理,不要用于科学上网,否则会被阻断端口,可用于正常的跳板使用;
比如SSH转发加速国外VPS的连接速度,特别是一些延迟高或者丢包高的VPS
使用Socks5转发后SSH就可以快速稳定的连接了,解决高丢包SSH断开的问题;

支持

支持系统
Debian7+ Ubuntu14.04+ CentOS6+

安装

01

yum install -y wget

02 下载脚本

wget --no-check-certificate https://raw.github.com/Lozy/danted/master/install.sh -O install.sh
wget --no-check-certificate https://raw.github.com/Lozy/danted/master/install.sh -O install.sh

03 安装脚本

bash install.sh  --port=端口 --user=用户名 --passwd=密码

端口设置一下4位数以内, 用户名密码随便汉字不要
例如:

bash install.sh –port=9610 –user=zs2024 –passwd=zs2024
bash install.sh –port=9610 –user=zs2024 –passwd=zs2024

其中的端口 用户名 密码自行修改后粘贴到SSH里运行安装即可;
完成后会提示Dante Server Install Successfuly即表示安装成功;
安装后如果连接不上,检查设置的端口是否已经放行;

需要修改端口用户名和密码,修改之后,请运行命令:
service sockd restart
即可生效。
说明:安装完成后会显示内网IP地址,但在实际使用的时候需要用外网IP地址;

04 关闭防火墙
systemctl stop firewalld.service

05 启动进程守护
service sockd start

06查看是否启动
service sockd status

07卸载命令
bash install.sh –uninstall

让SK5进程重启后自启动

  1. 打开终端,使用root用户登录。
  2. 使用文本编辑器打开rc.local文件:(路径如下)

sudo vi /etc/rc.d/rc.local

  1. 在文件的末尾添加执行的命令:

service sockd start

  1. 保存文件并关闭文本编辑器。
  2. 授予rc.local文件执行权限:

sudo chmod +x /etc/rc.d/rc.local

  1. 重新启动系统,您将看到添加的命令或脚本已自动执行。

使用

一般使用IP和用户名密码即可使用
如果需要固定IP或IP段,可以修改配置文件设置白名单

vi /etc/danted/sockd.conf

修改以下代码,改成你需要设置的白名单IP或IP段即可,然后重启使其生效;

client pass {
        from: 0.0.0.0/0  to: 0.0.0.0/0
}

卸载

bash install.sh --uninstall

命令

命令或者说明
service sockd start/etc/init.d/sockd start启动socks5服务器守护进程
service sockd stop/etc/init.d/sockd stop停止socks5服务器守护进程
service sockd restart/etc/init.d/sockd restart重新启动socks5服务器守护进程
service sockd reload/etc/init.d/sockd reload重新加载socks5服务器守护进程
service sockd status/系统进程状态
service sockd state/etc/init.d/sockd state运行状态
service sockd tail/etc/init.d/sockd tailsock 日志
service sockd adduser/etc/init.d/sockd adduser添加pam-auth用户:service sockd adduser NAME PASSWORD
service sockd deluser/etc/init.d/sockd deluser删除pam-auth用户:service sockd deluser NAME

所有评论(4)

  1. webbgosse说道:

    This message is used to verify that this feed (feedId:71557801550174208) belongs to me (userId:71557543415928832). Join me in enjoying the next generation information browser https://follow.is.

  2. Irma说道:

    70918248

    References:

    steroids to get ripped for sale [Irma]

  3. As a beginner, a low dosage is often suggested to allow the
    body ample time to adjust to the substance’s effects.
    Gradually rising the dose, whereas intently monitoring
    reactions, will assist ensure each security and effectiveness.
    Ladies usually are afraid of anabolic steroids as a result of
    they are going through the chance of virilization (masculinization) course of.
    As A Result Of this is an anabolic steroid with low chances to supply such unwanted effects.

    Anavar is doubtless certainly one of the mostly used cutting steroids,
    dramatically enhancing fats loss whereas retaining (or adding) lean muscle.

    With this in mind, it’s crucial to grasp the potential risks and mitigation methods.
    The transformative power of Anavar is evident in each photographic proof and personal narratives.
    Individuals who use Anavar generally observe an augmentation in lean muscle tissue, enhancement
    in muscle tone, and alterations in body composition. Anavar is acknowledged for its ability to
    facilitate fats burning and promote the development of
    lean muscle, observable through transformation images.
    It works by growing protein ranges inside cells, establishing
    a conducive surroundings for muscle progress, and
    doubtlessly augmenting muscle mass.
    Coupled with a carefully deliberate food regimen and exercise
    regime, this can lay the foundation to sculpt your physique, showcasing these rippling
    muscles you’ve been onerous at work for. Additionally, who can forget the bonus point—an urge for
    food suppression effect of Clenbuterol that may prove a boon for these on a calorie deficit journey.
    The muscle-preserving benefits of the compound stem from its
    anti-catabolic properties, which assist to prevent or slow down the breakdown of hard-earned
    muscle tissue.
    A one repetition max calculator can be a good way to trace your progress and see
    how a lot weight you have lifted overtime. It’s a good way to stay motivated
    and maintain observe of your general progress.
    Publish Cycle Therapy (PCT) comes into the picture once the mixed Anavar and Winstrol cycle concludes.
    Simply as it’s necessary to be careful for your well being through the cycle, it’s equally important to take care of your
    hormonal balance after the routine ends. A well-planned PCT
    helps your body normalize its hormonal state, guaranteeing a secure transition from an enhanced state to normalcy.
    Bold decisions usually lead to extraordinary
    results, especially in the bodybuilding circuit.

    We have discovered that supplementing with TUDCA also can alleviate hepatic strain when taking orals like Anavar.
    We find that women are rarely troubled by the unwanted effects of Anavar, especially
    from a masculinization/virilization perspective.
    This may have a noticeable effect on muscle hypertrophy as nicely as improve muscle definition. Furthermore,
    Anavar is an oral steroid, which is preferable to injectable
    steroids (for many women). Also, users are advised to get their ALT and AST
    levels checked pre-cycle to make sure they’re in a standard range.

    To preserve optimal levels of oxymetholone in your
    bloodstream, it’s advised to take two doses throughout the day (instead of one).
    It is crucial with steroids to not take lengthy cycles and to give the liver ample rest to
    regenerate post-cycle. Bodybuilders could
    lose some dimension post-cycle from this stack, which
    may be attributed to expelled intracellular water retention.
    To combat the onset of gynecomastia during a cycle, our sufferers will
    sometimes take a SERM (such as Nolvadex) to minimize back
    heightened estrogen ranges in the breast tissue. With this Deca Durabolin and Anadrol cycle,
    the person is using larger doses. Deca Durabolin is
    not a toxic steroid like Anadrol, so side effects are going to be milder than operating Anadrol
    by itself.
    Consequently, physique temperature will increase, and customers
    enter a state of thermogenesis, successfully accelerating fats loss at
    relaxation. Typically, anabolic steroids are hepatotoxic,
    as indicated by our liver operate checks. Nonetheless, Andriol
    doesn’t cause any notable hepatic strain, based
    on long-term analysis.
    Furthermore, Dr. McClain states that testosterone ranges are more likely to recover post-cycle, particularly in moderately aged and healthy people.

    Ladies are likely to expertise sensitivity from Ostarine, particularly of their breast and vaginal areas.
    A transient impact could happen post-cycle, where a woman experiences a low libido till her endogenous testosterone ranges normalize.
    This anabolic effect could also be extra pronounced
    in women because of their having solely 5% of the testosterone of men (2).
    There are 5 primary ways in which steroids have an result on the face, none of that are
    particularly flattering. Of course, the effects shall be more pronounced on females as they are
    introducing male growth hormones into their system. Over that very same
    three month period, you also needs to expertise some quite vital
    strength positive aspects.
    A standard PCT cycle will typically not restore testosterone ranges following Trenbolone use, and longer-term TRT
    can be required. I recommend testosterone cruising for four
    months following this cycle, keeping in thoughts there’s no assure
    of T levels returning totally again to regular after
    using Tren. Ladies who’re comfortable with higher
    doses of Anavar and who don’t undergo virilization effects can contemplate including one other 5-10mg to the Anavar dose suggestion above.

    Customers ought to concentrate on possible virilization results and regularly monitor health to
    maintain a balanced and accountable method to its utilization. One essential aspect of
    managing hormonal balance is monitoring estrogen ranges.
    Although Anavar use may not trigger a significant enhance in estrogen, it’s nonetheless important
    to maintain it in verify as an extra can lead to negative effects similar to water retention and gynecomastia.
    Moreover, regulating cortisol levels is important for preventing muscle breakdown and selling
    fat loss throughout PCT. An skilled consumer might contemplate stacking Anavar with other steroids to
    boost outcomes throughout a cutting section. Generally, Anavar is stacked with compounds corresponding
    to Testosterone, Winstrol, or Trenbolone. When stacking, it’s important to adjust
    your Anavar dosage to prevent overexposure to anabolic steroids and
    minimize the risk of unwanted effects.
    There is all the time a direct affiliation between enhanced energy, measurement, and gym
    efficiency and elevated testosterone ranges.
    Due to the impact Anavar has on testosterone ranges, and specifically DHT, the
    most potent androgen generated by the physique, it is ready to enhance a person’s energy
    in a highly effective method. The Meals and Drug Administration (FDA) granted orphan drug standing for the remedy of alcoholic hepatitis,
    Turner syndrome, and HIV-induced weight loss in subsequent years.
    It is also indicated as an antidote to catabolism introduced on by prolonged corticosteroid therapy.
    As a result of FDA strain on the anabolic steroid trade, it was removed from circulation after a while.
    Ben Johnson’s gold medal from the previous year’s 100-meter race on the Seoul Olympics was revoked
    because of his use of winstrol.
    Nevertheless, it is important to stick to the really helpful cycle length and
    dosage, as excessive use can result in antagonistic unwanted side effects.
    Whereas PCT is often not necessary after a feminine Winstrol cycle, monitoring
    hormone ranges remains to be really helpful to ensure a correct hormonal stability.

    Some customers may discover it beneficial to include supplements or particular vitamin plans to help help their body
    through the restoration phase. After a cycle of Winstrol, girls
    might notice better muscle definition, enhanced vascularity,
    elevated energy and stamina, and sooner recovery times.

    References:

    closest thing to steroids on the market

  4. I’m extremely impressed along with your writing skills and also with the structure for your blog. Is this a paid topic or did you modify it yourself? Either way keep up the excellent quality writing, it is uncommon to look a great blog like this one these days!

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注