nipe icon indicating copy to clipboard operation
nipe copied to clipboard

[!] ERROR: sorry, it was not possible to establish a connection to the server.

Open Loloman2 opened this issue 4 years ago • 20 comments

[!] ERROR: sorry, it was not possible to establish a connection to the server. Any fix? I did follow instructions.

Loloman2 avatar Apr 12 '20 13:04 Loloman2

Hi @Loloman2,

You can try to test Nipe again? I think this is resolved with the lasted commit.

Thx

htrgouvea avatar Apr 28 '20 10:04 htrgouvea

Hi @Loloman2, Any updates?

htrgouvea avatar May 27 '20 13:05 htrgouvea

hello, i have same problem, when i run nipe start it gives me that phrase, also when i ran the cpan comand it gave me that everything is up to date, and i even try udate perl, to see if it was the issue, idk what is wrong please help.

ghost avatar May 29 '20 16:05 ghost

fixed. did the iptables -F command and it fixed

ghost avatar May 29 '20 16:05 ghost

I'm facing the same issue @GouveaHeitor in my Manjaro 20.0 while I typed "sudo perl nipe.pl status". can you help?

supriyo97 avatar Jun 01 '20 19:06 supriyo97

Hi @supriyo97, Have you tried to check if you already have rules in iptbles that could cause conflicts? Use: $ iptables -L

Thx

htrgouvea avatar Jun 01 '20 19:06 htrgouvea

`[sap@DELL-X nipe]$ sudo iptables -L
Chain INPUT (policy ACCEPT) target prot opt source destination

Chain FORWARD (policy ACCEPT) target prot opt source destination

Chain OUTPUT (policy ACCEPT) target prot opt source destination
ACCEPT all -- anywhere anywhere state ESTABLISHED ACCEPT all -- anywhere anywhere owner UID match tor ACCEPT udp -- anywhere anywhere udp dpt:90** ACCEPT tcp -- anywhere anywhere tcp dpt:90** ACCEPT tcp -- anywhere 10..0.0/
ACCEPT all -- anywhere 127.0.0./
ACCEPT all -- anywhere 192.168.0.0/*
ACCEPT all -- anywhere 1**..0.0/
ACCEPT all -- anywhere 1*.0.0.0/*
ACCEPT tcp -- anywhere anywhere
REJECT udp -- anywhere anywhere reject-with icmp-port-unreachable REJECT icmp -- anywhere anywhere reject-with icmp-port-unreachable`

this is what I got. ???

supriyo97 avatar Jun 02 '20 16:06 supriyo97

Fala amigo estou tendo o mesmo problema que os colegas acima, tentei resolver de diversas formas mas não consegui. Estou utilizando o Manjaro 4.6.

Eu dei uma olhada nos arquivos e pensei que o problema poderia ser nas chamados dos diretórios do tor no programa, pelo menos no manjaro, por exemplo existem algumas chamadas em var/lib/tor porem esse patch é inexistente com a instalação padrão do tor.

Quando faço a instalação do tor na versão 0.4.3.5-2 no manjaro o patch dos arquivos fica assim, e as chamadas no programa são em diretórios diferentes, da uma olhada se valer a pena :+1:

/etc/tor/torrc /etc/tor/torrc-dist /usr/bin/tor /usr/bin/tor-gencert /usr/bin/tor-print-ed-signing-cert /usr/bin/tor-resolve /usr/bin/torify /usr/lib/systemd/system/tor.service /usr/lib/sysusers.d/tor.conf /usr/lib/tmpfiles.d/tor.conf /usr/share/doc/tor/tor-gencert.html /usr/share/doc/tor/tor-print-ed-signing-cert.html /usr/share/doc/tor/tor-resolve.html /usr/share/doc/tor/tor.html /usr/share/doc/tor/torify.html /usr/share/licenses/tor/LICENSE /usr/share/man/man1/tor-gencert.1.gz /usr/share/man/man1/tor-print-ed-signing-cert.1.gz /usr/share/man/man1/tor-resolve.1.gz /usr/share/man/man1/tor.1.gz /usr/share/man/man1/torify.1.gz /usr/share/tor/geoip /usr/share/tor/geoip6

Gostaria que desse uma olhada, não sei se pode ser isso, mas custa nada checar kk, porque eu não consegui nada kk;

Antigo-Antigo avatar Jun 23 '20 21:06 Antigo-Antigo

Don't give the status command right after starting nipe....Give it some time to establish a connection to the tor network

Impersonateu avatar Jul 07 '20 22:07 Impersonateu

I experience this error as well.

There are two possible cases:

  1. Nipe is freshly installed using git clone and ./nipe.pl install. After that it starts with ./nipe.pl start and works as expected(for the first time only).

  2. When you already have nipe installed with required dependencies (tor, iptables) and you start nipe with ./nipe.pl start it can fail in some circumstances.

Case 1

./nipe.pl install command stops Tor system service in Install.pm

So when you run ./nipe.pl start just after that, Tor system service is stopped and new Tor process starts with custom config from .configs directory.

Case 2

You already have Nipe and dependencies installed.

So you usually run ./nipe.pl start to route all traffic through the Tor network. When you check if it works with ./nipe.pl status, the output is:

 ./nipe.pl status

[!] ERROR: sorry, it was not possible to establish a connection to the server.

It happens because Tor system service is already running and bound on port 9050. It was not stopped as in case with ./nipe install command.

And when you run ./nipe.pl start, Tor process with custom config fails to start.

As a result of that, traffic forwarded to ports 9051 and 9061(DNS via Tor) goes nowhere.

Currently I'm working on this issue and will provide the fixes as soon as possible.

sv0 avatar Jul 25 '20 07:07 sv0

Hi @sv0,

I see that you are writing a lot of new and interesting code! I would like to remind you to follow the Style Guide we use on Nipe: https://heitorgouvea.me/projects/perl-style-guide

Also, if you want, you can open small PR by solving minor things, so we can keep everything up to date quickly... Hugs and thanks for the contribution!

htrgouvea avatar Jul 28 '20 20:07 htrgouvea

I have the same issue on Arch 5.8.1-arch1-1 ... only warning I get is that perl is Version : 5.32.0-1 a newer than expected ...

It installs fine and I get the same error

se7en-x230 avatar Aug 17 '20 02:08 se7en-x230

nipe is working ...can you try this ! . . First Modify The Argument value in (1) :

Then you can use this commend's : nano nipe.pl Then modify the argument in 1 :
sub main { my $argument = $ARGV[1]; Then save it : Then it we get a Error Like , its print only the same help comment /. /. / COMMAND FUNCTION install Install dependencies start Start routing stop Stop routing restart Restart the Nipe circuit status See status

Then you use the nano again to open nipe.pl then you change the argument in (0) save it again : you can see nipe is working ......

Vignesh-N-0 avatar Dec 05 '20 06:12 Vignesh-N-0

I get it finally to work on Manjaro. There were 2 issues .

  • if installed from blackarch rep the .config files are not copied in such case you need to update your torrc file.

  • for thenipe status issue. you need to install IO::Socket::SSL as its required otherwise it will return http status 599.

Please update the Readme file to include it in the installation guide. @htrgouvea

ajmandourah avatar Jan 04 '21 16:01 ajmandourah

fixed. did the iptables -F command and it fixed

i tried it doesnt work

m7amad-nem avatar Apr 01 '21 07:04 m7amad-nem

I tried everything above nothing works. as soon as i start nipe it's turns of my internet on every interface right away.

but what works for me is i stop the service with perl nipe.pl stop

and then instead of perl nipe.pl start

i use perl nipe.pl restart and it's start working

FireStormCreater avatar Sep 19 '22 18:09 FireStormCreater

Hi folks!

I just published a new version of Nipe, can you test it and tell me if it works now?

If it doesn't work, can you give me more information? Like the distribution they are using or any other information they find pertinent?

Thanks!

htrgouvea avatar Feb 03 '23 22:02 htrgouvea

hey is there a solution to this issue? i tried everything a nothing seems to work.

distrubution: kali linux 2023.1

TheUnknownMystery avatar Mar 30 '23 11:03 TheUnknownMystery