V
V
Valter Funk2014-05-24 13:43:10
linux
Valter Funk, 2014-05-24 13:43:10

What port to open so that hg clone does not give an error?

I deployed a web server on a vps with debian, closed all incoming ports via iptables for better protection, when I try to run the hg clone command (bitbucket repository), an abort error appears: error: Name or service not known.
When googling, it is suggested to make an entry in the .hgrc file located in the home directory
[http_proxy]
host = 127.0.0.1:8000

Which in turn does not help.
Adding incoming ports 80, 8080, 8000, 443 to the table also does not affect the situation.
The only way to interact with bitbucket is to remove all rules from iptables .
Tell me what ports need to be opened to resume work with bitbucket? Or maybe I'm looking in the wrong direction?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Valter Funk, 2014-05-24
@ValterFS

It helps to add this rule: iptables -I INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question