From 030aa1cd0179c524457430c85c75c20c98ab6c23 Mon Sep 17 00:00:00 2001 From: Chris Guest Date: Sat, 3 Sep 2022 11:41:38 +0100 Subject: [PATCH 1/6] First example using gns3 --- 32_gns3/.gitignore | 1 + 32_gns3/README.md | 17 ++ 32_gns3/first_example/first_example.gns3 | 231 +++++++++++++++++++++++ 3 files changed, 249 insertions(+) create mode 100644 32_gns3/.gitignore create mode 100644 32_gns3/README.md create mode 100644 32_gns3/first_example/first_example.gns3 diff --git a/32_gns3/.gitignore b/32_gns3/.gitignore new file mode 100644 index 0000000..7f78f21 --- /dev/null +++ b/32_gns3/.gitignore @@ -0,0 +1 @@ +GNS3 VM \ No newline at end of file diff --git a/32_gns3/README.md b/32_gns3/README.md new file mode 100644 index 0000000..1a66d9a --- /dev/null +++ b/32_gns3/README.md @@ -0,0 +1,17 @@ +# README + +Demonstrate some `gns3` examples. + +```sh +brew install gns3 +``` + +https://www.gns3.com/software/download-vm + +```sh +VBoxManage import ./GNS3\ VM/GNS3\ VM.ovf +``` + +NOTE: You have to create a host only network interface `vboxnet0`. + +## Resources diff --git a/32_gns3/first_example/first_example.gns3 b/32_gns3/first_example/first_example.gns3 new file mode 100644 index 0000000..2e844d2 --- /dev/null +++ b/32_gns3/first_example/first_example.gns3 @@ -0,0 +1,231 @@ +{ + "auto_close": true, + "auto_open": false, + "auto_start": false, + "drawing_grid_size": 25, + "grid_size": 75, + "name": "first_example", + "project_id": "ef74f897-e5a2-4bbe-a7c5-c9a0ba51c30b", + "revision": 9, + "scene_height": 1000, + "scene_width": 2000, + "show_grid": false, + "show_interface_labels": false, + "show_layers": false, + "snap_to_grid": false, + "supplier": null, + "topology": { + "computes": [], + "drawings": [], + "links": [ + { + "filters": {}, + "link_id": "d3b0e0a6-22fc-46e8-8524-cdbbfcde1b34", + "link_style": {}, + "nodes": [ + { + "adapter_number": 0, + "label": { + "rotation": 0, + "style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;", + "text": "e0", + "x": 0, + "y": -4 + }, + "node_id": "84884989-3394-4cf6-aad1-75264b360fb6", + "port_number": 0 + }, + { + "adapter_number": 0, + "label": { + "rotation": 0, + "style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;", + "text": "e0", + "x": 67, + "y": 49 + }, + "node_id": "8a765fd4-a909-4c53-8d89-7b1b031fd31f", + "port_number": 0 + } + ], + "suspend": false + }, + { + "filters": {}, + "link_id": "cb083c84-0704-48d6-b534-00efdb5ac42a", + "link_style": {}, + "nodes": [ + { + "adapter_number": 0, + "label": { + "rotation": 0, + "style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;", + "text": "e1", + "x": 34, + "y": 55 + }, + "node_id": "84884989-3394-4cf6-aad1-75264b360fb6", + "port_number": 1 + }, + { + "adapter_number": 0, + "label": { + "rotation": 0, + "style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;", + "text": "e0", + "x": 33, + "y": -10 + }, + "node_id": "0648872a-973d-41ea-aecc-1cdfafec4bc2", + "port_number": 0 + } + ], + "suspend": false + } + ], + "nodes": [ + { + "compute_id": "vm", + "console": 5000, + "console_auto_start": false, + "console_type": "none", + "custom_adapters": [], + "first_port_name": null, + "height": 32, + "label": { + "rotation": 0, + "style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;", + "text": "Switch1", + "x": 11, + "y": -25 + }, + "locked": false, + "name": "Switch1", + "node_id": "84884989-3394-4cf6-aad1-75264b360fb6", + "node_type": "ethernet_switch", + "port_name_format": "Ethernet{0}", + "port_segment_size": 0, + "properties": { + "ports_mapping": [ + { + "name": "Ethernet0", + "port_number": 0, + "type": "access", + "vlan": 1 + }, + { + "name": "Ethernet1", + "port_number": 1, + "type": "access", + "vlan": 1 + }, + { + "name": "Ethernet2", + "port_number": 2, + "type": "access", + "vlan": 1 + }, + { + "name": "Ethernet3", + "port_number": 3, + "type": "access", + "vlan": 1 + }, + { + "name": "Ethernet4", + "port_number": 4, + "type": "access", + "vlan": 1 + }, + { + "name": "Ethernet5", + "port_number": 5, + "type": "access", + "vlan": 1 + }, + { + "name": "Ethernet6", + "port_number": 6, + "type": "access", + "vlan": 1 + }, + { + "name": "Ethernet7", + "port_number": 7, + "type": "access", + "vlan": 1 + } + ] + }, + "symbol": ":/symbols/ethernet_switch.svg", + "template_id": "1966b864-93e7-32d5-965f-001384eec461", + "width": 72, + "x": 31, + "y": -25, + "z": 1 + }, + { + "compute_id": "vm", + "console": 5001, + "console_auto_start": false, + "console_type": "telnet", + "custom_adapters": [], + "first_port_name": null, + "height": 59, + "label": { + "rotation": 0, + "style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;", + "text": "PC1", + "x": 18, + "y": -25 + }, + "locked": false, + "name": "PC1", + "node_id": "8a765fd4-a909-4c53-8d89-7b1b031fd31f", + "node_type": "vpcs", + "port_name_format": "Ethernet{0}", + "port_segment_size": 0, + "properties": {}, + "symbol": ":/symbols/vpcs_guest.svg", + "template_id": "19021f99-e36f-394d-b4a1-8aaa902ab9cc", + "width": 65, + "x": -147, + "y": -101, + "z": 1 + }, + { + "compute_id": "vm", + "console": 5003, + "console_auto_start": false, + "console_type": "telnet", + "custom_adapters": [], + "first_port_name": null, + "height": 59, + "label": { + "rotation": 0, + "style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;", + "text": "PC2", + "x": 18, + "y": -25 + }, + "locked": false, + "name": "PC2", + "node_id": "0648872a-973d-41ea-aecc-1cdfafec4bc2", + "node_type": "vpcs", + "port_name_format": "Ethernet{0}", + "port_segment_size": 0, + "properties": {}, + "symbol": ":/symbols/vpcs_guest.svg", + "template_id": "19021f99-e36f-394d-b4a1-8aaa902ab9cc", + "width": 65, + "x": -151, + "y": 21, + "z": 1 + } + ] + }, + "type": "topology", + "variables": null, + "version": "2.2.34", + "zoom": 100 +} \ No newline at end of file From 35aed9505aa3daf0168322ef4b9e7f5113860a35 Mon Sep 17 00:00:00 2001 From: Chris Guest Date: Sat, 3 Sep 2022 15:21:39 +0100 Subject: [PATCH 2/6] Update gns3 examples --- 32_gns3/README.md | 11 +++ 32_gns3/applicances/ubuntu-server.gns3a | 45 +++++++++ 32_gns3/applicances/vyos.gns3a | 126 ++++++++++++++++++++++++ 3 files changed, 182 insertions(+) create mode 100644 32_gns3/applicances/ubuntu-server.gns3a create mode 100644 32_gns3/applicances/vyos.gns3a diff --git a/32_gns3/README.md b/32_gns3/README.md index 1a66d9a..5dd13ca 100644 --- a/32_gns3/README.md +++ b/32_gns3/README.md @@ -14,4 +14,15 @@ VBoxManage import ./GNS3\ VM/GNS3\ VM.ovf NOTE: You have to create a host only network interface `vboxnet0`. +## Appliances + +```sh +ll -a /Applications/GNS3.app/Contents/Resources/appliances +cat /Applications/GNS3.app/Contents/Resources/appliances/vyos.gns3a +cp /Applications/GNS3.app/Contents/Resources/appliances/vyos.gns3a ./32_gns3/applicances +``` + ## Resources + +* https://www.gns3.com/ +* https://gns3.com/marketplace/appliances diff --git a/32_gns3/applicances/ubuntu-server.gns3a b/32_gns3/applicances/ubuntu-server.gns3a new file mode 100644 index 0000000..534be61 --- /dev/null +++ b/32_gns3/applicances/ubuntu-server.gns3a @@ -0,0 +1,45 @@ +{ + "appliance_id": "d2a23e69-9e92-4c3f-83c8-8caa1aa58ece", + "name": "Ubuntu Server", + "category": "guest", + "description": "This is a custom Ubuntu server which comes with Canonical security updates, Xorg and Telnetd", + "vendor_name": "Canonical Inc.", + "vendor_url": "https://www.ubuntu.com", + "documentation_url": "https://help.ubuntu.com", + "product_name": "Ubuntu", + "product_url": "https://ubuntu.com/server", + "registry_version": 3, + "status": "stable", + "maintainer": "Mohamad Siblini", + "maintainer_email": "info@ictkin.com", + "usage": "Username: gns3\nPassword: gns3 | MD5: 435f15a54f7f673e302ad26f05226e0e", + "port_name_format": "ens{0}", + "qemu": { + "adapter_type": "virtio-net-pci", + "adapters": 1, + "ram": 2048, + "hda_disk_interface": "virtio", + "arch": "x86_64", + "console_type": "vnc", + "boot_priority": "c", + "kvm": "require", + "options": "-vga virtio" + }, + "images": [ + { + "filename": "Ubuntu Server 18.04.3 LTS (64bit).vmdk", + "version": "18.04.3 LTS Server", + "md5sum": "435f15a54f7f673e302ad26f05226e0e", + "filesize": 2707814912, + "download_url": "https://www.ictkin.com/gns3-appliance/" + } + ], + "versions": [ + { + "name": "18.04.3 LTS Server", + "images": { + "hda_disk_image": "Ubuntu Server 18.04.3 LTS (64bit).vmdk" + } + } + ] +} diff --git a/32_gns3/applicances/vyos.gns3a b/32_gns3/applicances/vyos.gns3a new file mode 100644 index 0000000..4004a1b --- /dev/null +++ b/32_gns3/applicances/vyos.gns3a @@ -0,0 +1,126 @@ +{ + "appliance_id": "f82b74c4-0f30-456f-a582-63daca528502", + "name": "VyOS", + "category": "router", + "description": "VyOS is a community fork of Vyatta, a Linux-based network operating system that provides software-based network routing, firewall, and VPN functionality. VyOS has a subscription LTS version and a community rolling release. The latest version in this appliance is the monthly snapshot of the rolling release track.", + "vendor_name": "Linux", + "vendor_url": "https://vyos.net/", + "documentation_url": "https://docs.vyos.io/", + "product_name": "VyOS", + "product_url": "https://vyos.net/", + "registry_version": 3, + "status": "stable", + "maintainer": "GNS3 Team", + "maintainer_email": "developers@gns3.net", + "usage": "Default username/password is vyos/vyos.\n\nAt first boot the router will start from the cdrom. Login and then type \"install image\" and follow the instructions.", + "symbol": "vyos.svg", + "port_name_format": "eth{0}", + "qemu": { + "adapter_type": "e1000", + "adapters": 3, + "ram": 512, + "hda_disk_interface": "scsi", + "arch": "x86_64", + "console_type": "telnet", + "boot_priority": "cd", + "kvm": "allow" + }, + "images": [ + { + "filename": "vyos-1.3.1-amd64.iso", + "version": "1.3.1", + "md5sum": "b6f57bd0cf9b60cdafa337b08ba4f2bc", + "filesize": 350224384, + "download_url": "https://support.vyos.io/en/downloads/files/vyos-1-3-1-generic-iso-image" + }, + { + "filename": "vyos-1.3.0-amd64.iso", + "version": "1.3.0", + "md5sum": "2019bd9c5efa6194e2761de678d0073f", + "filesize": 338690048, + "download_url": "https://support.vyos.io/en/downloads/files/vyos-1-3-0-generic-iso-image" + }, + { + "filename": "vyos-1.3.0-epa3-amd64.iso", + "version": "1.3.0-epa3", + "md5sum": "1b5de684d8995844e35fa5cec3171811", + "filesize": 331350016, + "download_url": "https://vyos.net/get/snapshots/", + "direct_download_url": "https://s3.amazonaws.com/s3-us.vyos.io/snapshot/vyos-1.3.0-epa3/vyos-1.3.0-epa3-amd64.iso" + }, + { + "filename": "vyos-1.2.8-amd64.iso", + "version": "1.2.8", + "md5sum": "0ad879db903efdbf1c39dc945e165931", + "filesize": 429916160, + "download_url": "https://support.vyos.io/en/downloads/files/vyos-1-2-8-generic-iso-image" + }, + { + "filename": "vyos-1.2.7-amd64.iso", + "version": "1.2.7", + "md5sum": "1a06255edfac63fa3ea89353317130bf", + "filesize": 428867584, + "download_url": "https://support.vyos.io/en/downloads/files/vyos-1-2-7-generic-iso-image" + }, + { + "filename": "vyos-1.1.8-amd64.iso", + "version": "1.1.8", + "md5sum": "95a141d4b592b81c803cdf7e9b11d8ea", + "filesize": 241172480, + "download_url": "https://support.vyos.io/en/downloads/files/vyos-1-1-8-iso", + "direct_download_url": "https://s3.amazonaws.com/s3-us.vyos.io/vyos-1.1.8-amd64.iso" + }, + { + "filename": "empty8G.qcow2", + "version": "1.0", + "md5sum": "f1d2c25b6990f99bd05b433ab603bdb4", + "filesize": 197120, + "download_url": "https://sourceforge.net/projects/gns-3/files/Empty%20Qemu%20disk/", + "direct_download_url": "https://sourceforge.net/projects/gns-3/files/Empty%20Qemu%20disk/empty8G.qcow2/download" + } + ], + "versions": [ + { + "name": "1.3.1", + "images": { + "hda_disk_image": "empty8G.qcow2", + "cdrom_image": "vyos-1.3.1-amd64.iso" + } + }, + { + "name": "1.3.0", + "images": { + "hda_disk_image": "empty8G.qcow2", + "cdrom_image": "vyos-1.3.0-amd64.iso" + } + }, + { + "name": "1.3.0-epa3", + "images": { + "hda_disk_image": "empty8G.qcow2", + "cdrom_image": "vyos-1.3.0-epa3-amd64.iso" + } + }, + { + "name": "1.2.8", + "images": { + "hda_disk_image": "empty8G.qcow2", + "cdrom_image": "vyos-1.2.8-amd64.iso" + } + }, + { + "name": "1.2.7", + "images": { + "hda_disk_image": "empty8G.qcow2", + "cdrom_image": "vyos-1.2.7-amd64.iso" + } + }, + { + "name": "1.1.8", + "images": { + "hda_disk_image": "empty8G.qcow2", + "cdrom_image": "vyos-1.1.8-amd64.iso" + } + } + ] +} From b06937683de6f46983216ad726d84e8d222d6749 Mon Sep 17 00:00:00 2001 From: Chris Guest Date: Sat, 3 Sep 2022 18:53:40 +0100 Subject: [PATCH 3/6] Add a couple of links and some todo --- 32_gns3/README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/32_gns3/README.md b/32_gns3/README.md index 5dd13ca..f984b7c 100644 --- a/32_gns3/README.md +++ b/32_gns3/README.md @@ -2,6 +2,13 @@ Demonstrate some `gns3` examples. +TODO: + +* Install appliance in a VM +* Build a simple network with vms or docker and capture traffic. + +## Prerequisites + ```sh brew install gns3 ``` @@ -22,7 +29,15 @@ cat /Applications/GNS3.app/Contents/Resources/appliances/vyos.gns3a cp /Applications/GNS3.app/Contents/Resources/appliances/vyos.gns3a ./32_gns3/applicances ``` + + + + ## Resources * https://www.gns3.com/ * https://gns3.com/marketplace/appliances +* https://www.ictshore.com/gns3/vms-in-gns3-virtualbox/ + + +https://docs.vyos.io/en/equuleus/installation/virtual/gns3.html From 8de798328a9fc1a273dc9b417c5c4500d338d83d Mon Sep 17 00:00:00 2001 From: Chris Guest Date: Sat, 3 Sep 2022 22:53:27 +0100 Subject: [PATCH 4/6] Add some gns3 docker containers --- 32_gns3/.gitignore | 3 +- 32_gns3/README.md | 38 ++++ 32_gns3/applicances/kali-linux.gns3a | 248 +++++++++++++++++++++++ 32_gns3/first_example/first_example.gns3 | 234 ++++++++++++++++++++- 4 files changed, 516 insertions(+), 7 deletions(-) create mode 100644 32_gns3/applicances/kali-linux.gns3a diff --git a/32_gns3/.gitignore b/32_gns3/.gitignore index 7f78f21..13cadac 100644 --- a/32_gns3/.gitignore +++ b/32_gns3/.gitignore @@ -1 +1,2 @@ -GNS3 VM \ No newline at end of file +GNS3 VM +images \ No newline at end of file diff --git a/32_gns3/README.md b/32_gns3/README.md index f984b7c..1218677 100644 --- a/32_gns3/README.md +++ b/32_gns3/README.md @@ -9,6 +9,16 @@ TODO: ## Prerequisites +VirtualBox +vncviewer +wireshark - `ln -s /usr/bin/wireshark ~/GNS3/wireshark/` +iso's +Nested VM processor? + +`VBoxManage modifyvm --nested-hw-virt on` + +Linux: https://docs.gns3.com/docs/getting-started/installation/linux/ + ```sh brew install gns3 ``` @@ -23,12 +33,19 @@ NOTE: You have to create a host only network interface `vboxnet0`. ## Appliances +MacOS + ```sh ll -a /Applications/GNS3.app/Contents/Resources/appliances cat /Applications/GNS3.app/Contents/Resources/appliances/vyos.gns3a cp /Applications/GNS3.app/Contents/Resources/appliances/vyos.gns3a ./32_gns3/applicances ``` +Linux + +```sh +ll -a ~/GNS3/appliances +``` @@ -41,3 +58,24 @@ cp /Applications/GNS3.app/Contents/Resources/appliances/vyos.gns3a ./32_gns3/ap https://docs.vyos.io/en/equuleus/installation/virtual/gns3.html + + +https://github.com/GNS3/dynamips + +https://wiki.archlinux.org/title/GNS3 + +https://www.techtarget.com/searchitoperations/tip/Tips-to-launch-VirtualBox-nested-virtualization + +https://stackoverflow.com/questions/54251855/virtualbox-enable-nested-vtx-amd-v-greyed-out +NOTE: it can be enabled + +VMX - Virtual-Machine Extensions = 0 (1) +Ept - Extended Page Tables = 0 (1) +UnrestrictedGuest - Unrestricted guest = 0 (1) +VmcsShadowing - VMCS shadowing = 0 (1) + +http://cdimage.kali.org/kali-2022.3/ + +Docker Nettools +https://github.com/Someguy123/docker-networktools + diff --git a/32_gns3/applicances/kali-linux.gns3a b/32_gns3/applicances/kali-linux.gns3a new file mode 100644 index 0000000..c5ad411 --- /dev/null +++ b/32_gns3/applicances/kali-linux.gns3a @@ -0,0 +1,248 @@ +{ + "appliance_id": "cb854aa6-379c-4458-8c4c-2164fa9ec98d", + "name": "Kali Linux", + "category": "guest", + "description": "From the creators of BackTrack comes Kali Linux, the most advanced and versatile penetration testing platform ever created. We have a set of amazing features lined up in our security distribution geared at streamlining the penetration testing experience.", + "vendor_name": "Kali Linux", + "vendor_url": "https://www.kali.org/", + "documentation_url": "https://www.kali.org/kali-linux-documentation/", + "product_name": "Kali Linux", + "registry_version": 3, + "status": "stable", + "maintainer": "GNS3 Team", + "maintainer_email": "developers@gns3.net", + "usage": "Default password is toor\nEnable persistence by selecting boot option 'Live USB Persistence'", + "port_name_format": "eth{0}", + "qemu": { + "adapter_type": "e1000", + "adapters": 8, + "ram": 1024, + "hda_disk_interface": "ide", + "arch": "x86_64", + "console_type": "vnc", + "boot_priority": "d", + "kvm": "require" + }, + "images": [ + { + "filename": "kali-linux-2021.1-live-amd64.iso", + "version": "2021.1", + "md5sum": "3a3716fef866e5c29a1c1ccfc94264b5", + "filesize": 3591385088, + "download_url": "http://cdimage.kali.org/kali-2021.1/", + "direct_download_url": "http://cdimage.kali.org/kali-2021.1/kali-linux-2021.1-live-amd64.iso" + }, + { + "filename": "kali-linux-2019.3-amd64.iso", + "version": "2019.3", + "md5sum": "9c6fb00558f78ed06992d89f745ef975", + "filesize": 3037736960, + "download_url": "http://old.kali.org/kali-images/kali-2019.3", + "direct_download_url": "http://old.kali.org/kali-images/kali-2019.3/kali-linux-2019.3-amd64.iso" + }, + { + "filename": "kali-linux-2019.2-amd64.iso", + "version": "2019.2", + "md5sum": "0f89b6225d7ea9c18682f7cc541c1179", + "filesize": 3353227264, + "download_url": "http://old.kali.org/kali-images/kali-2019.2", + "direct_download_url": "http://old.kali.org/kali-images/kali-2019.2/kali-linux-2019.2-amd64.iso" + }, + { + "filename": "kali-linux-mate-2019.2-amd64.iso", + "version": "2019.2 (MATE)", + "md5sum": "fec8dd7009f932c51a74323df965a709", + "filesize": 3313217536, + "download_url": "http://old.kali.org/kali-images/kali-2019.2", + "direct_download_url": "http://old.kali.org/kali-images/kali-2019.2/kali-linux-mate-2019.2-amd64.iso" + }, + { + "filename": "kali-linux-2019.1a-amd64.iso", + "version": "2019.1a", + "md5sum": "58c6111ed0be1919ea87267e7e65ab0f", + "filesize": 3483873280, + "download_url": "http://old.kali.org/kali-images/kali-2019.1a", + "direct_download_url": "http://old.kali.org/kali-images/kali-2019.1a/kali-linux-2019.1a-amd64.iso" + }, + { + "filename": "kali-linux-2018.4-amd64.iso", + "version": "2018.4", + "md5sum": "1b2d598bb8d2003e6207c119c0ba42fe", + "filesize": 3139436544, + "download_url": "http://old.kali.org/kali-images/kali-2018.4", + "direct_download_url": "http://old.kali.org/kali-images/kali-2018.4/kali-linux-2018.4-amd64.iso" + }, + { + "filename": "kali-linux-2018.3a-amd64.iso", + "version": "2018.3a", + "md5sum": "2da675d016bd690c05e180e33aa98b94", + "filesize": 3192651776, + "download_url": "http://old.kali.org/kali-images/kali-2018.3a", + "direct_download_url": "http://old.kali.org/kali-images/kali-2018.3a/kali-linux-2018.3a-amd64.iso" + }, + { + "filename": "kali-linux-2018.1-amd64.iso", + "version": "2018.1", + "md5sum": "a3feb90df5b71b3c7f4a02bdddf221d7", + "filesize": 3028500480, + "download_url": "http://old.kali.org/kali-images/kali-2018.1", + "direct_download_url": "http://old.kali.org/kali-images/kali-2018.1/kali-linux-2018.1-amd64.iso" + }, + { + "filename": "kali-linux-2017.3-amd64.iso", + "version": "2017.3", + "md5sum": "b465580c897e94675ac1daf031fa66b9", + "filesize": 2886402048, + "download_url": "http://old.kali.org/kali-images/kali-2017.3/", + "direct_download_url": "http://old.kali.org/kali-images/kali-2017.3/kali-linux-2017.3-amd64.iso" + }, + { + "filename": "kali-linux-2017.2-amd64.iso", + "version": "2017.2", + "md5sum": "541654f8f818450dc0db866a0a0f6eec", + "filesize": 3020619776, + "download_url": "http://old.kali.org/kali-images/kali-2017.2/", + "direct_download_url": "http://old.kali.org/kali-images/kali-2017.2/kali-linux-2017.2-amd64.iso" + }, + { + "filename": "kali-linux-2017.1-amd64.iso", + "version": "2017.1", + "md5sum": "c8e742283929d7a12dbe7c58e398ff08", + "filesize": 2794307584, + "download_url": "http://old.kali.org/kali-images/kali-2017.1/", + "direct_download_url": "http://old.kali.org/kali-images/kali-2017.1/kali-linux-2017.1-amd64.iso" + }, + { + "filename": "kali-linux-2016.2-amd64.iso", + "version": "2016.2", + "md5sum": "3d163746bc5148e61ad689d94bc263f9", + "filesize": 3076767744, + "download_url": "http://old.kali.org/kali-images/kali-2016.2/", + "direct_download_url": "http://old.kali.org/kali-images/kali-2016.2/kali-linux-2016.2-amd64.iso" + }, + { + "filename": "kali-linux-2016.1-amd64.iso", + "version": "2016.1", + "md5sum": "2e1230dc14036935b3279dfe3e49ad39", + "filesize": 2945482752, + "download_url": "http://old.kali.org/kali-images/kali-2016.1/", + "direct_download_url": "http://old.kali.org/kali-images/kali-2016.1/kali-linux-2016.1-amd64.iso" + }, + { + "filename": "kali-linux-2.0-amd64.iso", + "version": "2.0", + "md5sum": "ef192433017c5d99a156eaef51fd389d", + "filesize": 3320512512, + "download_url": "https://www.offensive-security.com/kali-linux-vmware-arm-image-download/", + "direct_download_url": "http://images.kali.org/Kali-Linux-2.0.0-vm-amd64.7z" + }, + { + "filename": "kali-linux-persistence-1gb.qcow2", + "version": "1.0", + "md5sum": "14e9c92f3ba5a0bd1128c1ea26a129ea", + "filesize": 34734080, + "download_url": "https://sourceforge.net/projects/gns-3/files/Qemu%20Appliances/", + "direct_download_url": "https://sourceforge.net/projects/gns-3/files/Qemu%20Appliances/kali-linux-persistence-1gb.qcow2/download" + } + ], + "versions": [ + { + "name": "2021.1", + "images": { + "hda_disk_image": "kali-linux-persistence-1gb.qcow2", + "cdrom_image": "kali-linux-2021.1-live-amd64.iso" + } + }, + { + "name": "2019.3", + "images": { + "hda_disk_image": "kali-linux-persistence-1gb.qcow2", + "cdrom_image": "kali-linux-2019.3-amd64.iso" + } + }, + { + "name": "2019.2", + "images": { + "hda_disk_image": "kali-linux-persistence-1gb.qcow2", + "cdrom_image": "kali-linux-2019.2-amd64.iso" + } + }, + { + "name": "2019.2 (MATE)", + "images": { + "hda_disk_image": "kali-linux-persistence-1gb.qcow2", + "cdrom_image": "kali-linux-mate-2019.2-amd64.iso" + } + }, + { + "name": "2019.1a", + "images": { + "hda_disk_image": "kali-linux-persistence-1gb.qcow2", + "cdrom_image": "kali-linux-2019.1a-amd64.iso" + } + }, + { + "name": "2018.4", + "images": { + "hda_disk_image": "kali-linux-persistence-1gb.qcow2", + "cdrom_image": "kali-linux-2018.4-amd64.iso" + } + }, + { + "name": "2018.3a", + "images": { + "hda_disk_image": "kali-linux-persistence-1gb.qcow2", + "cdrom_image": "kali-linux-2018.3a-amd64.iso" + } + }, + { + "name": "2018.1", + "images": { + "hda_disk_image": "kali-linux-persistence-1gb.qcow2", + "cdrom_image": "kali-linux-2018.1-amd64.iso" + } + }, + { + "name": "2017.3", + "images": { + "hda_disk_image": "kali-linux-persistence-1gb.qcow2", + "cdrom_image": "kali-linux-2017.3-amd64.iso" + } + }, + { + "name": "2017.2", + "images": { + "hda_disk_image": "kali-linux-persistence-1gb.qcow2", + "cdrom_image": "kali-linux-2017.2-amd64.iso" + } + }, + { + "name": "2017.1", + "images": { + "hda_disk_image": "kali-linux-persistence-1gb.qcow2", + "cdrom_image": "kali-linux-2017.1-amd64.iso" + } + }, + { + "name": "2016.2", + "images": { + "hda_disk_image": "kali-linux-persistence-1gb.qcow2", + "cdrom_image": "kali-linux-2016.2-amd64.iso" + } + }, + { + "name": "2016.1", + "images": { + "hda_disk_image": "kali-linux-persistence-1gb.qcow2", + "cdrom_image": "kali-linux-2016.1-amd64.iso" + } + }, + { + "name": "2.0", + "images": { + "hda_disk_image": "kali-linux-persistence-1gb.qcow2", + "cdrom_image": "kali-linux-2.0-amd64.iso" + } + } + ] +} diff --git a/32_gns3/first_example/first_example.gns3 b/32_gns3/first_example/first_example.gns3 index 2e844d2..7d85134 100644 --- a/32_gns3/first_example/first_example.gns3 +++ b/32_gns3/first_example/first_example.gns3 @@ -81,6 +81,102 @@ } ], "suspend": false + }, + { + "filters": {}, + "link_id": "66b2940f-b96c-414f-badf-32d1165aed60", + "link_style": {}, + "nodes": [ + { + "adapter_number": 0, + "label": { + "rotation": 0, + "style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;", + "text": "e3", + "x": 13, + "y": 49 + }, + "node_id": "84884989-3394-4cf6-aad1-75264b360fb6", + "port_number": 3 + }, + { + "adapter_number": 0, + "label": { + "rotation": 0, + "style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;", + "text": "eth0", + "x": 54, + "y": -4 + }, + "node_id": "6d209734-79bf-4514-861a-5530e778f2dd", + "port_number": 0 + } + ], + "suspend": false + }, + { + "filters": {}, + "link_id": "af536a16-eaf3-48a2-842a-d746ec68fdea", + "link_style": {}, + "nodes": [ + { + "adapter_number": 0, + "label": { + "rotation": 0, + "style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;", + "text": "e2", + "x": 52, + "y": 52 + }, + "node_id": "84884989-3394-4cf6-aad1-75264b360fb6", + "port_number": 2 + }, + { + "adapter_number": 0, + "label": { + "rotation": 0, + "style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;", + "text": "eth0", + "x": 15, + "y": -6 + }, + "node_id": "8e5e273f-48ad-414e-9cc8-b31d3cc6079e", + "port_number": 0 + } + ], + "suspend": false + }, + { + "filters": {}, + "link_id": "7bd6f744-fd91-4618-a6ac-e4bce0970a7d", + "link_style": {}, + "nodes": [ + { + "adapter_number": 0, + "label": { + "rotation": 0, + "style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;", + "text": "e4", + "x": 68, + "y": 37 + }, + "node_id": "84884989-3394-4cf6-aad1-75264b360fb6", + "port_number": 4 + }, + { + "adapter_number": 0, + "label": { + "rotation": 0, + "style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;", + "text": "eth0", + "x": 0, + "y": 7 + }, + "node_id": "a338b780-722f-4965-a13c-e50a5c1b7f5c", + "port_number": 0 + } + ], + "suspend": false } ], "nodes": [ @@ -160,8 +256,8 @@ "symbol": ":/symbols/ethernet_switch.svg", "template_id": "1966b864-93e7-32d5-965f-001384eec461", "width": 72, - "x": 31, - "y": -25, + "x": 34, + "y": -51, "z": 1 }, { @@ -189,8 +285,8 @@ "symbol": ":/symbols/vpcs_guest.svg", "template_id": "19021f99-e36f-394d-b4a1-8aaa902ab9cc", "width": 65, - "x": -147, - "y": -101, + "x": -228, + "y": -109, "z": 1 }, { @@ -218,8 +314,134 @@ "symbol": ":/symbols/vpcs_guest.svg", "template_id": "19021f99-e36f-394d-b4a1-8aaa902ab9cc", "width": 65, - "x": -151, - "y": 21, + "x": -225, + "y": 12, + "z": 1 + }, + { + "compute_id": "vm", + "console": 5007, + "console_auto_start": false, + "console_type": "telnet", + "custom_adapters": [], + "first_port_name": null, + "height": 59, + "label": { + "rotation": 0, + "style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;", + "text": "ubuntu-1", + "x": -4, + "y": -25 + }, + "locked": false, + "name": "ubuntu-1", + "node_id": "6d209734-79bf-4514-861a-5530e778f2dd", + "node_type": "docker", + "port_name_format": "Ethernet{0}", + "port_segment_size": 0, + "properties": { + "adapters": 1, + "aux": 5008, + "console_http_path": "/", + "console_http_port": 80, + "console_resolution": "1024x768", + "container_id": "b632c70f18f6ee1ba0e97af90a05ce9b8a73a80e34b95c2431c92d759e48ecf6", + "environment": null, + "extra_hosts": null, + "extra_volumes": [], + "image": "ubuntu:22.04", + "start_command": "/bin/bash", + "usage": "" + }, + "symbol": ":/symbols/docker_guest.svg", + "template_id": "330bd6f6-463d-433e-88c8-540973456f51", + "width": 65, + "x": -227, + "y": 120, + "z": 1 + }, + { + "compute_id": "vm", + "console": 5005, + "console_auto_start": false, + "console_type": "telnet", + "custom_adapters": [], + "first_port_name": null, + "height": 59, + "label": { + "rotation": 0, + "style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;", + "text": "kalilinux-kali-last-release-1", + "x": -71, + "y": -25 + }, + "locked": false, + "name": "kalilinux-kali-last-release-1", + "node_id": "8e5e273f-48ad-414e-9cc8-b31d3cc6079e", + "node_type": "docker", + "port_name_format": "Ethernet{0}", + "port_segment_size": 0, + "properties": { + "adapters": 1, + "aux": 5006, + "console_http_path": "/", + "console_http_port": 80, + "console_resolution": "1024x768", + "container_id": "07a1ff8447f1af15a42ba3bfcb6e8bda4541ec17226fff0c4e4d730d1f3653c3", + "environment": null, + "extra_hosts": null, + "extra_volumes": [], + "image": "kalilinux/kali-last-release:latest", + "start_command": "/usr/bin/bash -c \"sleep infinity\"", + "usage": "" + }, + "symbol": ":/symbols/docker_guest.svg", + "template_id": "07d14a79-a75c-4332-8928-f82d1ac8213e", + "width": 65, + "x": 13, + "y": 102, + "z": 1 + }, + { + "compute_id": "vm", + "console": 5009, + "console_auto_start": false, + "console_type": "telnet", + "custom_adapters": [], + "first_port_name": null, + "height": 59, + "label": { + "rotation": 0, + "style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;", + "text": "someguy123-net-tools-1", + "x": -60, + "y": -25 + }, + "locked": false, + "name": "someguy123-net-tools-1", + "node_id": "a338b780-722f-4965-a13c-e50a5c1b7f5c", + "node_type": "docker", + "port_name_format": "Ethernet{0}", + "port_segment_size": 0, + "properties": { + "adapters": 1, + "aux": 5010, + "console_http_path": "/", + "console_http_port": 80, + "console_resolution": "1024x768", + "container_id": "6c70ea849f6d543da45715cdaf35e02388ed36edbfc76f5d1f1edb628e780d6e", + "environment": "", + "extra_hosts": "", + "extra_volumes": [], + "image": "someguy123/net-tools:latest", + "start_command": "/bin/bash -c \"sleep 100000\"", + "usage": "" + }, + "symbol": ":/symbols/docker_guest.svg", + "template_id": "c7f3238f-6358-4b0a-931c-dccd80dc2055", + "width": 65, + "x": 155, + "y": 13, "z": 1 } ] From 0b8d572488ff79aec0fd7ecbe92c932c92404780 Mon Sep 17 00:00:00 2001 From: Chris Guest Date: Sat, 3 Sep 2022 23:00:34 +0100 Subject: [PATCH 5/6] Split simple and docker examples --- 32_gns3/first_example/docker_example.gns3 | 453 ++++++++++++++++++++++ 32_gns3/first_example/first_example.gns3 | 234 +---------- 2 files changed, 459 insertions(+), 228 deletions(-) create mode 100644 32_gns3/first_example/docker_example.gns3 diff --git a/32_gns3/first_example/docker_example.gns3 b/32_gns3/first_example/docker_example.gns3 new file mode 100644 index 0000000..7d85134 --- /dev/null +++ b/32_gns3/first_example/docker_example.gns3 @@ -0,0 +1,453 @@ +{ + "auto_close": true, + "auto_open": false, + "auto_start": false, + "drawing_grid_size": 25, + "grid_size": 75, + "name": "first_example", + "project_id": "ef74f897-e5a2-4bbe-a7c5-c9a0ba51c30b", + "revision": 9, + "scene_height": 1000, + "scene_width": 2000, + "show_grid": false, + "show_interface_labels": false, + "show_layers": false, + "snap_to_grid": false, + "supplier": null, + "topology": { + "computes": [], + "drawings": [], + "links": [ + { + "filters": {}, + "link_id": "d3b0e0a6-22fc-46e8-8524-cdbbfcde1b34", + "link_style": {}, + "nodes": [ + { + "adapter_number": 0, + "label": { + "rotation": 0, + "style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;", + "text": "e0", + "x": 0, + "y": -4 + }, + "node_id": "84884989-3394-4cf6-aad1-75264b360fb6", + "port_number": 0 + }, + { + "adapter_number": 0, + "label": { + "rotation": 0, + "style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;", + "text": "e0", + "x": 67, + "y": 49 + }, + "node_id": "8a765fd4-a909-4c53-8d89-7b1b031fd31f", + "port_number": 0 + } + ], + "suspend": false + }, + { + "filters": {}, + "link_id": "cb083c84-0704-48d6-b534-00efdb5ac42a", + "link_style": {}, + "nodes": [ + { + "adapter_number": 0, + "label": { + "rotation": 0, + "style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;", + "text": "e1", + "x": 34, + "y": 55 + }, + "node_id": "84884989-3394-4cf6-aad1-75264b360fb6", + "port_number": 1 + }, + { + "adapter_number": 0, + "label": { + "rotation": 0, + "style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;", + "text": "e0", + "x": 33, + "y": -10 + }, + "node_id": "0648872a-973d-41ea-aecc-1cdfafec4bc2", + "port_number": 0 + } + ], + "suspend": false + }, + { + "filters": {}, + "link_id": "66b2940f-b96c-414f-badf-32d1165aed60", + "link_style": {}, + "nodes": [ + { + "adapter_number": 0, + "label": { + "rotation": 0, + "style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;", + "text": "e3", + "x": 13, + "y": 49 + }, + "node_id": "84884989-3394-4cf6-aad1-75264b360fb6", + "port_number": 3 + }, + { + "adapter_number": 0, + "label": { + "rotation": 0, + "style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;", + "text": "eth0", + "x": 54, + "y": -4 + }, + "node_id": "6d209734-79bf-4514-861a-5530e778f2dd", + "port_number": 0 + } + ], + "suspend": false + }, + { + "filters": {}, + "link_id": "af536a16-eaf3-48a2-842a-d746ec68fdea", + "link_style": {}, + "nodes": [ + { + "adapter_number": 0, + "label": { + "rotation": 0, + "style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;", + "text": "e2", + "x": 52, + "y": 52 + }, + "node_id": "84884989-3394-4cf6-aad1-75264b360fb6", + "port_number": 2 + }, + { + "adapter_number": 0, + "label": { + "rotation": 0, + "style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;", + "text": "eth0", + "x": 15, + "y": -6 + }, + "node_id": "8e5e273f-48ad-414e-9cc8-b31d3cc6079e", + "port_number": 0 + } + ], + "suspend": false + }, + { + "filters": {}, + "link_id": "7bd6f744-fd91-4618-a6ac-e4bce0970a7d", + "link_style": {}, + "nodes": [ + { + "adapter_number": 0, + "label": { + "rotation": 0, + "style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;", + "text": "e4", + "x": 68, + "y": 37 + }, + "node_id": "84884989-3394-4cf6-aad1-75264b360fb6", + "port_number": 4 + }, + { + "adapter_number": 0, + "label": { + "rotation": 0, + "style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;", + "text": "eth0", + "x": 0, + "y": 7 + }, + "node_id": "a338b780-722f-4965-a13c-e50a5c1b7f5c", + "port_number": 0 + } + ], + "suspend": false + } + ], + "nodes": [ + { + "compute_id": "vm", + "console": 5000, + "console_auto_start": false, + "console_type": "none", + "custom_adapters": [], + "first_port_name": null, + "height": 32, + "label": { + "rotation": 0, + "style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;", + "text": "Switch1", + "x": 11, + "y": -25 + }, + "locked": false, + "name": "Switch1", + "node_id": "84884989-3394-4cf6-aad1-75264b360fb6", + "node_type": "ethernet_switch", + "port_name_format": "Ethernet{0}", + "port_segment_size": 0, + "properties": { + "ports_mapping": [ + { + "name": "Ethernet0", + "port_number": 0, + "type": "access", + "vlan": 1 + }, + { + "name": "Ethernet1", + "port_number": 1, + "type": "access", + "vlan": 1 + }, + { + "name": "Ethernet2", + "port_number": 2, + "type": "access", + "vlan": 1 + }, + { + "name": "Ethernet3", + "port_number": 3, + "type": "access", + "vlan": 1 + }, + { + "name": "Ethernet4", + "port_number": 4, + "type": "access", + "vlan": 1 + }, + { + "name": "Ethernet5", + "port_number": 5, + "type": "access", + "vlan": 1 + }, + { + "name": "Ethernet6", + "port_number": 6, + "type": "access", + "vlan": 1 + }, + { + "name": "Ethernet7", + "port_number": 7, + "type": "access", + "vlan": 1 + } + ] + }, + "symbol": ":/symbols/ethernet_switch.svg", + "template_id": "1966b864-93e7-32d5-965f-001384eec461", + "width": 72, + "x": 34, + "y": -51, + "z": 1 + }, + { + "compute_id": "vm", + "console": 5001, + "console_auto_start": false, + "console_type": "telnet", + "custom_adapters": [], + "first_port_name": null, + "height": 59, + "label": { + "rotation": 0, + "style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;", + "text": "PC1", + "x": 18, + "y": -25 + }, + "locked": false, + "name": "PC1", + "node_id": "8a765fd4-a909-4c53-8d89-7b1b031fd31f", + "node_type": "vpcs", + "port_name_format": "Ethernet{0}", + "port_segment_size": 0, + "properties": {}, + "symbol": ":/symbols/vpcs_guest.svg", + "template_id": "19021f99-e36f-394d-b4a1-8aaa902ab9cc", + "width": 65, + "x": -228, + "y": -109, + "z": 1 + }, + { + "compute_id": "vm", + "console": 5003, + "console_auto_start": false, + "console_type": "telnet", + "custom_adapters": [], + "first_port_name": null, + "height": 59, + "label": { + "rotation": 0, + "style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;", + "text": "PC2", + "x": 18, + "y": -25 + }, + "locked": false, + "name": "PC2", + "node_id": "0648872a-973d-41ea-aecc-1cdfafec4bc2", + "node_type": "vpcs", + "port_name_format": "Ethernet{0}", + "port_segment_size": 0, + "properties": {}, + "symbol": ":/symbols/vpcs_guest.svg", + "template_id": "19021f99-e36f-394d-b4a1-8aaa902ab9cc", + "width": 65, + "x": -225, + "y": 12, + "z": 1 + }, + { + "compute_id": "vm", + "console": 5007, + "console_auto_start": false, + "console_type": "telnet", + "custom_adapters": [], + "first_port_name": null, + "height": 59, + "label": { + "rotation": 0, + "style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;", + "text": "ubuntu-1", + "x": -4, + "y": -25 + }, + "locked": false, + "name": "ubuntu-1", + "node_id": "6d209734-79bf-4514-861a-5530e778f2dd", + "node_type": "docker", + "port_name_format": "Ethernet{0}", + "port_segment_size": 0, + "properties": { + "adapters": 1, + "aux": 5008, + "console_http_path": "/", + "console_http_port": 80, + "console_resolution": "1024x768", + "container_id": "b632c70f18f6ee1ba0e97af90a05ce9b8a73a80e34b95c2431c92d759e48ecf6", + "environment": null, + "extra_hosts": null, + "extra_volumes": [], + "image": "ubuntu:22.04", + "start_command": "/bin/bash", + "usage": "" + }, + "symbol": ":/symbols/docker_guest.svg", + "template_id": "330bd6f6-463d-433e-88c8-540973456f51", + "width": 65, + "x": -227, + "y": 120, + "z": 1 + }, + { + "compute_id": "vm", + "console": 5005, + "console_auto_start": false, + "console_type": "telnet", + "custom_adapters": [], + "first_port_name": null, + "height": 59, + "label": { + "rotation": 0, + "style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;", + "text": "kalilinux-kali-last-release-1", + "x": -71, + "y": -25 + }, + "locked": false, + "name": "kalilinux-kali-last-release-1", + "node_id": "8e5e273f-48ad-414e-9cc8-b31d3cc6079e", + "node_type": "docker", + "port_name_format": "Ethernet{0}", + "port_segment_size": 0, + "properties": { + "adapters": 1, + "aux": 5006, + "console_http_path": "/", + "console_http_port": 80, + "console_resolution": "1024x768", + "container_id": "07a1ff8447f1af15a42ba3bfcb6e8bda4541ec17226fff0c4e4d730d1f3653c3", + "environment": null, + "extra_hosts": null, + "extra_volumes": [], + "image": "kalilinux/kali-last-release:latest", + "start_command": "/usr/bin/bash -c \"sleep infinity\"", + "usage": "" + }, + "symbol": ":/symbols/docker_guest.svg", + "template_id": "07d14a79-a75c-4332-8928-f82d1ac8213e", + "width": 65, + "x": 13, + "y": 102, + "z": 1 + }, + { + "compute_id": "vm", + "console": 5009, + "console_auto_start": false, + "console_type": "telnet", + "custom_adapters": [], + "first_port_name": null, + "height": 59, + "label": { + "rotation": 0, + "style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;", + "text": "someguy123-net-tools-1", + "x": -60, + "y": -25 + }, + "locked": false, + "name": "someguy123-net-tools-1", + "node_id": "a338b780-722f-4965-a13c-e50a5c1b7f5c", + "node_type": "docker", + "port_name_format": "Ethernet{0}", + "port_segment_size": 0, + "properties": { + "adapters": 1, + "aux": 5010, + "console_http_path": "/", + "console_http_port": 80, + "console_resolution": "1024x768", + "container_id": "6c70ea849f6d543da45715cdaf35e02388ed36edbfc76f5d1f1edb628e780d6e", + "environment": "", + "extra_hosts": "", + "extra_volumes": [], + "image": "someguy123/net-tools:latest", + "start_command": "/bin/bash -c \"sleep 100000\"", + "usage": "" + }, + "symbol": ":/symbols/docker_guest.svg", + "template_id": "c7f3238f-6358-4b0a-931c-dccd80dc2055", + "width": 65, + "x": 155, + "y": 13, + "z": 1 + } + ] + }, + "type": "topology", + "variables": null, + "version": "2.2.34", + "zoom": 100 +} \ No newline at end of file diff --git a/32_gns3/first_example/first_example.gns3 b/32_gns3/first_example/first_example.gns3 index 7d85134..2e844d2 100644 --- a/32_gns3/first_example/first_example.gns3 +++ b/32_gns3/first_example/first_example.gns3 @@ -81,102 +81,6 @@ } ], "suspend": false - }, - { - "filters": {}, - "link_id": "66b2940f-b96c-414f-badf-32d1165aed60", - "link_style": {}, - "nodes": [ - { - "adapter_number": 0, - "label": { - "rotation": 0, - "style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;", - "text": "e3", - "x": 13, - "y": 49 - }, - "node_id": "84884989-3394-4cf6-aad1-75264b360fb6", - "port_number": 3 - }, - { - "adapter_number": 0, - "label": { - "rotation": 0, - "style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;", - "text": "eth0", - "x": 54, - "y": -4 - }, - "node_id": "6d209734-79bf-4514-861a-5530e778f2dd", - "port_number": 0 - } - ], - "suspend": false - }, - { - "filters": {}, - "link_id": "af536a16-eaf3-48a2-842a-d746ec68fdea", - "link_style": {}, - "nodes": [ - { - "adapter_number": 0, - "label": { - "rotation": 0, - "style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;", - "text": "e2", - "x": 52, - "y": 52 - }, - "node_id": "84884989-3394-4cf6-aad1-75264b360fb6", - "port_number": 2 - }, - { - "adapter_number": 0, - "label": { - "rotation": 0, - "style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;", - "text": "eth0", - "x": 15, - "y": -6 - }, - "node_id": "8e5e273f-48ad-414e-9cc8-b31d3cc6079e", - "port_number": 0 - } - ], - "suspend": false - }, - { - "filters": {}, - "link_id": "7bd6f744-fd91-4618-a6ac-e4bce0970a7d", - "link_style": {}, - "nodes": [ - { - "adapter_number": 0, - "label": { - "rotation": 0, - "style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;", - "text": "e4", - "x": 68, - "y": 37 - }, - "node_id": "84884989-3394-4cf6-aad1-75264b360fb6", - "port_number": 4 - }, - { - "adapter_number": 0, - "label": { - "rotation": 0, - "style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;", - "text": "eth0", - "x": 0, - "y": 7 - }, - "node_id": "a338b780-722f-4965-a13c-e50a5c1b7f5c", - "port_number": 0 - } - ], - "suspend": false } ], "nodes": [ @@ -256,8 +160,8 @@ "symbol": ":/symbols/ethernet_switch.svg", "template_id": "1966b864-93e7-32d5-965f-001384eec461", "width": 72, - "x": 34, - "y": -51, + "x": 31, + "y": -25, "z": 1 }, { @@ -285,8 +189,8 @@ "symbol": ":/symbols/vpcs_guest.svg", "template_id": "19021f99-e36f-394d-b4a1-8aaa902ab9cc", "width": 65, - "x": -228, - "y": -109, + "x": -147, + "y": -101, "z": 1 }, { @@ -314,134 +218,8 @@ "symbol": ":/symbols/vpcs_guest.svg", "template_id": "19021f99-e36f-394d-b4a1-8aaa902ab9cc", "width": 65, - "x": -225, - "y": 12, - "z": 1 - }, - { - "compute_id": "vm", - "console": 5007, - "console_auto_start": false, - "console_type": "telnet", - "custom_adapters": [], - "first_port_name": null, - "height": 59, - "label": { - "rotation": 0, - "style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;", - "text": "ubuntu-1", - "x": -4, - "y": -25 - }, - "locked": false, - "name": "ubuntu-1", - "node_id": "6d209734-79bf-4514-861a-5530e778f2dd", - "node_type": "docker", - "port_name_format": "Ethernet{0}", - "port_segment_size": 0, - "properties": { - "adapters": 1, - "aux": 5008, - "console_http_path": "/", - "console_http_port": 80, - "console_resolution": "1024x768", - "container_id": "b632c70f18f6ee1ba0e97af90a05ce9b8a73a80e34b95c2431c92d759e48ecf6", - "environment": null, - "extra_hosts": null, - "extra_volumes": [], - "image": "ubuntu:22.04", - "start_command": "/bin/bash", - "usage": "" - }, - "symbol": ":/symbols/docker_guest.svg", - "template_id": "330bd6f6-463d-433e-88c8-540973456f51", - "width": 65, - "x": -227, - "y": 120, - "z": 1 - }, - { - "compute_id": "vm", - "console": 5005, - "console_auto_start": false, - "console_type": "telnet", - "custom_adapters": [], - "first_port_name": null, - "height": 59, - "label": { - "rotation": 0, - "style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;", - "text": "kalilinux-kali-last-release-1", - "x": -71, - "y": -25 - }, - "locked": false, - "name": "kalilinux-kali-last-release-1", - "node_id": "8e5e273f-48ad-414e-9cc8-b31d3cc6079e", - "node_type": "docker", - "port_name_format": "Ethernet{0}", - "port_segment_size": 0, - "properties": { - "adapters": 1, - "aux": 5006, - "console_http_path": "/", - "console_http_port": 80, - "console_resolution": "1024x768", - "container_id": "07a1ff8447f1af15a42ba3bfcb6e8bda4541ec17226fff0c4e4d730d1f3653c3", - "environment": null, - "extra_hosts": null, - "extra_volumes": [], - "image": "kalilinux/kali-last-release:latest", - "start_command": "/usr/bin/bash -c \"sleep infinity\"", - "usage": "" - }, - "symbol": ":/symbols/docker_guest.svg", - "template_id": "07d14a79-a75c-4332-8928-f82d1ac8213e", - "width": 65, - "x": 13, - "y": 102, - "z": 1 - }, - { - "compute_id": "vm", - "console": 5009, - "console_auto_start": false, - "console_type": "telnet", - "custom_adapters": [], - "first_port_name": null, - "height": 59, - "label": { - "rotation": 0, - "style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;", - "text": "someguy123-net-tools-1", - "x": -60, - "y": -25 - }, - "locked": false, - "name": "someguy123-net-tools-1", - "node_id": "a338b780-722f-4965-a13c-e50a5c1b7f5c", - "node_type": "docker", - "port_name_format": "Ethernet{0}", - "port_segment_size": 0, - "properties": { - "adapters": 1, - "aux": 5010, - "console_http_path": "/", - "console_http_port": 80, - "console_resolution": "1024x768", - "container_id": "6c70ea849f6d543da45715cdaf35e02388ed36edbfc76f5d1f1edb628e780d6e", - "environment": "", - "extra_hosts": "", - "extra_volumes": [], - "image": "someguy123/net-tools:latest", - "start_command": "/bin/bash -c \"sleep 100000\"", - "usage": "" - }, - "symbol": ":/symbols/docker_guest.svg", - "template_id": "c7f3238f-6358-4b0a-931c-dccd80dc2055", - "width": 65, - "x": 155, - "y": 13, + "x": -151, + "y": 21, "z": 1 } ] From f1c8d88d228997c800db96af7e06b7ac4c785dd5 Mon Sep 17 00:00:00 2001 From: Chris Guest Date: Sat, 3 Sep 2022 23:10:14 +0100 Subject: [PATCH 6/6] Docker changes after import --- .../{first_example => docker_example}/docker_example.gns3 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) rename 32_gns3/{first_example => docker_example}/docker_example.gns3 (98%) diff --git a/32_gns3/first_example/docker_example.gns3 b/32_gns3/docker_example/docker_example.gns3 similarity index 98% rename from 32_gns3/first_example/docker_example.gns3 rename to 32_gns3/docker_example/docker_example.gns3 index 7d85134..04f08e5 100644 --- a/32_gns3/first_example/docker_example.gns3 +++ b/32_gns3/docker_example/docker_example.gns3 @@ -4,7 +4,7 @@ "auto_start": false, "drawing_grid_size": 25, "grid_size": 75, - "name": "first_example", + "name": "docker_example", "project_id": "ef74f897-e5a2-4bbe-a7c5-c9a0ba51c30b", "revision": 9, "scene_height": 1000, @@ -345,7 +345,7 @@ "console_http_path": "/", "console_http_port": 80, "console_resolution": "1024x768", - "container_id": "b632c70f18f6ee1ba0e97af90a05ce9b8a73a80e34b95c2431c92d759e48ecf6", + "container_id": "faac067c5fe5a048f03249b3beabf9d4909d6ba147b1fd0eb41a54eb604327de", "environment": null, "extra_hosts": null, "extra_volumes": [], @@ -387,7 +387,7 @@ "console_http_path": "/", "console_http_port": 80, "console_resolution": "1024x768", - "container_id": "07a1ff8447f1af15a42ba3bfcb6e8bda4541ec17226fff0c4e4d730d1f3653c3", + "container_id": "e539b7cd1248d7bddcdc2c2cfbc7eba842e73d4c4a360befbda994d4e4320def", "environment": null, "extra_hosts": null, "extra_volumes": [], @@ -429,7 +429,7 @@ "console_http_path": "/", "console_http_port": 80, "console_resolution": "1024x768", - "container_id": "6c70ea849f6d543da45715cdaf35e02388ed36edbfc76f5d1f1edb628e780d6e", + "container_id": "0cdf4afd5c79b0fff1e23f06336f7210f6cb5a19ad3e310170b4a13a9ae15fe5", "environment": "", "extra_hosts": "", "extra_volumes": [],