Ваш sql сейчас настолько нечитаем, что в нём даже нет смысла ковыряться.
default via 192.168.225.1 dev enx3 proto dhcp metric 100
default via 192.168.31.1 dev enp2s0 metric 120
10.8.0.0/24 dev tun0 proto kernel scope link src 10.8.0.2
10.244.0.0/16 dev ztksez4rbn proto kernel scope link src 10.244.10.120
172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1
172.18.0.0/16 dev br-1d9b6a512d3a proto kernel scope link src 172.18.0.1
192.168.31.0/24 dev enp2s0 proto kernel scope link src 192.168.31.210
192.168.225.0/24 dev enx3 proto kernel scope link src 192.168.225.32 metric 100
server {
listen 80;
listen [::]:80;
server_name _;
error_page 500 501 502 504 505 506 507 508 509 510 511 @err;
error_page 503 @throttle;
location / {
proxy_pass http://192.168.22.2:80;
include proxy_params;
}
location @err {
return 500 "server error. please try again later.";
default_type text/plain;
}
location @throttle {
return 503 "we've detected abuse on your ip. please wait and try again later.";
default_type text/plain;
}
}
В таком случае необходимо настроить перенаправление (redirect) всех запросов с внешнего IP адреса на VPS (nginx) на Zerotier LAN (192.160.22.1), например, используя iptables.
server {
listen 80;
listen [::]:80;
server_name _;
error_page 500 501 502 504 505 506 507 508 509 510 511 @err;
error_page 503 @throttle;
root /var/www/tracker;
location / {
#root /var/www/tracker;
index index.php;
}
location /ann {
rewrite ^/ann$ /tracker/announce.php last;
}
location @err {
return 500 "server error. please try again later.";
default_type text/plain;
}
location @throttle {
return 503 "we've detected abuse on your ip. please wait and try again later.";
default_type text/plain;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
#
# # With php-fpm (or other unix sockets):
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
# # With php-cgi (or other tcp sockets):
# fastcgi_pass 127.0.0.1:9000;
#fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/tracker$fastcgi_script_name;
}
}
т.е. менялся только ipv6 для выхода в интернеты