From Nate, 2 Weeks ago, written in Bash.
This paste will expire in 1 Week. ">

A PHP Error was encountered

Severity: Notice

Message: Trying to access array offset on value of type bool

Filename: view/view.php

Line Number: 25

Backtrace:

File: /home/pastesite_org/htdocs/themes/fibranet/views/view/view.php
Line: 25
Function: _error_handler

File: /home/pastesite_org/htdocs/application/core/MY_Loader.php
Line: 147
Function: include

File: /home/pastesite_org/htdocs/application/core/MY_Loader.php
Line: 33
Function: _ci_load

File: /home/pastesite_org/htdocs/application/controllers/Main.php
Line: 599
Function: view

File: /home/pastesite_org/htdocs/index.php
Line: 284
Function: require_once

from

A PHP Error was encountered

Severity: Notice

Message: Trying to access array offset on value of type bool

Filename: view/view.php

Line Number: 25

Backtrace:

File: /home/pastesite_org/htdocs/themes/fibranet/views/view/view.php
Line: 25
Function: _error_handler

File: /home/pastesite_org/htdocs/application/core/MY_Loader.php
Line: 147
Function: include

File: /home/pastesite_org/htdocs/application/core/MY_Loader.php
Line: 33
Function: _ci_load

File: /home/pastesite_org/htdocs/application/controllers/Main.php
Line: 599
Function: view

File: /home/pastesite_org/htdocs/index.php
Line: 284
Function: require_once

- view diff
Embed
  1. # fetch the list of vpn servers
  2. wget -O /tmp/vpn_servers.txt https://raw.githubusercontent.com/X4BNet/lists_vpn/main/ipv4.txt
  3. wget -O /tmp/protonvpn_servers.txt https://raw.githubusercontent.com/X4BNet/lists_vpn/main/input/ips/protonvpn.txt
  4.  
  5. # create a new chain
  6. iptables -N VPN
  7.  
  8. # add the chain to the input chain
  9. iptables -I INPUT -j VPN
  10.  
  11. # add all the vpn servers to the chain
  12. for ip in $(cat /tmp/vpn_servers_uniq.txt); do iptables -A VPN -s $ip -j DROP; done
  13.  
  14. # save the iptables
  15. iptables-save > /etc/iptables/rules.v4
  16.  
  17. # remove the temporary files
  18. rm /tmp/vpn_servers.txt
  19. rm /tmp/protonvpn_servers.txt
  20. rm /tmp/vpn_servers_uniq.txt