-
Notifications
You must be signed in to change notification settings - Fork 0
VM Node 01
cypx edited this page Nov 17, 2014
·
46 revisions
IPv4: 5.196.206.61
Virtual MAC: 02:00:00:b3:ce:47
OS: Ubuntu 14.04
Installed from VM-template
Configure network interface
$ vi /etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 5.196.206.61
netmask 255.255.255.255
broadcast 5.196.206.61
post-up route add 37.59.46.254 dev eth0
post-up route add default gw 37.59.46.254
pre-down route del 37.59.46.254 dev eth0
pre-down route del default gw 37.59.46.254
dns-nameservers 8.8.8.8 8.8.4.4
Change hostname
$ echo "node-01" | sudo tee /etc/hostname
$ sudo vi /etc/hosts
127.0.0.1 localhost
127.0.1.1 node-01
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
Install and configure stunnel to secure MongoDB connexion
$ sudo apt-get install stunnel4
$ sudo vi /etc/stunnel/stunnel.conf
client = yes
[mongodb]
accept = 27017
connect = 5.196.206.60:27018
$ sudo vi /etc/default/stunnel4
ENABLED=1
$ sudo service stunnel4 start
Managed via PVE interface:
- Global configuration:
- Input policy: Drop
- Output policy: Accept
- Proxmox server specific configuration
- Input Accept SSH macro
- Input Accept HTTP macro
- Input Accept HTTPS macro