Sunke Media Affiliates Marketing Domains Marketing Webhosting Contact Us

hy2-s5-3xui--iptables--windows-lanch

服务器工具与脚本部署指南

服务器工具与脚本部署指南

Linux 工具和脚本

Hysteria2 一键安装脚本

Hysteria2 是一个功能强大、速度极快且抗审查的代理工具。它利用定制的 QUIC 协议,在不稳定的网络环境下也能提供卓越的性能,并伪装成标准的 HTTP/3 流量,使其难以被检测和屏蔽。

适用系统: Debian (x86)

安装命令:

wget -N --no-check-certificate https://raw.githubusercontent.com/flame1ce/hysteria2-install/main/hysteria2-install-main/hy2/hysteria.sh && bash hysteria.sh

Windows 客户端:

推荐使用 Nekoray 作为 Windows 平台的客户端。

Socks5 代理一键部署脚本

此脚本可一键自动部署并配置好 Socks5 代理服务。

安装命令:

#!/bin/bash
bash <(curl -sL https://hosting.sunke.info/files/ss5.sh)

默认配置:

  • 端口: 8888
  • 账号: 8888
  • 密码: 8888

X-ui 面板一键部署脚本

X-ui 是一个支持多协议、多用户的 Xray 图形化管理面板,方便用户进行可视化操作。

安装命令:

#!/bin/bash
bash <(curl -Ls https://hosting.sunke.info/files/3x-ui-install.sh)

默认登录信息:

  • 用户名: admin
  • 密码: admin123
  • 端口: 65432

iptables 端口转发脚本

这是一个利用 iptables 设置端口转发的便捷脚本,适用于需要进行流量转发的场景。当域名解析的地址发生变化时,它可以自动更新流量转发规则,特别适合 DDNS 域名。

安装与使用:

bash <(curl -fsSL https://raw.githubusercontent.com/arloor/iptablesUtils/master/natcfg.sh)

Windows Initialization Script (PowerShell)

This PowerShell script is used for the quick initial configuration of a Windows system.

Features:

  • User Creation: Adds two users, user and sunke, both with the password Pass123@, and adds them to the administrators group.
  • Password Policy: Sets the passwords for user, sunke, and Administrator to never expire.
  • Firewall Rules: Opens inbound and outbound rules for TCP ports 80, 2200, 33899, and 65531.
  • Software Installation: Automatically downloads and silently installs the latest version of the Firefox browser.

Execution Code:

<powershell>
  # Add user 'user' with password 'Pass123@'
  net user user Pass123@ /add
  # Add user 'user' to the administrators group
  net localgroup administrators user /add
  # Add user 'sunke' with password 'Pass123@'
  net user sunke Pass123@ /add
  # Add user 'sunke' to the administrators group
  net localgroup administrators sunke /add
  # Set password for user 'user' to never expire
  wmic UserAccount where "Name='user'" set PasswordExpires=FALSE
  # Set password for user 'sunke' to never expire
  wmic UserAccount where "Name='sunke'" set PasswordExpires=FALSE
  # Set password for user 'Administrator' to never expire
  wmic UserAccount where "Name='Administrator'" set PasswordExpires=FALSE
# Define an array of ports to open in the firewall
$ports = @(80, 2200, 33899,65531)
# Loop through each port and create inbound and outbound firewall rules
foreach ($port in $ports) {
    New-NetFirewallRule -DisplayName "TCP Inbound $port" -Direction Inbound -Action Allow -Protocol TCP -LocalPort $port
    New-NetFirewallRule -DisplayName "TCP Outbound $port" -Direction Outbound -Action Allow -Protocol TCP -RemotePort $port
}
# Specify the download URL for the Firefox 64-bit installer
$sourceURL = "https://download.mozilla.org/?product=firefox-latest&os=win64&lang=zh-CN"
# Specify the destination path for the downloaded file
$destinationPath = "$env:TEMP\FirefoxInstaller.exe"
Write-Host "Downloading the latest 64-bit Firefox installer..."
# Use Invoke-WebRequest to download the file
Invoke-WebRequest -Uri $sourceURL -OutFile $destinationPath
Write-Host "Download complete. Starting silent installation of Firefox..."
# Run the installer in silent mode and wait for it to complete
Start-Process -FilePath $destinationPath -ArgumentList "/S" -Wait
# Remove the downloaded installer file
Remove-Item -Path $destinationPath -Force
Write-Host "Firefox has been installed successfully!"
</powershell>
<powershellArguments>-ExecutionPolicy Unrestricted -NoProfile -NonInteractive</powershellArguments>

AWS (亚马逊云) 管理脚本

AWS CLI - 添加 IAM 用户

通过此脚本可以快速在您的 AWS 账户中创建一个新的 IAM 用户。

使用方法:

curl -sS https://hosting.sunke.info/awsaimadduser.sh | bash -s -- <用户名> <密码>

示例:

curl -sS https://hosting.sunke.info/awsaimadduser.sh | bash -s -- user Pass123@

AWS Organizations - 创建新账户

此脚本用于在您的 AWS Organization 中创建一个全新的子账户。

使用方法:

curl -sL https://hosting.sunke.info/awsorgcreateuser.sh | bash -s -- <邮箱地址>

示例:

curl -sL https://hosting.sunke.info/awsorgcreateuser.sh | bash -s -- [email protected]

AWS CLI - 检查 EC2 vCPU 配额

此脚本用于快速查询您 AWS 账户中 us-east-1 区域的“按需标准实例”的 vCPU 配额。它会直接返回一个易于阅读的结果。

执行命令:

curl -sS https://hosting.sunke.info/ec2quotas.sh | bash

AWS CLI - 开放所有 Lightsail 实例端口

此脚本会自动查找您账户中所有的 Lightsail 实例,并将其防火墙规则修改为对所有 IPv4 和 IPv6 地址开放全部 TCP 和 UDP 端口(0-65535)。

⚠️ 重要安全警告:执行此脚本会移除所有现有的防火墙规则,并将您的所有 Lightsail 实例完全暴露在公共互联网上,这存在极大的安全风险。请仅在您完全了解并接受相关风险的情况下使用。

执行命令:

curl -sS https://hosting.sunke.info/lightsailportopen.sh | bash

AWS CLI - 更新税务信息 (澳大利亚)

此脚本用于一键更新 AWS 账户的税务信息为指定的澳大利亚商业信息。脚本会先删除旧的税务信息,然后添加新的配置。

执行命令:

curl -sS https://hosting.sunke.info/tax-au.sh | bash

AWS CLI - 更新税务信息 (尼泊尔)

此脚本用于一键更新 AWS 账户的税务信息为指定的尼泊尔个人信息,并会自动生成一个随机的税务登记号。

执行命令:

curl -sS https://hosting.sunke.info/tax-nepal.sh | bash