2017-11-20 1 views
1

Tails 시스템에서 Urlib2를 사용하여 파이썬으로 간단한 웹 페이지를 열려고하는데 오류 111, 연결 거부로 작동하지 않습니다. 나는이 선택은 내가 가지고있는 유일한 문제이다 asumming, 프로토콜 및 포트를 많이 시도TailS 오류 urlib2 오류 111 conection refused

proxy = urlib2.ProxyHandler({protocol:"127.0.0.1:{}".format(PORT)}) 
opener = urlib2.build_opener(proxy) 
opener.open("https://jojeji") 

: 꼬리 모든 비 토르 트래픽을 거부하고, 솔루션과 프록시를 개방해야하기 때문에 그래서 분명하다. Tails의 구성 파일은 etc/ferm/ferm.conf입니다. 출력 부분에서이 말씀하시기를 액세서하는 더 좋은 방법이,

access to onionshare 
access to Monkeysphere 
access to CUPS 
access to the accesibility daemon 
access to system DNS and TOr's DNS PORT 
access to Tor's TransPort 
access to Tor control port filtrer 
access to Tor ControlPort 

그래서 느릅 나무 값이 꼬리 사용자가 urlib2 프록시에 전달해야하며 :

  # White-list access to Tor's SOCKSPort's 
      daddr 127.0.0.1 proto tcp syn dport 9050 { 
       mod owner uid-owner _apt ACCEPT; 
       mod owner uid-owner proxy ACCEPT; 
       mod owner uid-owner nobody ACCEPT; 
      } 
       daddr 127.0.0.1 proto tcp syn mod multiport 
       destination-ports (9050 9061 9062 9150) { 
       mod owner uid-owner $amnesia_uid ACCEPT; 
      } 

이 화이트리스트는을위한 또한 인터넷 물마루 urlib2?

+0

이를 답변이 도움이 될 수 있습니다. https://stackoverflow.com/a/40598511/892493 – drew010

답변

관련 문제