This BOSH release contains several jobs to help you configure VMs with special networking properties:
- Gateway: allows to add a default gateway to your vms
- NAT: allows to create a NAT vm using iptables
- Routes: allows to add IP routes to your vms
- MTU: allows to override MTU on your vms
Add the networking release jobs and properties to your BOSH deployment manifest:
releases:
- name: cf
version: latest
- name: networking # +
version: latest # +
...
instance_groups:
- name: haproxy
jobs:
- name: nat # +
release: networking # +
properties: # +
networking.nat: # +
in_interface: eth0 # +
out_interface: eth1 # +
- name: haproxy
release: cf
networks:
- name: default
default: [dns, gateway]
- name: public
static_ips:
- 1.2.3.4
- name: router
jobs:
- name: gateway # +
release: networking # +
properties: # +
networking.gateway: # +
default: 0.haproxy.default.cf.microbosh # +
- name: routes # +
release: networking # +
properties: # +
networking.routes: # +
- net: 192.168.1.0 # +
netmask: 255.255.255.224 # +
interface: eth0 # +
gateway: 10.9.9.1 # +
- name: port_forwarding # +
release: networking # +
properties: # +
networking:
port_forwarding: # +
- external_port: 9200 # +
internal_ip: 1.2.3.10 # +
internal_port: 9200 # +
- external_port: 9292 # +
internal_ip: 1.2.3.11 # +
internal_port: 9292 # +
- name: gorouter
release: cf
Based on the Rakuten BOSH routing release.
Apache License Version 2.0 - see LICENSE for details.