Faculty of information technology
Download 1.67 Mb. Pdf ko'rish
|
full thesis
6.2
Fargate Originally, Amazon’s Fargate service was considered for running all the router agents. It is a cloud service that offers an easy way to start and manage high numbers of Docker containers. One of its advantages is the ability to precisely define the amount of resources that each instance would have. It also makes it easy to decrease or increase number of instances at any time and provides management of their log files. However, it turns out that a crucially needed parameter –cap-add (passed when starting a new Docker container) is not currently supported by this service. Without this, the OpenVPN within the container wouldn’t function properly and the idea of using Fargate service had to be abandoned. 38 6.3 Router agents The user module created for PC differs from the original in its reactions to requests from the Customer Server. It will skip modifications of settings, restarts of services and other actions that are normally done in response to various requests. Instead, it will just send back a positive response. A special case is a response where the router sends back a list of the interfaces it supports and their current configuration. This response will be hardcoded to 2 made up interfaces with randomly chosen settings. One additional change is in generation of a unique name (used for generation of an SSL certificate), for which an application called status is normally used. This application is present only in real routers and to simulate its behavior, a BASH script was created and added into our Docker image. Its purpose is to print router’s serial number, which the script generates randomly. Ubuntu 16.04 was chosen as a template for the Docker image. Through a Dockerfile, additional software, including rsyslog, ping , openvpn, openssl and a PC version of the user module had to be installed. The final size of the image is approximately 240 MB. When starting a container (instance of the image), the following parameters must be used for OpenVPN to function properly: 1) --cap-add=NET_ADMIN 2) --device=/dev/net/tun Download 1.67 Mb. Do'stlaringiz bilan baham: |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling