git下載編譯proxychains實現socks代理使用

git下載編譯proxychains實現socks代理使用

1. 使用git下載和編譯

編譯proxychains

yum -y install git gcc 
cd /opt
git clone https://github.com/haad/proxychains
cd proxychains
./configure
make
make install
cp src/proxychains.conf  /etc/proxychains.conf

2. 配置代理

vi /etc/proxychains.conf

1).修改最後一行爲代理的類型 ip 端口

[ProxyList]
socks5 127.0.0.1 1080

配置代理

2).把quiet_mode前面的#號去掉。這樣就不會顯示代理的詳細連接過程。

# Quiet mode (no output from library)
quiet_mode

3).這個步驟是可選的,如果socks代理支持代理dns,那麼就不要註釋。
如果socks代理不支持代理dns,那麼需要把proxy_dns前面加上#號。
加上#號後,本機的DNS請求數據會直接到達/etc/resolv.conf定義的DNS服務器。

# Proxy DNS requests - no leak for DNS data
#proxy_dns

這裏寫圖片描述

3. 使用proxychains

proxychains4  命令 參數

這裏寫圖片描述

這裏寫圖片描述

[root@localhost ~]# proxychains4 yum install dev86
[proxychains] config file found: /etc/proxychains.conf
[proxychains] preloading /usr/local/lib/libproxychains4.so
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.zju.edu.cn
 * epel: ca.mirror.babylon.network
 * extras: mirrors.sohu.com
 * updates: centos.vwtonline.net
Resolving Dependencies
--> Running transaction check
---> Package dev86.x86_64 0:0.16.21-2.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================================
 Package                  Arch                      Version                          Repository               Size
===================================================================================================================
Installing:
 dev86                    x86_64                    0.16.21-2.el7                    epel                    348 k

Transaction Summary
===================================================================================================================
Install  1 Package

Total download size: 348 k
Installed size: 991 k
Is this ok [y/d/N]: 

智能防污染DNS服務器需要自己搭建,下面說個簡單的方法。

在一臺擁有外網、內網雙網卡電腦上安裝BIND,設置BIND轉發DNS請求到上級的智能防污染路由器即可,假設192.168.1.1爲路由器的ip地址,那麼named.conf如下:

options { 
    forwarders { 192.168.1.1; }; 
    forward only;
    allow-query { any; };
};
發佈了137 篇原創文章 · 獲贊 199 · 訪問量 72萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章