https://github.com/fl64/ngfw-testlab
https://github.com/fl64/ngfw-testlab
testing
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/fl64/ngfw-testlab
- Owner: fl64
- Created: 2018-06-04T09:03:54.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-11T16:35:31.000Z (almost 8 years ago)
- Last Synced: 2025-12-26T17:39:57.574Z (5 months ago)
- Topics: testing
- Language: HTML
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### CentOS 7.4
#### Set static IP
```shell
nmcli con mod ens192 connection.autoconnect true ipv4.method manual ipv4.addresses 192.168.127.199/22 ipv4.gateway 192.168.124.4 ipv4.dns 8.8.8.8
systemctl restart network
```
#### Set dynamic IP
```shell
nmcli con mod ens192 connection.autoconnect true ipv4.method auto ipv4.addresses "" ipv4.gateway "" ipv4.dns ""
```
#### Start connection
```shell
nmcli con up ens192
```
#### Stop connection
```shell
nmcli con down ens192
```
### How to run
#### Run
```shell
cd ngfw-testlab
docker-compose up -d
```
#### Stop
```shell
docker-compose down
```
### How to install
#### Install
```shell
sudo -i
systemctl disable --now {firewalld,postfix} \
&& yum install wget epel-release git -y && yum install python-pip -y \
&& wget -qO- https://get.docker.com/ | sh \
&& systemctl enable --now docker \
&& yum upgrade python* -y \
## && pip install docker-compose
&& curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-$(uname -s)-$(uname -m) -o /usr/bin/docker-compose \
&& chmod +x /usr/bin/docker-compose
exit
```
```shell
git clone https://github.com/fl64/ngfw-testlab
sudo usermod -aG docker $(whoami) && newgrp docker # Добавить текущего пользователя в группу docker для выполнения команд по управлению контейнерами без sudo
```
### Info
mail accounts:
- user@example.com\P@ssw0rd
- admin@example.com\P@ssw0rd
### Source:
- Mail server: https://github.com/tomav/docker-mailserver
- Ftp: https://hub.docker.com/r/vimagick/pure-ftpd/