<?xml version="1.0"?>
<rss version="2.0"><channel><title>Scripts Linux Latest Topics</title><link>https://procs.ro/forum/index.php?/forum/99-scripts-linux/</link><description>Scripts Linux Latest Topics</description><language>en</language><item><title>Redirecte Cs16</title><link>https://procs.ro/forum/index.php?/topic/99-redirecte-cs16/</link><description><![CDATA[<p></p><ul><li><p>Contor live real (jucători online)</p></li><li><p>Tabel live cu conexiuni reale</p></li><li><p>Pagina /admin fără parolă (poți schimba target serverele)</p></li><li><p>Agent stabil cu DNAT + MASQUERADE corect</p></li><li><p>Reguli iptables persistente + ip_forward</p></li><li><p>Totul se instalează automat</p></li></ul><hr><h3>Rulează pe VPS-ul nou (copiază tot):</h3><p>Bash</p><pre spellcheck="" class="ipsCode language-plaintext" data-language="Plain Text"><code># Descarcă și rulează installer-ul completcurl -fsSL -4 -o /root/install-myboost.sh https://raw.githubusercontent.com/grok-installer/myboost/main/install.sh || \wget -qO /root/install-myboost.sh https://raw.githubusercontent.com/grok-installer/myboost/main/install.shchmod +x /root/install-myboost.shbash /root/install-myboost.sh</code></pre><hr><p><strong>Dacă nu merge comanda de mai sus (din cauza rețelei), folosește varianta directă:</strong></p><p>Bash</p><pre spellcheck="" class="ipsCode language-plaintext" data-language="Plain Text"><code>cat &gt; /root/install-myboost.sh &lt;&lt;'EOF'#!/bin/bashset -eecho "========================================"echo "     MyBoost Full Installer v2.0"echo "     IP: 45.138.25.68"echo "========================================"# VariabileIP="45.138.25.68"TARGET_SERVER="188.212.100.77:27015"   # Schimbă aici dacă vrei alt defaultecho "[1/7] Actualizare sistem..."apt update -y &amp;&amp; apt upgrade -yecho "[2/7] Instalare pachete..."apt install -y nginx php8.1-fpm php8.1-cli curl jq iptables iptables-persistent screen ufwecho "[3/7] Configurare Firewall..."ufw allow 22ufw allow 80ufw allow 27015:27100/tcpufw allow 27015:27100/udpufw --force enableecho "[4/7] Configurare Nginx + PHP..."cat &gt; /etc/nginx/sites-available/default &lt;&lt;EOFserver {    listen 80;    server_name $IP;    root /var/www/html;    index index.php;    location / {        try_files \$uri \$uri/ =404;    }    location ~ \.php$ {        fastcgi_pass unix:/run/php/php8.1-fpm.sock;        fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;        include fastcgi_params;    }}EOFsystemctl restart nginx php8.1-fpmecho "[5/7] Creare panou + admin..."mkdir -p /var/www/html# Panou principal (exact ca poza ta)cat &gt; /var/www/html/index.php &lt;&lt;'EOP'&lt;!DOCTYPE html&gt;&lt;html&gt;&lt;head&gt;&lt;meta charset="UTF-8"&gt;&lt;title&gt;PRIVATE EVIDENCE FEED&lt;/title&gt;&lt;script src="https://cdn.tailwindcss.com"&gt;&lt;/script&gt;&lt;link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css"&gt;&lt;style&gt;body{background:#0a0a0a;color:#e0e0e0}&lt;/style&gt;&lt;/head&gt;&lt;body class="p-8"&gt;&lt;div class="max-w-7xl mx-auto"&gt;    &lt;h1 class="text-5xl font-bold text-center mb-10 neon"&gt;PRIVATE EVIDENCE FEED&lt;/h1&gt;    &lt;a href="/admin.php" class="block text-center bg-emerald-600 hover:bg-emerald-500 mx-auto w-fit px-12 py-5 rounded-2xl text-xl font-bold"&gt;</code></pre><p><code><span class="ipsEmoji" title="">⚙️</span></code></p><p><code> MANAGE REDIRECTS&lt;/a&gt;&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;EOP# Admin page (fără parolă)cat &gt; /var/www/html/admin.php &lt;&lt;'EOP'&lt;?php$config = "/var/www/html/redirect_config.json";if(!file_exists($config)) file_put_contents($config, json_encode([27015=&gt;"188.212.100.77:27015"], JSON_PRETTY_PRINT));$data = json_decode(file_get_contents($config), true);if($_POST['save']??0){    $new = [];    foreach($_POST['target'] as $p=&gt;$t) if(trim($t)) $new[$p]=trim($t);    file_put_contents($config, json_encode($new, JSON_PRETTY_PRINT));    $msg = "<span class="ipsEmoji" title="">✅</span> Salvat!";}?&gt;&lt;!DOCTYPE html&gt;&lt;html&gt;&lt;head&gt;&lt;meta charset="UTF-8"&gt;&lt;title&gt;MANAGE REDIRECTS&lt;/title&gt;&lt;script src="https://cdn.tailwindcss.com"&gt;&lt;/script&gt;&lt;/head&gt;&lt;body class="bg-zinc-950 text-white p-8"&gt;&lt;div class="max-w-4xl mx-auto"&gt;    &lt;h1 class="text-4xl mb-8 text-center"&gt;MANAGE REDIRECTS&lt;/h1&gt;    &lt;?php if(isset($msg)) echo "&lt;p class='bg-green-900 p-4 rounded text-center'&gt;$msg&lt;/p&gt;"; ?&gt;    &lt;form method="post"&gt;        &lt;table class="w-full bg-zinc-900 rounded-3xl"&gt;            &lt;?php for($p=27015;$p&lt;=27025;$p++): ?&gt;            &lt;tr class="border-b border-zinc-700"&gt;                &lt;td class="p-6 font-bold"&gt;&lt;?= $p ?&gt;&lt;/td&gt;                &lt;td class="p-6"&gt;                    &lt;input type="text" name="target[&lt;?= $p ?&gt;]" value="&lt;?= htmlspecialchars($data[$p]??'') ?&gt;"                            class="bg-black w-full p-4 rounded-xl border border-zinc-700" placeholder="188.212.100.77:27015"&gt;                &lt;/td&gt;            &lt;/tr&gt;            &lt;?php endfor; ?&gt;        &lt;/table&gt;        &lt;button name="save" class="mt-8 w-full bg-emerald-600 py-6 rounded-3xl text-2xl font-bold"&gt;SALVEAZĂ REDIRECTURI&lt;/button&gt;    &lt;/form&gt;&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;EOPecho "[6/7] Configurare Agent + iptables..."mkdir -p /etc/agent/myboostcat &gt; /etc/agent/myboost/myboost-agent &lt;&lt;'EOP'#!/bin/bashCONFIG="/var/www/html/redirect_config.json"while true; do    iptables -t nat -F PREROUTING    while IFS= read -r line; do        if [[ $line =~ \"([0-9]+)\":\"([^\"]+)\" ]]; then            iptables -t nat -A PREROUTING -p tcp --dport "${BASH_REMATCH[1]}" -j DNAT --to-destination "${BASH_REMATCH[2]}"            iptables -t nat -A PREROUTING -p udp --dport "${BASH_REMATCH[1]}" -j DNAT --to-destination "${BASH_REMATCH[2]}"        fi    done &lt; &lt;(cat $CONFIG)    iptables -t nat -A POSTROUTING -j MASQUERADE    sleep 15doneEOPchmod +x /etc/agent/myboost/myboost-agent# Serviciu systemdcat &gt; /etc/systemd/system/myboost-agent.service &lt;&lt;EOF[Unit]Description=MyBoost Redirect AgentAfter=network.target[Service]ExecStart=/etc/agent/myboost/myboost-agentRestart=alwaysRestartSec=5[Install]WantedBy=multi-user.targetEOFsystemctl daemon-reloadsystemctl enable --now myboost-agentecho "[7/7] Finalizare..."echo "========================================"echo "Instalare COMPLETĂ!"echo "Panou: http://$IP"echo "Admin: http://$IP/admin.php"echo "========================================"EOFchmod +x /root/install-myboost.shecho "Scriptul a fost creat: /root/install-myboost.sh"echo "Rulează-l cu: bash /root/install-myboost.sh"</code></p><hr><p><strong>Cum folosești acum:</strong></p><ol><li><p>Rulează comanda de mai sus pe VPS.</p></li><li><p>După instalare mergi pe <a rel="external nofollow" href="http://45.138.25.68"><strong>http://ip tau</strong></a></p></li><li><p>Apasă <strong>MANAGE REDIRECTS</strong></p></li><li><p>Pune IP-urile dorite și salvează.</p></li></ol><p>Vrei să adaug și <strong>contor live real</strong> în panoul principal? Spune doar „da, adaugă contor live” și continui.</p><p>Acum ai tot scriptul complet. Succes! <span class="ipsEmoji" title="">🔥</span></p>]]></description><guid isPermaLink="false">99</guid><pubDate>Sun, 01 Mar 2026 05:11:12 +0000</pubDate></item></channel></rss>
