diff options
[CN/lab05] Solved both exercises from lab 5
10 files changed, 183 insertions, 0 deletions
diff --git a/Year 2/Computer Networks/Labs/lab05-1/project-files/docker/51419034-a0ec-46f5-ae09-ab1cf7b1faed/etc/network/.gns3_perms b/Year 2/Computer Networks/Labs/lab05-1/project-files/docker/51419034-a0ec-46f5-ae09-ab1cf7b1faed/etc/network/.gns3_perms new file mode 100644 index 0000000..3792393 --- /dev/null +++ b/Year 2/Computer Networks/Labs/lab05-1/project-files/docker/51419034-a0ec-46f5-ae09-ab1cf7b1faed/etc/network/.gns3_perms @@ -0,0 +1,8 @@ +755:1000:1000:/etc/network/interfaces.d +644:1000:1000:/etc/network/interfaces +755:1000:1000:/etc/network/if-down.d +755:1000:1000:/etc/network/if-post-down.d +755:1000:1000:/etc/network/if-pre-up.d +644:1000:1000:/etc/network/.gns3_perms +755:1000:1000:/etc/network/if-up.d +755:1000:1000:/etc/network diff --git a/Year 2/Computer Networks/Labs/lab05-1/project-files/docker/51419034-a0ec-46f5-ae09-ab1cf7b1faed/etc/network/interfaces b/Year 2/Computer Networks/Labs/lab05-1/project-files/docker/51419034-a0ec-46f5-ae09-ab1cf7b1faed/etc/network/interfaces new file mode 100644 index 0000000..b61a8dc --- /dev/null +++ b/Year 2/Computer Networks/Labs/lab05-1/project-files/docker/51419034-a0ec-46f5-ae09-ab1cf7b1faed/etc/network/interfaces @@ -0,0 +1,19 @@ +# +# This is a sample network config, please uncomment lines to configure the network +# + +# Uncomment this line to load custom interface files +# source /etc/network/interfaces.d/* + +# Static config for eth0 +#auto eth0 +#iface eth0 inet static +# address 192.168.0.2 +# netmask 255.255.255.0 +# gateway 192.168.0.1 +# up echo nameserver 192.168.0.1 > /etc/resolv.conf + +# DHCP config for eth0 +auto eth0 +iface eth0 inet dhcp +# hostname webterm-1 diff --git a/Year 2/Computer Networks/Labs/lab05-1/project-files/docker/51419034-a0ec-46f5-ae09-ab1cf7b1faed/root/.bashrc b/Year 2/Computer Networks/Labs/lab05-1/project-files/docker/51419034-a0ec-46f5-ae09-ab1cf7b1faed/root/.bashrc new file mode 100644 index 0000000..5d3a56e --- /dev/null +++ b/Year 2/Computer Networks/Labs/lab05-1/project-files/docker/51419034-a0ec-46f5-ae09-ab1cf7b1faed/root/.bashrc @@ -0,0 +1,18 @@ +# ~/.bashrc: executed by bash(1) for non-login shells. + +# Note: PS1 and umask are already set in /etc/profile. You should not +# need this unless you want different defaults for root. +# PS1='${debian_chroot:+($debian_chroot)}\h:\w\$ ' +# umask 022 + +# You may uncomment the following lines if you want `ls' to be colorized: +# export LS_OPTIONS='--color=auto' +# eval "`dircolors`" +# alias ls='ls $LS_OPTIONS' +# alias ll='ls $LS_OPTIONS -l' +# alias l='ls $LS_OPTIONS -lA' +# +# Some more alias to avoid making mistakes: +# alias rm='rm -i' +# alias cp='cp -i' +# alias mv='mv -i' diff --git a/Year 2/Computer Networks/Labs/lab05-1/project-files/docker/51419034-a0ec-46f5-ae09-ab1cf7b1faed/root/.config/lxterminal/lxterminal.conf b/Year 2/Computer Networks/Labs/lab05-1/project-files/docker/51419034-a0ec-46f5-ae09-ab1cf7b1faed/root/.config/lxterminal/lxterminal.conf new file mode 100644 index 0000000..8695883 --- /dev/null +++ b/Year 2/Computer Networks/Labs/lab05-1/project-files/docker/51419034-a0ec-46f5-ae09-ab1cf7b1faed/root/.config/lxterminal/lxterminal.conf @@ -0,0 +1,3 @@ +[general] +scrollback=1000 +fgcolor=#ffffff diff --git a/Year 2/Computer Networks/Labs/lab05-1/project-files/docker/51419034-a0ec-46f5-ae09-ab1cf7b1faed/root/.gns3_perms b/Year 2/Computer Networks/Labs/lab05-1/project-files/docker/51419034-a0ec-46f5-ae09-ab1cf7b1faed/root/.gns3_perms new file mode 100644 index 0000000..f73b4b3 --- /dev/null +++ b/Year 2/Computer Networks/Labs/lab05-1/project-files/docker/51419034-a0ec-46f5-ae09-ab1cf7b1faed/root/.gns3_perms @@ -0,0 +1,122 @@ +644:0:0:/root/.config/lxterminal/lxterminal.conf +755:0:0:/root/.config/lxterminal +755:0:0:/root/.config +644:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/permissions.sqlite +600:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/search.json.mozlz4 +600:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/bookmarkbackups/bookmarks-2023-06-04_11_aA-xQOfRq56-Wt8UDG3QQw==.jsonlz4 +700:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/bookmarkbackups +777:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/lock +644:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/cookies.sqlite +600:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/compatibility.ini +600:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/key4.db +600:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/times.json +644:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/.parentlock +600:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/sessionstore-backups/recovery.baklz4 +600:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/sessionstore-backups/recovery.jsonlz4 +700:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/sessionstore-backups +644:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/content-prefs.sqlite +644:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/storage.sqlite +600:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/addons.json +600:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/datareporting/aborted-session-ping +600:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/datareporting/state.json +600:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/datareporting/archived/2023-06/1685859252817.2af0dec8-7d56-4b7d-a72d-f2a726d0791a.modules.jsonlz4 +700:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/datareporting/archived/2023-06 +700:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/datareporting/archived +600:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/datareporting/session-state.json +700:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/datareporting +600:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/prefs.js +600:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/handlers.json +644:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/cookies.sqlite-wal +700:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/minidumps +600:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/pkcs11.txt +600:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/extension-preferences.json +700:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/crashes/events +600:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/crashes/store.json.mozlz4 +700:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/crashes +600:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/xulstore.json +644:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/webappsstore.sqlite +600:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/containers.json +644:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/webappsstore.sqlite-wal +644:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/formhistory.sqlite +644:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/favicons.sqlite-wal +600:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/addonStartup.json.lz4 +600:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/sessionCheckpoints.json +644:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/storage/permanent/chrome/.metadata-v2 +644:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/storage/permanent/chrome/idb/1657114595AmcateirvtiSty.sqlite +755:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/storage/permanent/chrome/idb/3870112724rsegmnoittet-es.files +755:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/storage/permanent/chrome/idb/1657114595AmcateirvtiSty.files +644:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/storage/permanent/chrome/idb/3870112724rsegmnoittet-es.sqlite +755:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/storage/permanent/chrome/idb/1451318868ntouromlalnodry--epcr.files +644:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/storage/permanent/chrome/idb/1451318868ntouromlalnodry--epcr.sqlite +644:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/storage/permanent/chrome/idb/3561288849sdhlie.sqlite +755:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/storage/permanent/chrome/idb/3561288849sdhlie.files +755:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/storage/permanent/chrome/idb +755:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/storage/permanent/chrome +755:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/storage/permanent +755:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/storage +644:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/places.sqlite +600:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/cert9.db +644:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/places.sqlite-wal +700:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/extensions +600:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/broadcast-listeners.json +600:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/extensions.json +644:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr/favicons.sqlite +700:0:0:/root/.mozilla/firefox/qfjis2ok.default-esr +700:0:0:/root/.mozilla/firefox/Pending Pings +700:0:0:/root/.mozilla/firefox/Crash Reports/events +600:0:0:/root/.mozilla/firefox/Crash Reports/InstallTime20200429190206 +700:0:0:/root/.mozilla/firefox/Crash Reports +700:0:0:/root/.mozilla/firefox/zwiky7xq.default/times.json +700:0:0:/root/.mozilla/firefox/zwiky7xq.default +644:0:0:/root/.mozilla/firefox/profiles.ini +644:0:0:/root/.mozilla/firefox/installs.ini +700:0:0:/root/.mozilla/firefox +700:0:0:/root/.mozilla/systemextensionsdev +700:0:0:/root/.mozilla/extensions +700:0:0:/root/.mozilla +644:0:0:/root/.bashrc +644:0:0:/root/.gns3_perms +755:0:0:/root/.cache/.lxterminal-socket-:101 +600:0:0:/root/.cache/dconf/user +700:0:0:/root/.cache/dconf +644:0:0:/root/.cache/mozilla/firefox/qfjis2ok.default-esr/safebrowsing/test-phish-simple.sbstore +644:0:0:/root/.cache/mozilla/firefox/qfjis2ok.default-esr/safebrowsing/test-malware-simple.pset +644:0:0:/root/.cache/mozilla/firefox/qfjis2ok.default-esr/safebrowsing/test-unwanted-simple.pset +644:0:0:/root/.cache/mozilla/firefox/qfjis2ok.default-esr/safebrowsing/test-harmful-simple.sbstore +644:0:0:/root/.cache/mozilla/firefox/qfjis2ok.default-esr/safebrowsing/test-trackwhite-simple.sbstore +644:0:0:/root/.cache/mozilla/firefox/qfjis2ok.default-esr/safebrowsing/test-unwanted-simple.sbstore +644:0:0:/root/.cache/mozilla/firefox/qfjis2ok.default-esr/safebrowsing/test-block-simple.sbstore +644:0:0:/root/.cache/mozilla/firefox/qfjis2ok.default-esr/safebrowsing/test-block-simple.pset +644:0:0:/root/.cache/mozilla/firefox/qfjis2ok.default-esr/safebrowsing/test-malware-simple.sbstore +644:0:0:/root/.cache/mozilla/firefox/qfjis2ok.default-esr/safebrowsing/test-track-simple.pset +644:0:0:/root/.cache/mozilla/firefox/qfjis2ok.default-esr/safebrowsing/test-trackwhite-simple.pset +755:0:0:/root/.cache/mozilla/firefox/qfjis2ok.default-esr/safebrowsing/google4 +644:0:0:/root/.cache/mozilla/firefox/qfjis2ok.default-esr/safebrowsing/test-phish-simple.pset +644:0:0:/root/.cache/mozilla/firefox/qfjis2ok.default-esr/safebrowsing/test-track-simple.sbstore +644:0:0:/root/.cache/mozilla/firefox/qfjis2ok.default-esr/safebrowsing/test-harmful-simple.pset +755:0:0:/root/.cache/mozilla/firefox/qfjis2ok.default-esr/safebrowsing +644:0:0:/root/.cache/mozilla/firefox/qfjis2ok.default-esr/OfflineCache/index.sqlite +700:0:0:/root/.cache/mozilla/firefox/qfjis2ok.default-esr/OfflineCache +644:0:0:/root/.cache/mozilla/firefox/qfjis2ok.default-esr/startupCache/urlCache-current.bin +644:0:0:/root/.cache/mozilla/firefox/qfjis2ok.default-esr/startupCache/scriptCache-child-current.bin +644:0:0:/root/.cache/mozilla/firefox/qfjis2ok.default-esr/startupCache/scriptCache-child.bin +600:0:0:/root/.cache/mozilla/firefox/qfjis2ok.default-esr/startupCache/webext.sc.lz4 +644:0:0:/root/.cache/mozilla/firefox/qfjis2ok.default-esr/startupCache/startupCache.8.little +644:0:0:/root/.cache/mozilla/firefox/qfjis2ok.default-esr/startupCache/urlCache.bin +644:0:0:/root/.cache/mozilla/firefox/qfjis2ok.default-esr/startupCache/scriptCache-current.bin +755:0:0:/root/.cache/mozilla/firefox/qfjis2ok.default-esr/startupCache +600:0:0:/root/.cache/mozilla/firefox/qfjis2ok.default-esr/cache2/doomed/2073665737 +600:0:0:/root/.cache/mozilla/firefox/qfjis2ok.default-esr/cache2/doomed/489570459 +700:0:0:/root/.cache/mozilla/firefox/qfjis2ok.default-esr/cache2/doomed +600:0:0:/root/.cache/mozilla/firefox/qfjis2ok.default-esr/cache2/entries/0EDDF8C091E2FED62E44BEDDDC1723F5BF38FE4F +600:0:0:/root/.cache/mozilla/firefox/qfjis2ok.default-esr/cache2/entries/CC272A84C437C06018182F241F266FFC52770F69 +700:0:0:/root/.cache/mozilla/firefox/qfjis2ok.default-esr/cache2/entries +700:0:0:/root/.cache/mozilla/firefox/qfjis2ok.default-esr/cache2 +700:0:0:/root/.cache/mozilla/firefox/qfjis2ok.default-esr/thumbnails +700:0:0:/root/.cache/mozilla/firefox/qfjis2ok.default-esr +700:0:0:/root/.cache/mozilla/firefox/zwiky7xq.default +700:0:0:/root/.cache/mozilla/firefox +700:0:0:/root/.cache/mozilla +700:0:0:/root/.cache +644:0:0:/root/.profile +700:0:0:/root diff --git a/Year 2/Computer Networks/Labs/lab05-1/project-files/docker/51419034-a0ec-46f5-ae09-ab1cf7b1faed/root/.profile b/Year 2/Computer Networks/Labs/lab05-1/project-files/docker/51419034-a0ec-46f5-ae09-ab1cf7b1faed/root/.profile new file mode 100644 index 0000000..517e612 --- /dev/null +++ b/Year 2/Computer Networks/Labs/lab05-1/project-files/docker/51419034-a0ec-46f5-ae09-ab1cf7b1faed/root/.profile @@ -0,0 +1,9 @@ +# ~/.profile: executed by Bourne-compatible login shells. + +if [ "$BASH" ]; then + if [ -f ~/.bashrc ]; then + . ~/.bashrc + fi +fi + +mesg n diff --git a/Year 2/Computer Networks/Labs/lab05-1/project-files/qemu/4808c680-f103-46ff-85a4-6b749b735389/hda_disk.qcow2 b/Year 2/Computer Networks/Labs/lab05-1/project-files/qemu/4808c680-f103-46ff-85a4-6b749b735389/hda_disk.qcow2 Binary files differnew file mode 100644 index 0000000..53e7dab --- /dev/null +++ b/Year 2/Computer Networks/Labs/lab05-1/project-files/qemu/4808c680-f103-46ff-85a4-6b749b735389/hda_disk.qcow2 diff --git a/Year 2/Computer Networks/Labs/lab05-1/project-files/qemu/83b04fae-0a88-4591-b517-fff214e8908f/hda_disk.qcow2 b/Year 2/Computer Networks/Labs/lab05-1/project-files/qemu/83b04fae-0a88-4591-b517-fff214e8908f/hda_disk.qcow2 Binary files differnew file mode 100644 index 0000000..158a8a0 --- /dev/null +++ b/Year 2/Computer Networks/Labs/lab05-1/project-files/qemu/83b04fae-0a88-4591-b517-fff214e8908f/hda_disk.qcow2 diff --git a/Year 2/Computer Networks/Labs/lab05-1/project-files/vpcs/72c89ca9-4d5d-4efb-a332-fb154365b0fd/startup.vpc b/Year 2/Computer Networks/Labs/lab05-1/project-files/vpcs/72c89ca9-4d5d-4efb-a332-fb154365b0fd/startup.vpc new file mode 100644 index 0000000..dc33935 --- /dev/null +++ b/Year 2/Computer Networks/Labs/lab05-1/project-files/vpcs/72c89ca9-4d5d-4efb-a332-fb154365b0fd/startup.vpc @@ -0,0 +1,2 @@ +set pcname PC2 +dhcp diff --git a/Year 2/Computer Networks/Labs/lab05-1/project-files/vpcs/b5e29c81-9e64-4d72-b9cc-0fe0f6411fca/startup.vpc b/Year 2/Computer Networks/Labs/lab05-1/project-files/vpcs/b5e29c81-9e64-4d72-b9cc-0fe0f6411fca/startup.vpc new file mode 100644 index 0000000..d033c61 --- /dev/null +++ b/Year 2/Computer Networks/Labs/lab05-1/project-files/vpcs/b5e29c81-9e64-4d72-b9cc-0fe0f6411fca/startup.vpc @@ -0,0 +1,2 @@ +set pcname PC1 +dhcp |
