mirror of
https://github.com/hak5/nano-tetra-modules.git
synced 2025-10-29 16:58:09 +00:00
Update module.php
This commit is contained in:
parent
35c9e7b4e2
commit
980dead10c
@ -575,6 +575,8 @@ class EvilPortal extends Module
|
||||
exec("iptables -A INPUT -s 172.16.42.1 -j ACCEPT");
|
||||
exec("iptables -A OUTPUT -s 172.16.42.1 -j ACCEPT");
|
||||
|
||||
//Block https till login
|
||||
exec("iptables -t nat -A PREROUTING -i br-lan -p tcp --dport 443 -j DNAT --to-destination 172.16.42.1:80");
|
||||
//exec("iptables -A INPUT -i br-lan -p tcp --dport 443 -j DROP");
|
||||
//exec("iptables -t nat -A PREROUTING -i br-lan -j DROP");
|
||||
|
||||
@ -610,6 +612,7 @@ class EvilPortal extends Module
|
||||
}
|
||||
|
||||
exec("iptables -t nat -D PREROUTING -i br-lan -p tcp --dport 80 -j DNAT --to-destination 172.16.42.1:80");
|
||||
exec("iptables -t nat -D PREROUTING -i br-lan -p tcp --dport 443 -j DNAT --to-destination 172.16.42.1:80"); //enable https again
|
||||
exec("iptables -D INPUT -p tcp --dport 53 -j ACCEPT");
|
||||
exec("iptables -D INPUT -j DROP");
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user