2017-09-26 73 views
0

我嘗試遠程連接到我的隱匿服務MySQL數據庫XAMPP和隱藏的服務MySQL數據庫無法連接

mysql -u root -p -h 127.0.0.1 connected 

工作本地主機

我下面這個教程在Reddit上的罰款:

/r/TOR/comments/222bum/running_mysql_as_a_hidden_service/ 

我在Ubuntu上運行xampp,並且tor MySQL監聽端口3306和Apache上的80端口

我試圖連接到我的數據庫遠程使用命令:

proxychains mysql -u root -p -h http://xxxxxxx.onion DBNAME 

收到此錯誤:

ERROR 2003 (HY000): Can't connect to MySQL server on ' http://xxxxxxxxx.onion ' (111)

試圖與socat

socat TCP-LISTEN:3308 SOCKS4A:127.0.0.1:xxxxj.onion:3306,socksport=9050 

socat TCP-LISTEN:3308 SOCKS4A:localhost:xxxxj.onion:3306,socksport=9050 

沒有在tor面板中工作它說,但只有當我嘗試proxychains的mysql -h 127.0.0.1 -u用戶-p P 33606

Sep 26 18:43:09.000 [warn] Rejecting SOCKS request for anonymous connection to private address [scrubbed].

thanks for reply but still cant get it to work 
root:/var/lib/tor/hidden_service$ proxychains mysql -u user -h TOR.onion database -p 
ProxyChains-3.1 (http://proxychains.sf.net) 
Enter password: 
|DNS-request| TOR.onion 
|S-chain|-<>-127.0.0.1:9050-<><>-4.2.2.2:53-<><>-OK`enter code here` 
|DNS-response| TOR.onion is 104.239.213.7 
|S-chain|-<>-127.0.0.1:9050-<><>-104.239.213.7:3306-<--timeout 
ERROR 2003 (HY000): Can't connect to MySQL server on 'TOR.onion' (111) 
GRANT ALL ON Databasename.* TO 'user'@'127.0.0.1 
getting some error in console phpmyadmin SQL error 

IM prety新的這個任何幫助appreicated

MySQL工作臺工作正常上本地主機,但嘗試時添加的,而不是本地主機它dosent工作洋蔥:****** 任何建議感謝

+1

運行MySQL作爲一個隱藏的Tor服務...獨一無二的。有點令人着迷,說實話。 – ceejayoz

回答

0
  1. 更改接口爲0.0.0.0,以便外部連接可能發生(bind-address=0.0.0.0my.cnf或同等學歷)
  2. GRANT訪問外部 IP在MySQL:GRANT ALL ON <DB>.* TO '<user>'@'<external_ip>';
相關問題