Commit 0b6958e1 authored by John Hackett's avatar John Hackett

Moved networking files around

parent 63ea6e42
......@@ -22,11 +22,11 @@ PERMISSIONS = [
]
# Context attributes
NETWORK_ADDRESS = "192.168.255.255"
NETWORK_MASK = "255.255.0.0"
NETWORK_ADDRESS = "10.0.25.255"
NETWORK_MASK = "255.255.255.0"
DNS = "192.168.0.1"
GATEWAY = "192.168.3.1"
GATEWAY = "10.0.25.1"
#Address Ranges, only these addresses will be assigned to the VMs
AR=[TYPE = "IP4", IP = "192.168.3.5", SIZE = "50"]
AR=[TYPE = "IP4", IP = "10.0.25.150", SIZE = "50"]
}
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
auto onebr0
iface onebr0 inet dhcp
bridge_ports eth0
bridge_stp off
auto eth0
#iface eth0 inet static
iface eth0 inet manual
auto onebr0
iface onebr0 inet static
bridge_ports eth0
bridge_stp off
address 10.0.25.150
broadcast 10.0.0.255
netmask 255.255.255.0
post-up iptables -t nat -A POSTROUTING -o onebr0 -j MASQUERADE
post-up iptables -A FORWARD -i eth0 -o onebr0 -m state --state RELATED,ESTABLISHED -j ACCEPT
post-up iptables -A FORWARD -i onebr0 -o eth0 -j ACCEPT
\ No newline at end of file
# /etc/network/interfaces.d/lo
auto lo
iface lo inet loopback
# This file to live at /etc/network/interfaces
source /etc/network/interfaces.d/*
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment