htrgouvea / nipe Goto Github PK
View Code? Open in Web Editor NEWAn engine to make Tor network your default gateway
Home Page: https://heitorgouvea.me/
License: Other
An engine to make Tor network your default gateway
Home Page: https://heitorgouvea.me/
License: Other
HOW TO RESOLVE IT??
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package tor is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'tor' has no installation candidate
Please add items to the README:
1- Does this route UDP traffic also, or just TCP ? https://2019.www.torproject.org/docs/faq.html.en#TransportIPnotTCP seems to say Tor doesn't do UDP.
2- Does this route IPv6 traffic also, or just IPv4 traffic ?
Hi,
I'm receiving same error on TurnKey-Linux-Jessie
I've successfully gotten this tool to run on 3 different machines, just this one doesn't want to work. I've installed also
"apt-get install perlbrew - && curl -L http://xrl.us/installperlnix | bash"
And it's still not running.
When I run any perl nipe.pl command it gives no output, and when I run: perl nipe.pl status it shows "[!] ERROR: sorry, it was not possible to establish a connection to the server."
We should build some guidelines to help people contribute in a faster way to the repo.
I'll help if that when I have time. Until there, any help is welcome. :)
Some useful links:
https://help.github.com/articles/setting-guidelines-for-repository-contributors/
install script uses numeric comparison to check string equality, which converts the arguments to numbers first before comparing them.
$operationalSystem == "
should be
$operationalSystem eq "
otherwise the first if statement will always be true.
perl nipe.pl start
Can't locate Switch.pm in @inc (you may need to install the Switch module) (@inc contains: /home/xzj8b3/perl5/lib/perl5/5.26.2/x86_64-linux-thread-multi /home/xzj8b3/perl5/lib/perl5/5.26.2 /home/xzj8b3/perl5/lib/perl5/x86_64-linux-thread-multi /home/xzj8b3/perl5/lib/perl5 /home/xzj8b3/perl5/lib/perl5/5.26.2/x86_64-linux-thread-multi /home/xzj8b3/perl5/lib/perl5/5.26.2 /home/xzj8b3/perl5/lib/perl5/x86_64-linux-thread-multi /home/xzj8b3/perl5/lib/perl5 /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at nipe.pl line 15.
Fedora 28 x64
hello,
i tried your tools but i had an error
when i try to start it by : perl nipe.pl start
it tell me: Error: sorry, it was not possible to establish a connection to the server.
thank you to resolve the error or giving me the solution,
Good luck :)
Recently installed nipe on Ubuntu WSL. While trying to start getting error:
user@userpc:~/nipe$ perl nipe.pl start
iptables v1.6.1: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
Could not open socket to kernel: Permission denied
Could not open socket to kernel: Permission denied
iptables v1.6.1: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
iptables v1.6.1: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
iptables v1.6.1: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
iptables v1.6.1: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
iptables v1.6.1: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
iptables v1.6.1: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
iptables v1.6.1: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
iptables v1.6.1: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
iptables v1.6.1: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
Could not open socket to kernel: Permission denied
Could not open socket to kernel: Permission denied
iptables v1.6.1: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
iptables v1.6.1: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
iptables v1.6.1: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
iptables v1.6.1: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
iptables v1.6.1: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
iptables v1.6.1: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
iptables v1.6.1: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
iptables v1.6.1: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
iptables v1.6.1: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
iptables v1.6.1: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
I tried with super user but no effect.
I know how to add it the bashrc file but i need a little guide on how to configure the use lib string to point to the correct location.
It must be something like ~/nipe/Nipe/lib/ but im getting error below:
Can't locate Nipe/Stop.pm in @inc (you may need to install the Nipe::Stop module) (@inc contains: /home/crescento/Pentest/nipe/Nipe/lib/ /home/crescento/perl5/lib/perl5/5.28.1/x86_64-linux-gnu-thread-multi /home/crescento/perl5/lib/perl5/5.28.1 /home/crescento/perl5/lib/perl5/x86_64-linux-gnu-thread-multi /home/crescento/perl5/lib/perl5 /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.28.1 /usr/local/share/perl/5.28.1 /usr/lib/x86_64-linux-gnu/perl5/5.28 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.28 /usr/share/perl/5.28 /home/crescento/perl5/lib/perl5/5.28.0 /home/crescento/perl5/lib/perl5/5.28.0/x86_64-linux-gnu-thread-multi /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at ./nipe.pl line 17.
BEGIN failed--compilation aborted at ./nipe.pl line 17.
Any suggestions?
@@ -59,7 +59,7 @@
system ("sudo iptables -t $nipe -F OUTPUT");
system ("sudo iptables -t $nipe -A OUTPUT -m state --state ESTABLISHED -j $target");
- system ("sudo iptables -t $nipe -A OUTPUT -m owner --uid debian-tor -j $target");
+ system ("sudo iptables -t $nipe -A OUTPUT -m owner --uid $tor_user -j $target");
my $match_dns_port = $dns_port;
I would love to see it supports IPv6 as well.
hi, nice script but everytime i try to start it i get the following message:
Bad value for "--uid-owner" option: "tor"
Try iptables -h' or 'iptables --help' for more information. iptables v1.6.1: owner: Bad value for "--uid-owner" option: "tor" Try
iptables -h' or 'iptables --help' for more information.
I saw that other people are reporting the same problem but in another OS, i'm in mint
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=19.1
DISTRIB_CODENAME=tessa
DISTRIB_DESCRIPTION="Linux Mint 19.1 Tessa"
NAME="Linux Mint"
VERSION="19.1 (Tessa)"
ID=linuxmint
ID_LIKE=ubuntu
PRETTY_NAME="Linux Mint 19.1"
VERSION_ID="19.1"
HOME_URL="https://www.linuxmint.com/"
SUPPORT_URL="https://forums.ubuntu.com/"
BUG_REPORT_URL="http://linuxmint-troubleshooting-guide.readthedocs.io/en/latest/"
PRIVACY_POLICY_URL="https://www.linuxmint.com/"
VERSION_CODENAME=tessa
UBUNTU_CODENAME=bionic
The install function uses sudo mv
rather than sudo cp
, leaving the repo in a dirty state.
Hey Guys, I reached out to Heitor, and he suggested I post the thread here. Basically I installed nipe on kali, and when I start it, the working connection fails. I can see tor is running, and if I use the tor browser, it works fine before I start nipe. If I stop nipe, the connection works, but only the tor browser is using the tor IP address.
Here is the thread:
Thanks for the response, here are some details:
Linux version: Kali-Rolling
Machine: Lenova Desktop
When I run 'perl nipe.pl install', no errors:
iptables is already the newest version (1.6.2-1).
tor is already the newest version (0.3.3.9-1).
I'm running ufw to manage the firewall setting, but have all ports for tor open.
53 ALLOW Anywhere
9053 ALLOW Anywhere
9050 ALLOW Anywhere
9040 ALLOW Anywhere
9051 ALLOW Anywhere
Any help is much appreciated.
Erik
On 2018-08-07 18:31:44 -0500 Heitor Gouvea [email protected] wrote:
Hello,
Very strange this mistake!
Did you notice any problems / errors during installation?
Can you give me more information about your environment ?! As a version of
the operating system, whether it's a virtualized environment or not ... All
kinds of information can help!If you can open an issue in the Github repository it's even better because
other people can help us!Thankful!
2018-08-06 15:02 GMT-03:00 Erik Klaw [email protected]:
I have TOR installed, and verified that the TOR Browser is working.
I'm trying to all of my direct my traffic through TOR using nipe, but when
I start nipe, I loose all connections to everything.It comes back after I stop nipe.
I'm sure it is a port thing. In the torrc file I have the following
configuration:
VirtualAddrNetwork 10.192.0.0/10
AutomapHostsOnResolve 1
TransPort 9040
SocksPort 9050
ControlPort 9051
DNSPort 53
RunAsDaemon 1I'm also interested in adding exceptions to port 22 so I can use this
machine remotely while enabling nipe if it's possible.Can you help out?
Thanks
Erik
I'm running some tests, to eventually create a packaging continuous integration for my distro and would like to take a concept test in isolated environments . Do any of you have an "official" docker image with the nipe working properly?
ps. if you feel like answering in Portuguese!
The same issue on ubuntu 14.04 and Kali Linux.
system ("sudo wget http://heitorgouvea.me/nipe/ubuntu/torrc");
Resolving heitorgouvea.me (heitorgouvea.me)... failed: No address associated with hostname.
wget: unable to resolve host address ‘heitorgouvea.me’
Also, it would be nice to have a command to reconfigure exit nodes countries list.
https://pt.wikihow.com/Definir-um-Pa%C3%ADs-Espec%C3%ADfico-no-Navegador-de-Internet-Tor
Install script should save it's config seperately from the main /etc/torrc, or at least warn the user before overwriting
Trying to run perl nipe.pl install
, getting error:
Can't call method "param" on an undefined value at lib/Nipe/Device.pm line 8.
Compilation failed in require at lib/Nipe/Start.pm line 5.
BEGIN failed--compilation aborted at lib/Nipe/Start.pm line 5.
Compilation failed in require at nipe.pl line 18.
BEGIN failed--compilation aborted at nipe.pl line 18.
Same one appears for other commands.
Hey, when I do the command
perl nipe.pl start
it gives me this error:
iptables v1.6.0: owner: Bad value for "--uid-owner" option: "tor"
Try iptables -h' or 'iptables --help' for more information. iptables v1.6.0: owner: Bad value for "--uid-owner" option: "tor" Try
iptables -h' or 'iptables --help' for more information.
Do I have to do any changes on the iptables ? Thanks
when i try to start nipe I get this error
ERROR: sorry, it was not possible to establish a connection to the server.
Can't load onion site's
Hi,
sudo cpan install Switch JSON LWP::UserAgent ==> ok
sudo perl nipe.pl install ==> ok
sudo perl nipe.pl start ==> ok
sudo perl nipe.pl status ==> [!] ERROR: sorry, it was not possible to establish a connection to the server.
System : Manjaro Linux 18.0.2
Kernel : 4.18.20-1-MANJARO
iptables v1.8.2 (legacy)
perl v5.28.1
Thx
I have reinstalled it twice following the guide and running all the necessary commands, but after I start it and check the status, it says "ERROR: sorry, it was not possible to establish a connection to the server." I am trying to run this on a VirtualBox VM on Kali Linux.
My nipe is installed correctly. But when I try run it, the terminal shows the following message:
$ perl nipe.pl start
iptables v1.6.0: owner: Bad value for "--uid-owner" option: "tor" Try iptables -h or iptables --help for more information.
iptables v1.6.0: owner: Bad value for "--uid-owner" option: "tor" Try iptables -h or iptables --help for more information.
I saw that there is already a closed issue dealing with this exact error message. But I don't understand the solution. The guy of original issue was using Debian, I'm using Elementary OS (based on Ubuntu 16.04.5 LTS) more info below:
$ cat /etc/*-release
DISTRIB_ID="elementary"
DISTRIB_RELEASE=0.4.1
DISTRIB_CODENAME=loki
DISTRIB_DESCRIPTION="elementary OS 0.4.1 Loki"
NAME="elementary OS"
VERSION="0.4.1 Loki"
ID="elementary"
ID_LIKE=ubuntu
PRETTY_NAME="elementary OS 0.4.1 Loki"
VERSION_ID="0.4.1"
HOME_URL="http://elementary.io/"
SUPPORT_URL="http://elementary.io/support/"
BUG_REPORT_URL="https://github.com/elementary/"
VERSION_CODENAME=loki
UBUNTU_CODENAME=loki
And perl and iptables are already in the last version.
I got this error when i started the service using command perl nipe.pl start
&& sudo perl nipe.pl start
os : Ubuntu 18.04.1 LTS
perl -v : v5.26.1
iptables: v1.6.1
thanks for advance
Success Use Of nipe Script or the first time , after reboot my system , It Dsnt Work and The MSG ERR is 👎 **
[!] ERROR: sorry, it was not possible to establish a connection to the server.
**
Bro Plz Whats The Version Of Perl Compatible With Nipe?
Else
Whats Is Your Perl Version
Hello @heitorg
Would like to rotate Tor IPs periodically, like say minute or hour
Is it possible with nipe
From docker container, to run nipe without environment depentencies to local machine
Based on https://github.com/dperson/torproxy
Whenever I try to start nipe I get this output: Can't locate Nipe/Stop.pm in @INC (you may need to install the Nipe::Stop module) (@INC contains: ./lib/ /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /home/darth/Desktop/Programs/nipe/nipe line 19. BEGIN failed--compilation aborted at /home/darth/Desktop/Programs/nipe/nipe line 19.
What do I do?
Hello, love the concept of this but cannot for the life of me to get it to work properly.
Attempting to get it to run on BlackArch (in VM).
BlackArch repositories do include nipe, but I removed that and grabbed it from the git repositories as your installation instructions say to do. Followed all instructions, received no errors. When I attempt to run 'perl nipe.pl start' I receive the error.
iptables version 1.6.1
perl version 5.26.0
EDIT: After playing around with everything for a bit, noticed that tor.service keeps failing:
- tor.service - Anonymizing Overlay Network
Loaded: loaded (/usr/lib/systemd/system/tor.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2018-01-23 00:21:44 UTC; 5s ago
Process: 16543 ExecStart=/usr/bin/tor -f /etc/tor/torrc (code=exited, status=1/FAILURE)
Main PID: 16543 (code=exited, status=1/FAILURE)Jan 23 00:21:44 blackarch tor[16543]: Jan 23 00:21:44.710 [warn] Error setting configured user: debian-tor not found
Jan 23 00:21:44 blackarch tor[16543]: Jan 23 00:21:44.710 [warn] Before Tor can create a control socket in "/var/run/tor/control", the directory "/var/run/tor" needs to ex
Jan 23 00:21:44 blackarch tor[16543]: Jan 23 00:21:44.711 [notice] Closing partially-constructed Socks listener on 127.0.0.1:9050
Jan 23 00:21:44 blackarch tor[16543]: Jan 23 00:21:44.711 [notice] Closing partially-constructed DNS listener on 127.0.0.1:9061
Jan 23 00:21:44 blackarch tor[16543]: Jan 23 00:21:44.711 [notice] Closing partially-constructed Transparent pf/netfilter listener on 127.0.0.1:9051
Jan 23 00:21:44 blackarch tor[16543]: Jan 23 00:21:44.711 [warn] Failed to parse/validate config: Failed to bind one of the listener ports.
Jan 23 00:21:44 blackarch tor[16543]: Jan 23 00:21:44.711 [err] Reading config failed--see warnings above.
Jan 23 00:21:44 blackarch systemd[1]: tor.service: Main process exited, code=exited, status=1/FAILURE
Jan 23 00:21:44 blackarch systemd[1]: tor.service: Unit entered failed state.
Jan 23 00:21:44 blackarch systemd[1]: tor.service: Failed with result 'exit-code'.
If I remove tor and reinstall from pacman repo, tor.service will load and connect just fine. It's after I run perl nipe.pl install
That tor.service fails to work. I think some setting the script puts into tor is causing it to fail?
Is it possible to set it up for mac?
I have no internet connection when nipe is activated. I followed the instructions. Any idea where I can look to fix?
Hi, love the script.
Some functions I think it would be nice to have
It would be nice to have a status bar / icon in the menu or in the terminal where you can see/ change:
I am trying to install it virtual machine kali linux. but the installation process stops with message 'tor has no installation candidate'
Open terminal as root
git clone https://github.com/GouveaHeitor/nipe
cd nipe
cpan install Switch JSON LWP::UserAgent
cpan install
perl nipe.pl install
perl nipe.pl start
I would like to know if "nipe" proxa in a fixed way or you can activate it, disable it each time please
Linux Mint Tessa Full Update
Nipe 1.0.3
iptables 1.6.1-2ubuntu2
tor 0.3.2.10-1
perl nipe.pl start - TOR Start and work correct
perl nipe.pl status - [!] ERROR: sorry, it was not possible to establish a connection to the server.
perl nipe.pl stop - TOR Stopped correct
====
A few days ago everything worked correctly.
I rolled back to backup, the same error.
Time everywhere updated and checked.
I did not try to clean system, I will try to add a review.
root@root:~/nipe# perl nipe.pl install
Reading package lists... Done
Building dependency tree
Reading state information... Done
iptables is already the newest version (1.6.1-2).
The following additional packages will be installed:
tor-geoipdb torsocks
Suggested packages:
mixmaster torbrowser-launcher tor-arm apparmor-utils obfsproxy obfs4proxy
The following NEW packages will be installed:
tor tor-geoipdb torsocks
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 2647 kB/2720 kB of archives.
After this operation, 10.9 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Err:1 http://http.kali.org/kali kali-rolling/main amd64 tor amd64 0.3.0.10-1
404 Not Found
Err:2 http://http.kali.org/kali kali-rolling/main amd64 tor-geoipdb all 0.3.0.10-1
404 Not Found
E: Failed to fetch http://http.kali.org/kali/pool/main/t/tor/tor_0.3.0.10-1_amd64.deb 404 Not Found
E: Failed to fetch http://http.kali.org/kali/pool/main/t/tor/tor-geoipdb_0.3.0.10-1_all.deb 404 Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
--2018-04-29 16:57:31-- https://gouveaheitor.github.io/nipe/debian/torrc
Resolving gouveaheitor.github.io (gouveaheitor.github.io)... 185.199.108.153, 185.199.109.153, 185.199.110.153, ...
Connecting to gouveaheitor.github.io (gouveaheitor.github.io)|185.199.108.153|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://heitorgouvea.me/nipe/debian/torrc [following]
--2018-04-29 16:57:32-- http://heitorgouvea.me/nipe/debian/torrc
Resolving heitorgouvea.me (heitorgouvea.me)... 2400:cb00:2048:1::6818:6f7b, 2400:cb00:2048:1::6818:6e7b, 104.24.111.123, ...
Connecting to heitorgouvea.me (heitorgouvea.me)|2400:cb00:2048:1::6818:6f7b|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 454 [application/octet-stream]
Saving to: ‘torrc’
torrc 100%[===================>] 454 --.-KB/s in 0s
2018-04-29 16:57:33 (17.9 MB/s) - ‘torrc’ saved [454/454]
Failed to stop tor.service: Unit tor.service not loaded.
Can help me?
I was waiting for #7 to create package for my distro, and now that issue has been concluded I came up with a question, a very honest question.
Why perl? would not .sh scripts be better? in code there is the massive use of the system function. would not it be better to run without having to install perl in minimal distros like alpine?
a sincere doubt.
It was expected that nmap returned positive values which is not happening
It must be some iptables rules that is blocking the inbound or outbound communications
Virtualbox in Bridge adapter
Nipple start
nmap -Pn {ip} -p {port} (-Pn since rules are blocking icmp)
Hello,
sudo perl nipe.pl start
[!] ERROR: sorry, it was not possible to establish a connection to the server.
Why ?
Hi,
Would it be possible to add bridges for the connection to the network for networks that have blocked tor network?
This script appears to get foreign objects, via plaintext HTTP, using sudo, from your websever, and put them into the user's conf. This is a terrible idea for a number of obvious reasons.
I strongly, strongly suggest that you come up with another way of solving this problem.
the app assumes systemd, which is fine. In that case the "start" and "stop" commands should invoke systemd service commands, and a systemd service unit file should be included.
A related issue is the install script clobbers any existing tor installation without warning the user. Systemd could help with that too
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.