Netspectre is an anonymization tool that forces connections across an entire network via Tor SOCKS. It consists of a shell script and works instantly on almost all Linux systems. It requires no additional code or new packages, and no system file changes or modifications. However, it does require Tor to be installed. If Python is not installed on your system, install it. Most modern Linux environments include Python alongside Perl, but not all do (e.g., Minimal Linux distributions). Alternatively, you can replace the "myip" section of the NetSpectre case statement with Perl or other commands (e.g., jq).
case "$1" in
start)
startSpectre
;;
stop)
stopSpectre
;;
restart)
restartSpectre
;;
myip)
curl -sL ip-api.com/json | python -m json.tool # <- Use Python json.tool in myip section.
;;
*)installation method is common with tor-router.
Note: need bash. no sh
git clone https://github.com/Extr3m4R4710/NetSpectre.git && cd ./NetSpectre && sudo bash install.sh
NetSpectra's operation method conforms to Edu4rdSHL/tor-router. NetSpectra has a network anonymization switch called start | stop | restart. You can stop TCP anonymization with the net-spectra stop command. However, if net-spectra.service is enabled on the systemctl side, all TCP will go through Tor. In that case, kill the daemon with systemctl disable net-spectra.service and then restart your computer. In this case, simply killing NetSpectra will not stop it, as the daemon is kept alive by systemctl.
Here is an example executed on Arch Linux.
Usage: /sbin/net-spectre {start|stop|restart|myip}There is an additional option not present in the official tor-router, which allows you to check the status of the IP address using 'myip'. It is formatted using 'python -m json.tool'.
[ root@N2x3ec ~ ]:# net-spectre myip
{
"status": "success",
"country": "Poland",
"countryCode": "PL",
"region": "14",
"regionName": "Mazovia",
"city": "Warsaw",
"zip": "00-510",
"lat": 52.2296,
"lon": 21.0067,
"timezone": "Europe/Warsaw",
"isp": "1337 Services GmbH",
"org": "1337 Services GmbH",
"as": "AS210558 1337 Services GmbH",
"query": "45.141.215.21"
}
[ root@N2x3ec ~ ]:#
NetSpectre also blocks IPv6 leaks by default, allowing for more secure communications than tor-router.
[ root@N2x3ec ~ ]:# net-spectre start
[+] Disabling IPv6 for security reasons ]
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
[+] Configuring iptables rules to route all traffic through tor
[+] Redirectiing DNS traffic through tor
[+] Allowing only tor to browse in clearnet
[ root@N2x3ec ~ ]:#