История
27 июня 2019
Нет описания правки
+1
Новая страница: «If both checks are passed, but there is no connection, contact your provider (look in your personal account), you can check the SIM card in your smartphone.»
−89
Новая страница: «The first digit shows the signal strength: > 9 — satisfactory, > 14 — good, > 19 — excellent. Low and unstable CSQ values mean that the antenna is poorly po…»
−195
Новая страница: «Then evaluate the signal strength in minicom with <code>AT+CSQ</code> You will get the result as <code>13.99</code>»
−71
Новая страница: «It is important that the controller is connected to the packet data network <pre>(GPRS : attached)</pre> and GPRS connection is established.»
−75
Новая страница: «Run the command»
−18
Новая страница: «Before you go to your personal account and call the provider, you can perform a number of simple checks.»
−65
Новая страница: «There can be several possible reasons for the lack of GPRS connection. * The paid traffic limit has ended. * Low voltage, poor contact to the antenna. * SIM ca…»
−348
Новая страница: «== Possible GPRS connection problems ==»
−30
Новая страница: «If you want to transfer data to multiple servers at the same time, create multiple <code>connection</code>partitions.»
−88
Новая страница: «Then run the command»
−24
Новая страница: «To send MQTT messages from the controller to the cloud service, the MQTT bridge is used, the configuration of which is configured on the controller in the file <c…»
−101
Новая страница: «== Data transfer from controller to the cloud ==»
−30
Новая страница: «After starting the service, we can connect to the controller on the server using the command <pre>ssh 127.0.0.1 -p 62001</pre>»
−68
Новая страница: «[Install] WantedBy=multi-user.target </pre> Add service to autorun on the controller <pre>systemctl enable autossh.service</pre>»
−46
Новая страница: «On the controller, create a file <code>\etc\systemd\system\autossh.service</code> to run it <code>autossh</code> as a service:»
−53
Новая страница: «The first time we connect from the controller to the server manually: <pre>ssh remote@vpn.mydomain.com </pre>»
−35
Новая страница: «this will provide additional security for the server when the controller is connected. Port 62001 is the port of the localhost server to which the ssh port of thi…»
−118
Новая страница: «Here, in file <code>/home/remote/.ssh/authorized_keys</code> on the server, we add key created on the controller <code>/root/.ssh/id_rsa.pub</code> with the preamble»
−47
Новая страница: «<заранее>команду adduser --Home /для дома/дистанционный --оболочку /bin/false в удаленных и </pre>»
+86
Новая страница: «To maintain remote connections, create a user <code>remote</code> on the server with the shell <code>/bin/false</code>:»
−81
Новая страница: «Install on the controller <code>apt-get install autossh</code>. Generate a key pair for the user <code>root</code>: <pre>ssh-keygen </pre> Password is empty.»
−83
Новая страница: «Another fallback controller connection will be based on the <code>AutoSSH</code>. The mechanism of work is as follows: SSH-connection from the controller to the s…»
−343
Новая страница: «Startup of the OpenVPN service on the controller is enabled by the command: <pre>update-rc.d openvpn defaults</pre> Check server availability <code>ping 10.8.0…»
−70
Новая страница: «In the configuration file of the second vpn connection, <code>CLIENT1.conf</code> replace <code>proto udp</code> with <code>proto tcp</code> and specify the secon…»
−53
Новая страница: «Contents of the client configuration file: <pre> client dev tun proto udp remote vpn.mydomain.com 1194 resolv-retry infinite nobind persist-key persist-tun ca /et…»
−62
Новая страница: «The configuration files for the client on the controller for the two connections will be stored in the <code>/etc/openvpn/client files.conf</code> and <code>/etc/…»
−63
Новая страница: «For the second server instance, we perform the same operation with its configuration files, the IP addresses should be different, for example, add an entry <code>…»
−118
Новая страница: «For example, <pre> service openvpn stop mcedit /etc/openvpn/ipp.txt </pre> Add the line <code>A7ZO7UCC,10.8.0.48</code> <pre>service openvpn start</pre>»
−24
Новая страница: «On the server in the configuration file (<code>/etc/vpn/server.conf</code>) see which client-address match file is specified in the <code>ifconfig-pool-persist <…»
−180
Новая страница: «Create a certificate signing request (with the name corresponding to the serial number of the controller, in this case that's A7ZO7UCC): <pre> cd /etc/openvpn/eas…»
−214
Новая страница: «In the folder <code>/etc/openvpn/easy-rsa</code> create a subfolder <code>keys</code>: <pre>mkdir keys && chmod 600 keys && cd keys</pre>»
−34
Новая страница: «Copy the CA certificate <code>ca.crt</code> to the controller in <code>/etc/openvpn/easy-rsa/keys</code> folder»
−80
Новая страница: «Copy <pre>cp -R /usr/share/easy-rsa /etc/openvpn/</pre>»
−13
Новая страница: «To do this, install <code>openvpn</code> and <code>easy-rsa</code>on the controller:»
−35
Новая страница: «OpenVPN installation is standard, using <code>open-rsa</code>.»
−47
Новая страница: «On the controller, we enable 2 OpenVPN clients and explicitly set the route for IP2 via the <code>ppp0</code> interface for one of them.»
−72
Новая страница: «To ensure greater reliability, two server processes are started on a server with 2 IP addresses, one of which listens on port 1194 TCP on IP1 and the other - on p…»
−201
Новая страница: «For remote access to the controller we will use OpenVPN. It is assumed that the server is already present and configured, you must install and configure the clien…»
−124
Новая страница: «"'ppp0:"' In the <code>/etc/ppp/ip-up directory.d</code> create a script (and give it execute permissions) that will add Google DNS servers and OpenDNS to the <co…»
−88
Новая страница: «"'eth0:"' From <code>/etc/dhcp/dhclient.conf</code> remove the <code>domain-name-servers</code> parameter from the request parameter, and after the request parame…»
−63
Новая страница: «Sometimes there is a problem with the availability of provider DNS servers. For all connections prescribe public servers from Google and OpenDNS.»
−127
Новая страница: «If one of them falls, the traffic will be transmitted through the other and Vice versa. Start ping 8.8.8.8 and then remove and insert the RJ-45 plug:»
−82
Новая страница: «route del default dev ppp0 2>/dev/null route add default dev ppp0 metric 100 2>/dev/null </pre> The first command removes the default gateway, in case it was crea…»
−174
Новая страница: «Create the add_routes script in the <code>/etc/ppp/ip-up directory.d</code> and make it executable (<code>chmod +x /etc/ppp/ip-up.d/add_routes</code>): <pre> #!/b…»
−44
Новая страница: «The default gateway with metric 0 in the routing table is created for the eth0 interface, which we will consider to be the primary interface for Internet access.…»
−333
Новая страница: «To ensure failover of connections we need to provide for any procedure for raising and fall of the interfaces. The task is to provide communication regardless of…»
−184
Новая страница: «In the case of a PPP connection where there is no default gateway (for example, we have not connected an Ethernet cable), pppd will add the IP address of the ppp…»
−475
Новая страница: «In this configuration, we are faced with the following feature: the PPP Protocol provides a point-to-point connection and does not assume a default gateway.»
−120
Новая страница: «Difficulties begin when the controller is connected to Ethernet and has a default gateway in one network, and also connects to a cellular data network.»
−120