This commit is contained in:
2024-10-14 00:08:40 +02:00
parent dbfba56f66
commit 1462d52e13
4572 changed files with 2658864 additions and 0 deletions

16
PHP Freeproxy/index.php Normal file
View File

@@ -0,0 +1,16 @@
<?php
# call:
# http://x.y.z?open=1 öffnet proxy port für externe ip
# http://x.y.z?close=1 schließt proxy port komplett
echo "Ihre IP: " . $_SERVER['REMOTE_ADDR'];
if ($_GET["open"] == "1") {
file_put_contents("/var/www/freeproxy/ip", $_SERVER['REMOTE_ADDR'] . "\n");
`cat /var/www/freeproxy/ip >> /var/www/freeproxy/ips`;
`rm /var/www/freeproxy/ip`;
}
if ($_GET["close"] == "1") {
`rm /var/www/freeproxy/ips`;
}
`touch /var/www/freeproxy/new`;

View File

@@ -0,0 +1,10 @@
#!/bin/bash
if [ -f /var/www/freeproxy/new ]; then
/sbin/iptables -F PROXY.chain
for I in `cat /var/www/freeproxy/ips`;
do
/sbin/iptables -A PROXY.chain -p tcp -s $I --dport 8080 -j ACCEPT
done
rm /var/www/freeproxy/new
fi