modulepackage
0.0.0-20230417090218-b991a160ac69
Repository: https://github.com/for-acgn/accelerator.git
Documentation: pkg.go.dev
# README
Accelerator
A simple game accelerator
build:
apt-get libpcap-dev
yum install libpcap-devel
On Windows, must enable Windows firewall for filter
outbound packets, include RST about TCP(not need rule).
add rule ICMPv4 destination unreachable(type 3, code 3),
add rule ICMPv6 destination unreachable(type 1, code 4),
On Linux, must use iptables/ip6tables for filter outbound
packets, include RST about TCP and ICMPv4/ICMPv6.
iptables -A OUTPUT -p tcp -m tcp --tcp-flags RST RST -j DROP
iptables -A OUTPUT -p icmp -m icmp --icmp-type 3 -j DROP
ip6tables -A OUTPUT -p tcp -m tcp --tcp-flags RST RST -j DROP
ip6tables -A OUTPUT -p icmpv6 -m icmpv6 --icmpv6-type 1 -j DROP
recommend enable TCP BBR for better effect(IPv4&IPv6)
sudo sysctl -w net.ipv4.tcp_congestion_control=bbr
# Functions
GeneratePasswordHash is used to generate password hash.
NewClient is used to create a new client from configuration.
NewServer is used to create a new server from configuration.
# Structs
Client is the accelerator client.
ClientConfig contains accelerator client configurations.
Server is the accelerator server.
ServerConfig contains accelerator server configurations.