Statistics
| Branch: | Tag: | Revision:

root / docs / scale / i-network.rst @ 301294a9

History | View | Annotate | Download (1.7 kB)

1
.. _i-network:
2

    
3
Synnefo
4
-------
5

    
6
:ref:`synnefo <i-synnefo>` ||
7
:ref:`ns <i-ns>` ||
8
:ref:`apt <i-apt>` ||
9
:ref:`mq <i-mq>` ||
10
:ref:`db <i-db>` ||
11
:ref:`gunicorn <i-gunicorn>` ||
12
:ref:`apache <i-apache>` ||
13
:ref:`webproject <i-webproject>` ||
14
:ref:`astakos <i-astakos>` ||
15
:ref:`cms <i-cms>` ||
16
:ref:`pithos <i-pithos>` ||
17
:ref:`cyclades <i-cyclades>` ||
18
:ref:`kamaki <i-kamaki>` ||
19
:ref:`backends <i-backends>`
20

    
21
Backends
22
++++++++
23

    
24
:ref:`ganeti <i-ganeti>` ||
25
:ref:`image <i-image>` ||
26
:ref:`gtools <i-gtools>` ||
27
network
28

    
29
snf-network Setup
30
~~~~~~~~~~~~~~~~~
31

    
32
The following apply to ``ganeti`` nodes.
33

    
34

    
35
Install the corresponding package:
36

    
37
.. code-block:: console
38

    
39
   # apt-get install nfqueue-bindings-python=0.3+physindev-1
40
   # apt-get install snf-network
41
   # apt-get install nfdhcpd
42

    
43
In `/etc/snf-network/default` add:
44

    
45
.. code-block:: console
46

    
47
   MAC_MASK = ff:ff:f0:00:00:00
48

    
49
Edit `/etc/nfdhcpd/nfdhcpd.conf` to your preferances (DNS, IPv6) and add the
50
following iptables rules:
51

    
52
.. code-block:: console
53

    
54
    # iptables -t mangle -A PREROUTING -i br+ -p udp -m udp --dport 67 -j NFQUEUE --queue-num 42
55
    # iptables -t mangle -A PREROUTING -i tap+ -p udp -m udp --dport 67 -j NFQUEUE --queue-num 42
56
    # iptables -t mangle -A PREROUTING -i prv+ -p udp -m udp --dport 67 -j NFQUEUE --queue-num 42
57

    
58
    # ip6tables -t mangle -A PREROUTING -i br+ -p ipv6-icmp -m icmp6 --icmpv6-type 133 -j NFQUEUE --queue-num 43
59
    # ip6tables -t mangle -A PREROUTING -i br+ -p ipv6-icmp -m icmp6 --icmpv6-type 135 -j NFQUEUE --queue-num 44
60

    
61

    
62
In router node in case you have a NAT setup run:
63

    
64
.. code-block:: console
65

    
66
    # iptables -t nat -A POSTROUTING -s 10.0.1.0/24 -j MASQUERADE
67
    # ip addr add 10.0.1.1/24 dev eth1
68

    
69

    
70
Test your Setup:
71
++++++++++++++++