c3d2-wiki/IMUNES.mw

109 lines
3.6 KiB
Plaintext

== IMUNES ==
IMUNES - IP network emulator / simulator
Quelle: [http://www.imunes.net imunes.net]
Open-Source Routing and Network Simulation
IMUNES for FreeBSD
Quelle: [http://imunes.net/download imunes.net/download]
Quelle: [http://www.brianlinkletter.com/tag/imunes brianlinkletter.com]
== Umgebung ==
Auf freenas/storage läuft vHOST (VirtualBox Jail) die die VM: IMUNES-FreeBSD-10.1-RELEASE_20150506 ausführt
* IP: '''.99''' (port VNC '''5901''')
IMUNES
* IP: '''.98''' (port SSH '''22''' mit X Forwarding)
=== IMUNES HOST Interfaces ===
Virtualbox gibt 4x das epair als '''Paravirtualized Network Adapter''' (virtio-net) frei, über eine Bridge, jedoch erlaubt das VBox bridging explizit: '''Promiscuous Mode: Allow All''' (damit auch der Traffic zu den NetGraph Jails durchgereicht wird!)
<source lang=bash>
vtnet0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=6c03bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,VLAN_HWTSO,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
ether 00:00:00:00:00:00
inet .98 netmask 0xffffff00 broadcast .255
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet 10Gbase-T <full-duplex>
status: active
vtnet1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=6c03bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,VLAN_HWTSO,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
ether 00:00:00:00:00:00
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet 10Gbase-T <full-duplex>
status: active
vtnet2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=6c03bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,VLAN_HWTSO,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
ether 00:00:00:00:00:00
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet 10Gbase-T <full-duplex>
status: active
vtnet3: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=6c03bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,VLAN_HWTSO,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
ether 00:00:00:00:00:00
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet 10Gbase-T <full-duplex>
status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5
inet 127.0.0.1 netmask 0xff000000
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
</source>
'''vtnet0''' dient zur Kommunikation mit dem IMUNES HOST
'''vtnet1-3''' kann für die Netzwerksimulation verwendet werden!
== X Forwarding ==
=== unter Mac OS ===
* 1. [http://xquartz.macosforge.org/landing xquartz.macosforge.org] installieren (für Yosemite 10.10+ die Beta nehmen)
* 2. User einmal ausloggen und wieder anmelden
* 3. X Forwarding
<source lang=bash>
sudo -X root@.98
</source>
* 4. als User im Terminal
<source lang=bash>
echo $DISPLAY
</source>
* 5. wieder im root SSH (remote) '''xterm''' / '''xfce4-session''' starten
<source lang=bash>
[root@IMUNES ~]# xterm
[root@IMUNES ~]# xfce4-session
</source>
* 6. '''IMUNES''' GUI starten
== IMUNES Benutzung ==
Vorlage: /root/c3d2_daniel.imn
=== Screenshot ===
[[Datei:C3d2_imunes_example.jpg]]
=== komplexes Netz ab 11.10.2015 ===
[[Datei:C3d2_imunes_complex1.jpg]]
Das Netz ist erreichbar und alle VM Geräte (aus dem Subnet 192.168.0.0/17) sind auch über die Default-Gateways verfügbar
== Hinweise ==
vlan scheint derzeit nicht zu gehen, das vtnet3 interface, was per netgraph die vlan anbindung macht, wird nicht per vnet in den virtuellen netzwerk stack geschoben (bug?)