1
Минусовки на DJ-X.info |
Главная | Начало | Помощь | Поиск | Пользователи | Вход | Регистрация |
server-ipv6 2001:b956:4dc2::12fe/64
# 6to4 non NAT
#server-ipv6 2002:b956:4dc2::/64
push "route-ipv6 2000::/3"
push "dhcp-option DNS 2001:4860:4860::8888"
push "dhcp-option DNS 2001:4860:4860::8844"
# START OPENVPN RULES
# NAT table rules
*nat
:POSTROUTING ACCEPT [0:0]
# Allow traffic from OpenVPN client to eth0
-A POSTROUTING -s 2001:b956:4dc2::12fe/64 -o eth0 -j MASQUERADE
-A POSTROUTING -s 2001:b956:4dc2::12fe/64 -o tun+ -j SNAT --to-source 2a03:7720::1fe
COMMIT
# END OPENVPN RULES
net/ipv4/ip_forward=1
net/ipv6/conf/all/forwarding=1
net.ipv4.ip_forward=1
net.ipv6.conf.all.forwarding=1
# Пересылает весь трафик через туннель.
push "redirect-gateway def1 bypass-dhcp bypass-dns block-local"
<iframe src="https://vk.com/video_ext.php?oid=-51189706&id=456239838&hash=bbed3d3c927a98c9" width="100%" height="320" frameborder="0" allowfullscreen></iframe>
<rule name="Запрещённый URL без COOKIES Go=1" enabled="true" patternSyntax="ECMAScript" stopProcessing="true">
<match url="\.zip$|\.rar$|\.mp3$|\.mp4$|\.m4a$|phpinfo.php$" negate="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{HTTP_COOKIE}" pattern="Go=1" negate="true" />
</conditions>
<action type="CustomResponse" statusCode="403" subStatusCode="0" statusReason="Forbidden!" statusDescription="Запрещено! Без Cookies Go=1" />
</rule>
netsh interface ipv6 delete prefixpolicy ::1/128
netsh interface ipv6 delete prefixpolicy ::/0
netsh interface ipv6 delete prefixpolicy 2002::/16
netsh interface ipv6 delete prefixpolicy ::/96
netsh interface ipv6 delete prefixpolicy ::ffff:0:0/96
netsh interface ipv6 delete prefixpolicy 2001::/32
netsh interface ipv6 show prefixpolicies
netsh interface ipv6 show subinterface
netsh interface ipv6 set subinterface "Подключение по локальной сети" mtu=1280 store=persistent
netsh interface ipv4 show subinterface
netsh interface ipv4 set subinterface "Подключение по локальной сети" mtu=1500 store=persistent
iptables -I INPUT -p tcp -m string --algo kmp --string "Baiduspider/2.0;" -j REJECT
iptables -I INPUT -p tcp -m string --algo kmp --string "name=value" -j REJECT
iptables -I INPUT -p tcp -m string --algo kmp --string "User-Agent: Bittorrent" -j REJECT
iptables -I INPUT -p tcp -m string --to 70 --algo bm --string 'GET /announce?info_hash=' -j REJECT
iptables -I INPUT -p tcp --dport 80 -m string --to 70 --algo bm --string 'Host: 217.12.203.114' -j REJECT
location /foto/png.png/ {
root /home/user/dj-x.info;
index index.html index.htm;
error_page 404 /404.html;
error_page 403 /403.html;
# Cookies & Header
add_header Pragma "no-cache";
add_header Set-Cookie "Stop_Control=1;Path=/;Max-Age=+86400";
add_header Last-Modified $date_gmt;
etag off;
}
auto lo
iface lo inet loopback
auto tun6to4
iface tun6to4 inet6 6to4
local 217.12.203.114
mtu 1280
auto he-ipv6
iface he-ipv6 inet6 v4tunnel
address 2a01:d0:ffff:63::2
netmask 64
endpoint 66.220.2.74
local 192.168.1.13
ttl 255
gateway 2a01:d0:ffff:63::1
mtu 1280
#dns-nameservers 2001:4860:4860::8888 2001:4860:4860::8844
sleep 20
/etc/init.d/dropbear restart
sleep 20
sudo service ssh restart
sleep 2
sudo service nginx restart
exit 0
location ~ \.php5$ {
# DJ-X Анти DDOS
if ($http_cookie ~* "DJ-P=4"){
return 444;
}
add_header Set-Cookie "DJ-X=ON;Path=/;Max-Age=+900";
if ($http_cookie ~ "DJ-X=ON"){
add_header Set-Cookie "DJ-XXL=1;Path=/;Max-Age=+1";
}
if ($http_cookie ~ "DJ-XXL=1"){
add_header Set-Cookie "DJ-XXL=2;Path=/;Max-Age=+1";
}
if ($http_cookie ~ "DJ-XXL=2"){
add_header Set-Cookie "DJ-XXL=3;Path=/;Max-Age=+1";
}
if ($http_cookie ~ "DJ-XXL=3"){
add_header Set-Cookie "DJ-XXL=4;Path=/;Max-Age=+1";
}
if ($http_cookie ~ "DJ-XXL=4"){
add_header Set-Cookie "DJ-XXL=5;Path=/;Max-Age=+1";
}
if ($http_cookie ~ "DJ-XXL=5"){
add_header Set-Cookie "DJ-XXL=6;Path=/;Max-Age=+1";
}
if ($http_cookie ~ "DJ-XXL=6"){
add_header Set-Cookie "DJ-XXL=7;Path=/;Max-Age=+1";
}
if ($http_cookie ~ "DJ-XXL=7"){
add_header Set-Cookie "DJ-XXL=8;Path=/;Max-Age=+1";
}
if ($http_cookie ~ "DJ-XXL=8"){
add_header Set-Cookie "DJ-XXL=9;Path=/;Max-Age=+1";
}
if ($http_cookie ~ "DJ-XXL=9"){
add_header Set-Cookie "DJ-XXL=10;Path=/;Max-Age=+1";
}
if ($http_cookie ~ "DJ-XXL=10"){
add_header Set-Cookie "DJ-XXL=11;Path=/;Max-Age=+1";
}
if ($http_cookie ~ "DJ-XXL=11"){
add_header Set-Cookie "DJ-XXL=12;Path=/;Max-Age=+1";
}
if ($http_cookie ~ "DJ-XXL=12"){
add_header Set-Cookie "DJ-XXL=13;Path=/;Max-Age=+1";
}
if ($http_cookie ~ "DJ-XXL=13"){
add_header Set-Cookie "DJ-XXL=14;Path=/;Max-Age=+1";
}
if ($http_cookie ~ "DJ-XXL=14"){
add_header Set-Cookie "DJ-XXL=15;Path=/;Max-Age=+1";
}
if ($http_cookie ~ "DJ-XXL=15"){
add_header Set-Cookie "DJ-XXL=16;Path=/;Max-Age=+1";
}
if ($http_cookie ~ "DJ-XXL=16"){
add_header Set-Cookie "DJ-XXL=17;Path=/;Max-Age=+1";
}
if ($http_cookie ~ "DJ-XXL=17"){
add_header Set-Cookie "DJ-XXL=18;Path=/;Max-Age=+1";
}
if ($http_cookie ~ "DJ-XXL=18"){
add_header Set-Cookie "DJ-XXL=19;Path=/;Max-Age=+1";
}
if ($http_cookie ~ "DJ-XXL=19"){
add_header Set-Cookie "DJ-XXL=20;Path=/;Max-Age=+1";
}
if ($http_cookie ~ "DJ-XXL=20"){
add_header Set-Cookie "DJ-XXL=21;Path=/;Max-Age=+3600";
}
if ($http_cookie ~* "DJ-XXL=21"){
return 429;
}
}
// DJ-X Анти DDoS
if (strstr($_SERVER['REQUEST_METHOD'], 'POST'))
{
if (strstr($_SERVER['HTTP_COOKIE'], 'DJ-XXL=3'))
{
Setcookie ("DJ-P", "4", time()+3600, "/");
}
}
<iframe src="http://go.dj-x.info/video_ext.php?oid=120479996&id=165004705&hash=7c4fd8dc4ec6e439&hd=1" width="607" height="360" frameborder="0"></iframe>
http://vk.com/video_ext.php и https://vk.com/video_ext.php
На нашуhttp://go.dj-x.info/video_ext.php
И будет вам счастье!
echo $_SERVER["REMOTE_ADDR"];
IPv6 - показывает, а если я вставлю в index.phpinclude "phpinfo.php";
Теперь _SERVER["REMOTE_ADDR"] будет пустым!fastcgi_param IPv6 $REMOTE_ADDR;
if (strstr($_SERVER["SERVER_ADDR"], ':'))
{
echo '<br/><B><span style="color: brown;">Ваш IPv6: <a href="http://bgp.he.net/ip/', $_SERVER["IPv6"] ,'" target="_blank" rel="nofollow">', $_SERVER["IPv6"] ,'</a>
<br />Обратный DNS: </span><span style="color: blue;">';
$myIP = gethostbyaddr(trim($_SERVER["IPv6"]));
echo iconv("", "utf-8", $myIP);
echo '</span></B>';
}
Проблема замечена в Nginx + PHP-FPM, Apache.https://vk.com/video_ext.php?oid=120479996&id=165004705&hash=7c4fd8dc4ec6e439&hd=1
http://vk.com/video_ext.php?oid=120479996&id=165004705&hash=7c4fd8dc4ec6e439&hd=1
https://vk.com/video_ext.php?
http://vk.com/video_ext.php?
http://go.dj-x.info/video_ext.php?
во всей базе данных, это быстро.https://vk.com/video_ext.php?
на этоhttp://go.dj-x.info/video_ext.php?
http://vk.com/video_ext.php?
на этоhttp://go.dj-x.info/video_ext.php?
/engine/classes/parse.class.php
var $allowed_domains = array("
И добавляем туда названия разрешенных доменов.