Categories

VirtualBox – Network configuration

VirtualBox Network configuration

Check Gispro installation

Virtual BOX Network

 

 

 

 

root@debian:~#​​ ifconfig -a

docker0  ​​​​ Link encap:Ethernet ​​ HWaddr 56:84:7a:fe:97:99

 ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​​​ inet addr:172.17.42.1 ​​ Bcast:0.0.0.0 ​​ Mask:255.255.0.0

 ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​​​ UP BROADCAST MULTICAST ​​ MTU:1500 ​​ Metric:1

 ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​​​ RX packets:0 errors:0 dropped:0 overruns:0 frame:0

 ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​​​ TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

 ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​​​ collisions:0 txqueuelen:0

 ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​​​ RX bytes:0 (0.0 B) ​​ TX bytes:0 (0.0 B)

 

eth0 ​​ ​​ ​​ ​​ ​​​​ Link encap:Ethernet ​​ HWaddr 08:00:27:14:ca:28

 ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​​​ inet addr:10.0.2.15 ​​​​ Bcast:10.0.2.255 ​​ Mask:255.255.255.0

 ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​​​ inet6 addr: fe80::a00:27ff:fe14:ca28/64 Scope:Link

 ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​​​ UP BROADCAST RUNNING MULTICAST ​​ MTU:1500 ​​ Metric:1

 ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​​​ RX packets:10 errors:0 dropped:0 overruns:0 frame:0

 ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​​​ TX packets:64 errors:0 dropped:0 overruns:0 carrier:0

 ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​​​ collisions:0 txqueuelen:1000

 ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​​​ RX bytes:2162 (2.1 KiB) ​​ TX bytes:8829 (8.6 KiB)

 

eth1 ​​ ​​ ​​ ​​ ​​​​ Link encap:Ethernet ​​ HWaddr 08:00:27:dd:cc:50

 ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​​​ inet addr:192.168.56.102 ​​​​ Bcast:192.168.56.255 ​​ Mask:255.255.255.0

 ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​​​ inet6 addr: fe80::a00:27ff:fedd:cc50/64 Scope:Link

 ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​​​ UP BROADCAST RUNNING MULTICAST ​​ MTU:1500 ​​ Metric:1

 ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​​​ RX packets:267 errors:0 dropped:0 overruns:0 frame:0

 ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​​​ TX packets:373 errors:0 dropped:0 overruns:0 carrier:0

 ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​​​ collisions:0 txqueuelen:1000

 ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​​​ RX bytes:22206 (21.6 KiB) ​​ TX bytes:63431 (61.9 KiB)

 

eth2 ​​ ​​ ​​ ​​ ​​​​ Link encap:Ethernet ​​ HWaddr 08:00:27:53:5b:f1

 ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​​​ inet addr:192.168.0.119 ​​​​ Bcast:192.168.0.255 ​​ Mask:255.255.255.0

 ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​​​ inet6 addr: fe80::a00:27ff:fe53:5bf1/64 Scope:Link

 ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​​​ UP BROADCAST RUNNING MULTICAST ​​ MTU:1500 ​​ Metric:1

 ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​​​ RX packets:34 errors:0 dropped:0 overruns:0 frame:0

 ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​​​ TX packets:42 errors:0 dropped:0 overruns:0 carrier:0

 ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​​​ collisions:0 txqueuelen:1000

 ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​ ​​​​ RX bytes:2604 (2.5 KiB) ​​ TX bytes:7708 (7.5 KiB)

 

 

root@debian:~#​​ cat /etc/network/interfaces

# This file describes the network interfaces available on your system

# and how to activate them. For more information, see interfaces(5).

 

source /etc/network/interfaces.d/*

 

# The loopback network interface

auto lo

iface lo inet loopback

 

allow-hotplug eth0

iface eth0 inet dhcp

 

allow-hotplug eth1

iface eth1 inet dhcp

 

allow-hotplug eth2

iface eth1 inet dhcp

root@debian:~#

 

 

Résultat –Test -​​ ​​ Install-01-Apache-PHP7.sh

 

 

Résultat –Test -​​ ​​ Install-02-QGIS.sh

 

 

Résultat –Test -​​ ​​ Install-03-Lizmap.sh

 

 

Résultat –Test -​​ ​​ Install-04-Postgresql-Postgis.sh

 

 

Résultat –Test -​​ ​​ Install-05-PureFTP.sh

 

Résultat –Test -​​ ​​ Install-06-Fail2ban.sh

 

 

Résultat –Test -​​ ​​ Install-07-logins-Firewall.sh

 

Résultat –Test -​​ ​​ Install-08-Apache-security-mode.sh

 

root@debian:~#​​ service apache2 restart

root@debian:~#​​ grep -i modsecurity /var/log/apache2/error.log

[Tue Feb 28 00:14:12.001054 2017] [:notice] [pid 4193:tid 140236052412288]​​ ModSecurity​​ for Apache/2.8.0 (http://www.modsecurity.org/) configured.

[Tue Feb 28 00:14:12.001165 2017] [:notice] [pid 4193:tid 140236052412288]​​ ModSecurity: APR compiled version="1.5.1"; loaded version="1.5.1"

[Tue Feb 28 00:14:12.001171 2017] [:notice] [pid 4193:tid 140236052412288] ModSecurity: PCRE compiled version="8.35 "; loaded version="8.39 2016-06-14"

[Tue Feb 28 00:14:12.001174 2017] [:warn] [pid 4193:tid 140236052412288] ModSecurity: Loaded PCRE do not match with compiled!

[Tue Feb 28 00:14:12.001177 2017] [:notice] [pid 4193:tid 140236052412288] ModSecurity: LUA compiled version="Lua 5.1"

[Tue Feb 28 00:14:12.001180 2017] [:notice] [pid 4193:tid 140236052412288] ModSecurity: LIBXML compiled version="2.9.1"

root@debian:~#