File: 10_interfaces.py

package info (click to toggle)
pyroman 0.5.0~alpha1-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 400 kB
  • sloc: python: 1,653; xml: 88; sh: 59; makefile: 2
file content (13 lines) | stat: -rw-r--r-- 633 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
"""
In this example setup, we use named interfaces, as you can achieve by either
udev or ifrename. This is recommended, so your interfaces do not change names
by a kernel upgrade causing the drivers to be loaded in a different order
(and thus assigning different names to your physical interfaces).

This will effect your system on many levels, that's why it should be handled
on a hardware initialization level, and not within Pyroman (we could obviously
lookup interface names by MAC address, but that won't fix your routing!)
"""
add_interface("int", "ethINT tapVPN")
add_interface("dmz", "ethDMZ")
add_interface("ext", "ethEXT")