Position: Home page » Pool » Construction of eth mine pool proxy server

Construction of eth mine pool proxy server

Publish: 2021-03-30 08:10:01
1. Building a mine pool is not so simple, enough servers, enough computing power
2. There is a completely free green software that can automatically build HTTP proxy without setting. You can double-click it. In the private message sent to the building owner, there are several PC and Android versions available. The building owner can try it to see if it can help solve the problem. Mobile phone may not see the degree of private messages, owners can log in to view the computer
3. Hello, it's very easy to build a proxy server. In fact, it's just the following steps:
1. Register a virtual host
2. Install the server first
3. Install the client again< Finally, test the server status
4.

taking ccproxy as an example, the usage of proxy software ccproxy is as follows:

prepare in advance

first, ensure that each machine has specified a fixed IP address

the second is to find an installation program for ccproxy

server installation

run the downloaded ccproxysetup.exe to install step by step, only when the last step is to select the language, Chinese GB is the simplified Chinese

after the installation, there is a green icon of ccproxy on the desktop. Double click to start ccproxy. Green grid coordinates will appear yellow curve, indicating network data traffic

client settings

1. Set the properties of TCP / IP protocol

method: right click "network neighborhood", select "properties", double-click "TCP / IP Protocol" corresponding to network card, and select "DNS" label. The settings are as follows: select "enable DNS"“ Fill in the server name in "host"; And fill in the IP address of the server in the "DNS server search order" below, in this example, "192.168.0.1", and then click [fill in]; Click OK to end DNS settings; Click OK again to end the setting of network properties. You need to restart your computer

2. After restarting, right-click the IE icon on the desktop and select "properties". In the next "Internet properties" dialog box, make the following settings: select the "connection" tab; Click "LAN settings" button; Select "use proxy server"; Click Advanced; In "server type", fill in: http 192.168.0.1, port 808; FTP is 192.168.0.1 and port is 2121; The socks is 192.168.0.1 and the port is 1080; Then click [OK] to finish setting ie

browse on the Internet

after completing the above operations, connect the server to the Internet, and then start ccproxy. The client can freely shuttle between the Internet through ie. to stop the proxy service, just click the [stop] button

note

1. If the client wants to use OICQ, RealPlayer, network ant and other software, it needs to set them separately

Ccproxy also has many functions, such as Socks5 and HTTP user authentication, online time management, website filtering, caching and so on, which can only be used after registration

5. Squid is the most popular proxy server software in Linux. It has powerful functions and supports the proxy of HTTP, FTP, gopher, SSL, WAIS and other protocols; It's easy to set up, only need to change the configuration file to make the proxy server work. In addition, squid has the function of page caching, which accepts users' download applications and automatically processes the downloaded data. The hardware requirements of squid in the early preparation are: the memory should not be less than 128M, the faster the hard disk speed, the better, it is best to use the server dedicated SCSI hard disk, the CPU requirements are not high, 400MHz or more. The proxy server I manage is inter2150, which is installed with red hat linux 7.2 and squid. There are two network cards, one eth0 with external address (such as 211.88.99.66) and one eth1 with internal address (such as 192.168.5.1). If Gnome or other graphical interfaces are installed, IP addresses can be configured for the two network cards in netconfig. Otherwise, the files ifcfg-eth0 and ifcfg-eth1 can be changed in the path of / etc / sysconfig / network script. First edit ifcfg-eht0, there are the following items: device = eth0 (indicates which network card to use), IPADDR = 211.88.99.66 (sets the IP address of the network card) netmask = 255.255.255.252 (sets the subnet mask). Also edit ifcfg-eth1, and then run the command network restart to make the configuration effective. After configuring eth0 and eth1, you can use the ifconfig command to check whether the configuration is successful. If the server has only one network card, don't worry. Linux can bind multiple IP addresses on one network card. The configuration under the graphical interface is very simple. If configured in the text state, ifcfg-eth0 can be copied and named ifcfg-eth0:1, and it can be configured as two network cards. Installation of squid 1. When installing Linux, you should pay attention to the partition of hard disk. It is better not to let the system partition by itself, but manually. Generally, there is only one swap partition in Linux system (Linux swap is selected in the form of file system), which is used as virtual memory. It is recommended to set the size of swap partition to twice of memory. When the size of the hard disk exceeds 8g, a 128M (slightly larger, error free) boot partition should be created. This is to avoid putting the system kernel files beyond 1024 tracks. If the boot is used as a subdirectory of the root partition, the kernel files will be installed anywhere in the root partition. Because it is used as a proxy server, it is recommended to divide another partition "var" as the buffer of squid, so it should be allocated as large as possible according to the size of the disk, and finally all the remaining space of the hard disk should be allocated to the root partition. 2. When installing squid, it is recommended to select squid when installing Linux for novices. Squid is not selected by default, and it is not in the selected category. It should be found in the detailed list. If it is not installed and you do not want to reload the system, you can download squid software from. Squid proxy server settings are almost ready to use after squid is installed. Open the / etc / squid / squid.conf file with an editor (log in as root). Squid's configuration file has 125 configuration items in total, but generally speaking, only a few configuration items need to be modified. Find "HTTP"_ "Access deny all" and change to "HTTP"_ "Access allow all" enables all computers to access Internet resources through proxy services. In fact, as long as you modify this item, squid service can be started. In order to better control the behavior of proxy server, several configurable items need to be considered: 1_ MEM: set the memory size used by the proxy service, which is generally recommended to be one third of the physical memory. 2. cache_ Dir: set the location and size of the cache. The general format is as follows: cache_ dir /var/spool/squid/cache 100 16 256 cache_ Dir specifies the path of the cache directory. The default is / var / spool / squid / cache/ Var / spool / squid / cache represents the location of the cache. Using the squid - Z instruction, a directory for storing swap files will be established in this directory. 100 represents the maximum cache size of 100m, and 16 and 256 represent the number of primary and secondary directories. In actual use, 100m is not enough. If the hard disk is large enough, you can increase the storage space, such as cache_ dir /var/spool/squid/cache 2000 16 256 3. http_ Port: the port number used by the proxy service, which is 3128 by default. Other ports can be used. Pay attention to remove the comment symbol "#" in the front. In addition, you can't use the same port as other services. If you use ports below 1024, squid must run as root. 4. maximum_ object_ Size: Specifies the maximum object size squid can receive. The default value of squid is 4m, which can be set according to your own needs. Start squid squid can be set to start automatically. Run the command setup and select squid in the system services option. After setting, squid will be executed automatically every time you restart. If it is the first time to start, to create a temporary data directory under / var / spool / squid, first enter squid - Z, and then start squid (run squid directly). After starting squid, run ie on another windows computer (take Internet Explorer 5.0 as an example), click Tools, then click Internet Options, then click the connection tab, and select LAN settings. Fill in the "address" of squid server in the "LAN settings" window, and fill in "3218" (the port number of squid software default agent) in the "port". Confirm and exit. Next, browse some websites at will to check the operation of squid. You can also check the access.log and cache.log under logs to see if the agent is running normally.
6. Server side: just run sshd, no special settings are needed<
client:

SSH - fnd localhost: {port} {uname} @ {server addr}, this command makes SSH listen to the {port} port on localhost and forward the received access request to {server addr}
curl - V -- Socks5 localhost: {port} & quot; http://www..com" , Note that the proxy built with SSH is socks proxy, not HTTP proxy. If you try to use the proxy built by SSH in the way of HTTP proxy, it will make you very depressed
you can also use socks proxy in Firefox.
7. 1. Introction
frequently crawling a website with the same IP will be blocked by the server of the website after a long time. So you need to use a proxy server at this time. Crawling websites through IP spoofing

can be used http://yum.iqianyue.com.com/proxy Many server proxy addresses

2, applications
*-* coding:utf-8 *-*
from urllib import request
def use_ porxy(porxy_ addr,url):
porxy = request.ProxyHandler({' http': porxy_ addr})
opener = request.build_ opener(porxy, request.ProxyHandler)
request.install_ opener(opener)
data = request.urlopen(url).read().decode(' utf-8')< br /> return data
data = use_ porxy(" 114.115.182.59:128",& quot; http://www..com" )< br />print(len(data))
8. Unknown_Error
9. Because the system is inconsistent, so there will be a little difference in the content of the operation, this article will write out the difference< When installing squid squid common, you will be prompted that squid common cannot be found, so you can only install squid
apt get install squid
when adding SSL support, there is a version difference. The original version is squid3-3.1.19, while my version is squid3-3.3.8, So some commands have changed:
CD squid3-3.3.8 /
the sentence "build - US - UC - B" takes a longer time
sudo dpkg - I squid3_ 3.1.19-1ubuntu3.12.04.2_ amd64.deb squid3-common_ 3.1.19-1ubuntu3.12.04.2_ all.deb squid3-dbg_ 3.1.19-1ubuntu3.12.04.2_ AMD64. DEB
becomes the following sentence
dpkg - I squid3_ 3.3.8-1ubuntu6.1_ amd64.deb squid3-common_ 3.3.8-1ubuntu6.1_ all.deb squid3-dbg_ 3.3.8-1ubuntu6.1_ amd64.deb
auth_ param basic program /usr/lib/squid/ncsa_ Auth / etc / squid3 / passwd
becomes the following sentence. If this is not changed, the squid3 service will be unable to start
auth_ param basic program /usr/lib/squid3/basic_ ncsa_ Auth / etc / squid3 / passwd
after installing stunnel locally, you can use it with chrome and switchsharp plug-in according to the original configuration!
Hot content
Inn digger Publish: 2021-05-29 20:04:36 Views: 341
Purchase of virtual currency in trust contract dispute Publish: 2021-05-29 20:04:33 Views: 942
Blockchain trust machine Publish: 2021-05-29 20:04:26 Views: 720
Brief introduction of ant mine Publish: 2021-05-29 20:04:25 Views: 848
Will digital currency open in November Publish: 2021-05-29 19:56:16 Views: 861
Global digital currency asset exchange Publish: 2021-05-29 19:54:29 Views: 603
Mining chip machine S11 Publish: 2021-05-29 19:54:26 Views: 945
Ethereum algorithm Sha3 Publish: 2021-05-29 19:52:40 Views: 643
Talking about blockchain is not reliable Publish: 2021-05-29 19:52:26 Views: 754
Mining machine node query Publish: 2021-05-29 19:36:37 Views: 750