You need to install wget
, and git
previously
For Ubuntu / Debian : apt install -y wget git
For CentOS / Rocky : yum install -y wget git
- Install Docker
wget -qO- get.docker.com | bash
- Install Docker-Compose
wget -O /usr/local/bin/docker-compose "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)"
chmod +x /usr/local/bin/docker-compose
- Clone this Repository
mkdir -p /etc/naiveproxy /var/www/html /var/log/caddy
git clone https://github.com/bolucat/naive /etc/naiveproxy
chmod +x /etc/naiveproxy/*.sh
cp -r /etc/naiveproxy/naiveproxy.service /etc/systemd/system
- Modify the configuration with Caddyfile
cat > /etc/naiveproxy/Caddyfile <<EOF
{
admin off
log {
output file /var/log/caddy/access.log
level INFO
}
servers :443 {
protocol {
experimental_http3
}
}
}
:80 {
redir https://{host}{uri} permanent
}
:443, your_domain.com #Modify to your domain
tls your@email.com #Modify to your email address
route {
forward_proxy {
basic_auth user_name your_password #Modify to your user name and password
hide_ip
hide_via
probe_resistance rP7uSWkJpZzfg5g2Qr.com #Modify to a secret domain, like password
}
file_server {
root /var/www/html
}
}
EOF
- Change System UDP-Buffer-Size
sysctl -w net.core.rmem_max=2500000
- Start Naiveproxy (Start with Linux)
systemctl start naiveproxy
systemctl enable naiveproxy
- Update Naiveproxy
systemctl restart naiveproxy
- Stop Naiveproxy
systemctl stop naiveproxy