Всем добрый день пытаюсь поднять прокси но получаю вот такую ошибку
В терминале выполняю такие команды
sudo apt update
sudo DEBIAN_FRONTEND=noninteractive apt-get -yq upgrade
sudo apt install nano
nano install.sh
ufw status
ufw enable
ufw allow 80
ufw reload
Дальше запускаю скрипт sudo sh install.sh мой ип
В терминале выполняю такие команды
sudo apt update
sudo DEBIAN_FRONTEND=noninteractive apt-get -yq upgrade
sudo apt install nano
nano install.sh
# sudo sh ./proxy-setup.sh <server_ip>
sudo apt update
sudo apt upgrade -y
# Delete apache2
sudo apachectl stop
sudo /etc/init.d/apache2 stop
sudo apt-get purge apache2 apache2-utils apache2.2-bin apache2-common -y
sudo apt-get purge apache2* -y
sudo apt autoremove -y
sudo apt-get install iptables -y
sudo apt-get install nginx -y
sudo apt-get -y install systemd-cron
sudo rm /etc/nginx/sites-available/default
sudo rm /etc/nginx/sites-available/reverse-proxy.conf
sudo rm /etc/nginx/sites-enabled/default
echo "server {
listen 80;
server_name _1;
proxy_read_timeout 600;
proxy_connect_timeout 60;
proxy_send_timeout 300;
client_max_body_size 125M;
# access_log /var/log/nginx/reverse-access.log;
# error_log /var/log/nginx/reverse-error.log;
underscores_in_headers on;
location / {
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP \$http_x_real_ip;
proxy_set_header X-Real-Host \$http_host;
proxy_set_header Host \$http_host;
proxy_pass_request_headers on;
proxy_pass http://$1/;
}
}" >> /etc/nginx/sites-available/reverse-proxy.conf
sudo rm /etc/nginx/nginx.conf
echo "user www-data;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
events {
worker_connections 10000;
multi_accept on;
}
http {
client_max_body_size 125M;
##
# Basic Settings
##
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 300;
types_hash_max_size 2048;
# server_tokens off;
# server_names_hash_bucket_size 64;
# server_name_in_redirect off;
include /etc/nginx/mime.types;
default_type application/octet-stream;
##
# SSL Settings
##
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;# TLSv1.3; Dropping SSLv3, ref: POO>
ssl_prefer_server_ciphers on;
##
# Logging Settings
##
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
##
# Gzip Settings
##
gzip on;
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
gzip_disable \"MSIE [1-6]\.(?!.*SV1)\";
##
# Virtual Host Configs
##
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}" >> /etc/nginx/nginx.conf
# Create a link to our proxy site
ln -s /etc/nginx/sites-available/reverse-proxy.conf /etc/nginx/sites-enabled/reverse-proxy.conf
# dont forget to reload nginx
sudo service nginx restart
# install cloak
rm ~/cloak.sh
echo -n "# Getting ip list & set it to iptables
i=\$(wget -O - --header 'Content-Type:application/json' --post-data='{\"cloakApiKey\":\"clo_48279426-b23c-4717-87ad-cae789459c11\"}' '
echo \${#i}
if [ \${#i} -lt 8 ]
then
echo \"too short response\" # too short ban list , probably better leave as is
else
sudo iptables -I INPUT -s \$i -j DROP
iptables-save | awk ' !x[\$0]++' | iptables-restore
fi
# Getting TOR exit nodes list and setting into iptables
t=\$(wget -O - '
# second part of cloak
echo -n "n/,/g')
sudo iptables -I INPUT -s \$t -j DROP
iptables-save | awk ' !x[\$0]++' | iptables-restore
# Adding cron task
echo \"*/30 * * * * /root/cloak.sh > /dev/null 2>&1
0 */6 * * * reboot > /dev/null 2>&1\" >> my-cron-task
crontab my-cron-task
rm my-cron-task
# Check result
iptables -L INPUT -v -n" >> ~/cloak.sh;
chmod +x ~/cloak.sh
sh ~/cloak.sh
sudo apt update
sudo apt upgrade -y
# Delete apache2
sudo apachectl stop
sudo /etc/init.d/apache2 stop
sudo apt-get purge apache2 apache2-utils apache2.2-bin apache2-common -y
sudo apt-get purge apache2* -y
sudo apt autoremove -y
sudo apt-get install iptables -y
sudo apt-get install nginx -y
sudo apt-get -y install systemd-cron
sudo rm /etc/nginx/sites-available/default
sudo rm /etc/nginx/sites-available/reverse-proxy.conf
sudo rm /etc/nginx/sites-enabled/default
echo "server {
listen 80;
server_name _1;
proxy_read_timeout 600;
proxy_connect_timeout 60;
proxy_send_timeout 300;
client_max_body_size 125M;
# access_log /var/log/nginx/reverse-access.log;
# error_log /var/log/nginx/reverse-error.log;
underscores_in_headers on;
location / {
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP \$http_x_real_ip;
proxy_set_header X-Real-Host \$http_host;
proxy_set_header Host \$http_host;
proxy_pass_request_headers on;
proxy_pass http://$1/;
}
}" >> /etc/nginx/sites-available/reverse-proxy.conf
sudo rm /etc/nginx/nginx.conf
echo "user www-data;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
events {
worker_connections 10000;
multi_accept on;
}
http {
client_max_body_size 125M;
##
# Basic Settings
##
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 300;
types_hash_max_size 2048;
# server_tokens off;
# server_names_hash_bucket_size 64;
# server_name_in_redirect off;
include /etc/nginx/mime.types;
default_type application/octet-stream;
##
# SSL Settings
##
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;# TLSv1.3; Dropping SSLv3, ref: POO>
ssl_prefer_server_ciphers on;
##
# Logging Settings
##
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
##
# Gzip Settings
##
gzip on;
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
gzip_disable \"MSIE [1-6]\.(?!.*SV1)\";
##
# Virtual Host Configs
##
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}" >> /etc/nginx/nginx.conf
# Create a link to our proxy site
ln -s /etc/nginx/sites-available/reverse-proxy.conf /etc/nginx/sites-enabled/reverse-proxy.conf
# dont forget to reload nginx
sudo service nginx restart
# install cloak
rm ~/cloak.sh
echo -n "# Getting ip list & set it to iptables
i=\$(wget -O - --header 'Content-Type:application/json' --post-data='{\"cloakApiKey\":\"clo_48279426-b23c-4717-87ad-cae789459c11\"}' '
Вы не можете просматривать ссылку пожалуйста воспользуйтесь следующими ссылками
Вход или Регистрация
')echo \${#i}
if [ \${#i} -lt 8 ]
then
echo \"too short response\" # too short ban list , probably better leave as is
else
sudo iptables -I INPUT -s \$i -j DROP
iptables-save | awk ' !x[\$0]++' | iptables-restore
fi
# Getting TOR exit nodes list and setting into iptables
t=\$(wget -O - '
Вы не можете просматривать ссылку пожалуйста воспользуйтесь следующими ссылками
Вход или Регистрация
' | sed ':a;N;\$!ba;s/\\" >> ~/cloak.sh# second part of cloak
echo -n "n/,/g')
sudo iptables -I INPUT -s \$t -j DROP
iptables-save | awk ' !x[\$0]++' | iptables-restore
# Adding cron task
echo \"*/30 * * * * /root/cloak.sh > /dev/null 2>&1
0 */6 * * * reboot > /dev/null 2>&1\" >> my-cron-task
crontab my-cron-task
rm my-cron-task
# Check result
iptables -L INPUT -v -n" >> ~/cloak.sh;
chmod +x ~/cloak.sh
sh ~/cloak.sh
ufw enable
ufw allow 80
ufw reload
Дальше запускаю скрипт sudo sh install.sh мой ип