Location>code7788 >text

gost socks5 proxy

Popularity:220 ℃/2024-10-12 16:03:40

Buy Cloud Hosting

Open all tcp ports

Configuring Cloud Hosting

/elrepo/kernel/el8/x86_64/
Select Tsinghua image source

[root@iZbp141m9g3iwgwsmh7pvzZ ]# cat >> /etc// << q
[elrepo]
name=elrepo
gpgcheck=0
baseurl=/elrepo/kernel/el8/x86_64/
enabled=1
baseurl=/elrepo/kernel8/x86_64/ enabled=1
[root@iZbp141m9g3iwgwsmh7pvzZ ]# yum --disablerepo="*" --enablerepo="elrepo" list available
If kernel-ml appears in the list, then it succeeded.
[root@iZbp141m9g3iwgwsmh7pvzZ ]# yum --enablerepo=elrepo install -y kernel-ml

kernel-ml provides the latest kernel features, hardware support and performance optimizations for users who need the latest technology or hardware. It also contains the latest security fixes, but stability should be carefully evaluated for use in production environments.

Configure the kernel you just downloaded as a self-starting kernel

vim /etc/default/grub
# Open and edit /etc/default/grub and set GRUB_DEFAULT=0.
grub2-mkconfig -o /boot/grub2/

Check if the kernel was successfully updated

[root@iZbp141m9g3iwgwsmh7pvzZ ]# uname -ra
Linux iZbp141m9g3iwgwsmh7pvzZ 4.18.0-193.28.1.el8_2.x86_64 #1 SMP Thu Oct 22 00:20:22 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
[root@iZbp141m9g3iwgwsmh7pvzZ ]# reboot
Connection closing...Socket close.

Connection closed by foreign host.

Disconnected from remote host(121.40.22.65:22) at 15:45:19.

Type `help' to learn how to use Xshell prompt.
[C:\~]$ 

Connecting to 121.40.22.65:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.

WARNING! The remote SSH server rejected X11 forwarding request.

Welcome to Alibaba Cloud Elastic Compute Service !

Activate the web console with: systemctl enable --now 

Last login: Sat Oct 12 15:36:53 2024 from 27.19.125.208
[root@iZbp141m9g3iwgwsmh7pvzZ ~]# uname -ra
Linux iZbp141m9g3iwgwsmh7pvzZ 6.11.3-1..x86_64 #1 SMP PREEMPT_DYNAMIC Thu Oct 10 16:17:06 EDT 2024 x86_64 x86_64 x86_64 GNU/Linux
[root@iZbp141m9g3iwgwsmh7pvzZ ~]# 

Setting up bbr acceleration

[root@iZbp141m9g3iwgwsmh7pvzZ ~]# echo ".default_qdisc = fq">>/etc/
[root@iZbp141m9g3iwgwsmh7pvzZ ~]# echo "net.ipv4.tcp_congestion_control = bbr">>/etc/
[root@iZbp141m9g3iwgwsmh7pvzZ ~]# sysctl -p
 = 0
 = 1
net..gc_stale_time = 120
net..rp_filter = 0
net..rp_filter = 0
net..arp_announce = 2
net..arp_announce = 2
net..arp_announce = 2
net.ipv4.tcp_max_tw_buckets = 5000
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_max_syn_backlog = 1024
net.ipv4.tcp_synack_retries = 2
.default_qdisc = fq
net.ipv4.tcp_congestion_control = bbr
[root@iZbp141m9g3iwgwsmh7pvzZ ~]# lsmod | grep bbr
tcp_bbr 20480 1
[root@iZbp141m9g3iwgwsmh7pvzZ ~]#
Enabling BBR for proxy forwarding scenarios usually results in optimizations in bandwidth utilization and latency, and overall transfer performance is improved.

Install gost

wget -c /ginuerzh/gost/releases/download/v2.11.4/gost-linux-amd64-2.11.
gzip -d gost-linux-amd64-2.11.
chmod +x gost-linux-amd64-2.11.4
mv gost-linux-amd64-2.11.4 /usr/bin/gost

Configure gost to boot up

vim /etc//gost
#add for chkconfig
#chkconfig: 2345 70 30
#description: the description of the shell
#processname: usergost
su usa001a -c "nohup gost -L=usa001a:@172.16.162.226:20001?ttl=60s &>/dev/null &"

#add account
useradd usa001a -u 1010 -M

Edit the boot-related files and add the following line
vim /etc/
#Set Gost to boot up
/etc//gost
#Save and exit
chmod a+x /etc/
#After reboot, use ps to see if the process is self-starting
ps -aux | grep gost
usa001a 945 1.1 1.3 732300 25708 ?        Sl 15:59 0:00 gost -L=usa001a:@172.16.162.226:20001?ttl=60s
root 1035 0.0 0.1 12112 2124 pts/0 S+ 15:59 0:00 grep --color=auto gost
[root@iZbp141m9g3iwgwsmh7pvzZ ~]#


Start or stop gost
/etc//gost start the gost relay program
kill `pidof gost` stop gost relay program
Application Type Source Protocol Port Policy
ALL 0.0.0.0/0 ALL ALL Allowed

Configuring the proxifier


No - No

Adding Proxy Rules

successes