Internal Network of Linux Machines on VirtualBox

Поделиться
HTML-код
  • Опубликовано: 26 авг 2024

Комментарии • 62

  • @vfarwaha
    @vfarwaha 3 года назад +5

    The best tutorial I have ever seen on the internet. Steven has a god gift....... "being a teacher". He explains with great dexterity. God bless u man ! Keep spreading the knowledge.

  • @vtak007
    @vtak007 Год назад

    Have watched many videos on virtualbox networking and this one was absolutely the clearest and most helpful

  • @2012mrmoh
    @2012mrmoh Год назад +1

    Dr Steven, with confidence I say you are the best in explaining information security. I am so grateful to you 🙏🙏

  • @mbigras
    @mbigras 6 лет назад +2

    I've been working on this configuration for the past couple days and just got everything wired up! I was able to see the ping requests and replies coming through the router with tcpdump. It was such a thrill, appreciate your help Steve!

  • @AndersJackson
    @AndersJackson 5 лет назад +8

    Good video, thanks.
    Some suggestions.
    You should really not use ifconfig(8), but ip(8) instead. One should use "ip address", "ip route" and "ip neigh" instead of ifconfig(8), route(8) and arp(8) which are all obsoleted.
    If you have static addresses on the machine, you should also change IPv4-address 127.0.1.1 to the proper IPv4 address in /etc/hosts. The 127.0.1.1 is just a hack if you are using a machine that changes networks, like a laptop.
    In /etc/network/interfaces, you should not use "broadcast" nor "network". That is because they are calculated by the Linux kernel, so if you don't set them, you can't set the to the wrong value. ;-)
    If you really want that, then use ipcalc(1) with IP-address and netmask, to calculate broadcast and network correctly.
    (And your spelling errors would not made any difference, as it isn't needed :-D )
    Do you really need the post-up and pre-down on the server or client? Isn't it easier to just add "gateway 192.168.1.1" to tell the client where the router is and "gateway 192.168.2.2" to tell the server that same? It is a bit strange to use different netmask in "netmask" directive and in the ip router command.
    Tip, use argument "-c" to set number of pings to do, like: "ping -c3 192.168.1.1" so you don't need to break with Ctrl-C. ;-)
    And by these added tip, a good video (especially as I don't need to do it myself) :-)
    I love VirtualBox and to play with networks.
    Next step is just remove those NAT interfaces from the client and server. Then make the first interface on the router a bridged network, add NAT iptable directives in /etc/network/interfaces (as it say in Debian wikipedia site wiki.debian.org/) and we have NAT-ed IPv4 router.
    Maybe use ufw(8) to set up firewall and forwarding rules in the firewall. Really like ufw(8), now when it has added routing.

  • @robertroberto4749
    @robertroberto4749 3 года назад +1

    Greatest networking tutorial I have EVER seen! Well explained!

  • @guardianvicio3367
    @guardianvicio3367 Год назад

    The best tutorial on youtube , thanks i've been working on this for the past couple days and with this video i understood everything!!!

  • @kallikantzaros
    @kallikantzaros 4 года назад

    Nice and concise. The port forwarding part was a bit weird as I spent 2 hours googling on how to make that happen, but did not watch through the end of the video :( Thank you very much, had a lot of fun doing this.

  • @user-mt3mu5my5p
    @user-mt3mu5my5p 3 года назад +1

    Thank you for the guide) Some comment: If you are seeing this video for settings network in ubuntu 18.04 and up, you should used netplan subsystem or install ifupdown (sudo apt install ifupdown), because in new versions ubuntu, netpan is primery subsystem for settings networks.

  • @nedsec9626
    @nedsec9626 2 года назад +1

    Studied in Dr Gordon's class pertaining to this content, recieved HD marks. Can confirm, a bloody legend.

  • @blacksmoke79
    @blacksmoke79 2 года назад

    Thanks a lot for your time and your way of teaching. i appreciate your efforts and your concern.

  • @rizkyalfazry9013
    @rizkyalfazry9013 Год назад

    Thank you for helping me finish my practicum report

  • @NaufilQureshi
    @NaufilQureshi 5 лет назад +2

    Amazing video and a great explanation!
    Ubuntu 18.04.1 is now using a yaml config for interfaces found under /etc/netplan/*.yaml

    • @AndersJackson
      @AndersJackson 5 лет назад

      Still works with /e/n/interfaces though, doesn't it?

  • @PETAJOULE543
    @PETAJOULE543 5 лет назад

    Route-addwas particularly useful to me in the upcoming task

  • @ashishsonaniya0308
    @ashishsonaniya0308 2 года назад

    This was exactly what I needed... totally helpful... 🙏🙏

  • @ilyasilyasov1639
    @ilyasilyasov1639 2 года назад

    Thanks for the video!

  • @abhishekneal8983
    @abhishekneal8983 4 года назад

    very well explained..thank you sir..keep sharing to teach us ......thank you so so much...

  • @NicolaCaldo
    @NicolaCaldo 3 года назад +1

    wired, I haven't the folder interfaces in etc/netowrk

  • @Tadnowly
    @Tadnowly 2 года назад

    Thanks Steven. This is really great

  • @ddh97
    @ddh97 4 года назад

    This saves me lot of time :-) Excellent explanation...

  • @Moodyhammer
    @Moodyhammer 3 года назад

    Very good demo, thanks for sharing.

  • @analicevieira1173
    @analicevieira1173 2 года назад

    Hi! I have 2 VMs running openSUSE. one machine have 2 interfaces(NAT and internal), and the other only have internal.
    My first machine is a DHCP server and other is the client. Do you know how can i get internet access in machine with only internal adapter? without using a third machine as router.
    Machine A -> NAT(with internet) & internal network
    Machine B -> only internal network
    DHCP is working well

  • @wtry0067
    @wtry0067 5 лет назад

    Excellent ... really this is what I was looking so far... very cool and good explanantion

  • @ashishm8850
    @ashishm8850 2 года назад

    Very informative. Thank you!

  • @vflawless
    @vflawless Год назад

    after enabling ip forwarding my server can't ping the client any idea why i did all the devices on Windows 🤔

  • @Farhadhp1
    @Farhadhp1 3 года назад

    Amazing explanation. Just amazing! Thanks :)

  • @Melzasx
    @Melzasx 3 года назад

    What a tutorial Steven. 2 years old but It made my day! Just one question, if we remove Nat adaptors from client and server, would they still be able to access external Internet via the router?

  • @edgarardon12
    @edgarardon12 Год назад

    Gold!

  • @dumaanita534
    @dumaanita534 2 года назад

    Thank you very much for sharing. I would like to ask you if you have had try the ports with

  • @Agnubis
    @Agnubis 3 года назад

    Perfect little sandbox!

  • @pythonexplorer5512
    @pythonexplorer5512 4 года назад

    Can you explain how whonix workstation has only one network adapter configured as intnet and yet is able to connect to the internet via the whonix gateway? I could not get other vms to work in the same way i.e. set one vm with two adapters NAT and intnet and other vms intnet only.

  • @martinp6880
    @martinp6880 3 года назад

    Great tutorial, thank you Steven

  • @bonareal7556
    @bonareal7556 3 года назад

    You the BEST !!!!!! Thanks a lot !!!!

  • @arrays277
    @arrays277 4 года назад

    I have a question, why in those configurations still need enp0s3? can we delete that, just to make a sure connection to the internet is from enp0s8 in the client

  • @alikaya7346
    @alikaya7346 4 года назад

    Very nice video, good explanation.

  • @lexter0001
    @lexter0001 5 лет назад

    thank you. I can confirm it works on Ubuntu 18.04 Live Server

  • @2005bgva
    @2005bgva 3 года назад

    Hi Steve, thanks for this video. Maybe you could do a new one using netplan that could be fantastic.

  • @tommasoanastasio7775
    @tommasoanastasio7775 4 года назад

    Hi Steven thanks for your always very clear videos. I am new in networking and am trying to implement the network suggested in this tutorial. Everything seems ok ... the only thing I don't understand is the fact that, after setting, for example on the client, the internal card on static and having indicated the address, netmask ... etc I completely lose the dns. So if, for example, I ping 8.8.8.8 it is ok but if I ping www.google.com the name is not resolved. The problem arises mainly on apt-get update ... I don't solve in my case deb.debian.org so I can't install packages etc ... thanks for any support!

  • @robertolillo1393
    @robertolillo1393 4 года назад +1

    thanks a lot, really good tutorial

  • @arnau02
    @arnau02 4 года назад

    Why when I ping a host on another network the ping TTL is sometimes 64 and sometimes 128?

  • @ahmedtwabi4796
    @ahmedtwabi4796 3 года назад

    Beast tutorial this.

  • @amit6301
    @amit6301 6 лет назад

    Sir, Please make videos on web application vulnerabilities in details (e.g. sql injection, xss attacks, csrf etc.)

  • @rohithk011
    @rohithk011 3 года назад

    Hello Sir, It was good video.
    I have one small doubt.
    In your topology, Can we communicate from Client to Server via Router in same same network ?
    e.g. if Client, Router and Server are in 10.1.1.0/24 network, can Client and Server talk each other ??
    I am trying to run MPTCP between Server and Client and Router should be same network otherwise MPTCP won't work.

  • @djlalorocks
    @djlalorocks 4 года назад

    Good video, bad audio - Thanks for the info!

  • @phillipjameson4192
    @phillipjameson4192 3 года назад

    Hello….. Great video and I am looking to try this on a Raspberry PI…..
    Can anyone help with this challenge I have to complete.
    I want to create three individual virtual networks.
    1: Point to point (i.e.) Client to Server, thus no network infrastructure.
    2: Client - Router - Server
    3: Client - WAN (i.e. a number of routers) - Server.
    I then want to RUN some TCP tests with different segment sizes. 256/512/1024/4096 and 64k. I will also have to adjust Window Sizing..... Whilst using TCPDUMP and/or Wireshark to capture the traffic and create a log-file that can be read and used to create some tangible data.
    Any ideas if this would be do-able within the Virtualbox environment.

  • @AnubhabRay-mx8yr
    @AnubhabRay-mx8yr 3 месяца назад

    you are god!

  • @adrianc4001
    @adrianc4001 4 года назад

    I did all the steps in the video but when i try to ping google or any other site nothing happens. Does anyone know what the problem is?
    much appreciated.

  • @JasonSpiffy
    @JasonSpiffy 6 лет назад

    Thank you Steve. I always enjoy your videos. Curious did you write virtnet?

    • @StevenGordonAU
      @StevenGordonAU  6 лет назад +2

      Yes. virtnet is just a set of Bash/Windows cmd scripts that call the command line version of VirtualBox and create some common/useful network topologies. Some details at sandilands.info/sgordon/virtnet

  • @dawitdereje2690
    @dawitdereje2690 4 года назад

    Thanks Steven !!!

  • @fahadnaim5099
    @fahadnaim5099 4 года назад

    An amazing video, thanks a lot

    • @simomarsa8016
      @simomarsa8016 4 года назад +1

      ممكن اتواصل معك اخي

    • @fahadnaim5099
      @fahadnaim5099 4 года назад

      @@simomarsa8016 نعم بالتاكيد.. تفضل

    • @simomarsa8016
      @simomarsa8016 4 года назад +1

      @@fahadnaim5099 شكرااا اخي،، بحت كثيرا عن طريقة لمشاركة الانترنت بين جهازين وهميين لكن لا احصل على نتيجة متلا ادا شغلت في بي ان فالجهاز الاول نفس الاي بي يكون في الجهاز التاني عبر internal network
      كمتال whonix gw

    • @fahadnaim5099
      @fahadnaim5099 4 года назад

      والله اخي اللي افتهمته من شرحك , ان هذا الفيديو هو جواب لاستفسارك. لان من خلال IP Forwarding تستطيع مشاركة الانترنيت من الحاسبة الثانية. لكن الاي بي طبعا من نفس الشبكة وليس نفسه. اعتقد كما تفضلت حضرتك ان ال (whonix gw and whonix workstation) مفيده. بس والله اني اسف لان مامشتغل عليهن من قبل

  • @johncole7380
    @johncole7380 3 года назад

    Thank you for the video. I was able to get the server and client to ping each other. However, if I try to ssh, I get the following: "ssh: connect to host 192.168.2.22 port 22: No route to host". Did I miss something? Thank you again.

    • @Agnubis
      @Agnubis 3 года назад

      Probably not a problem anymore but after realizing that I had the same issue, I had to check the firewall status for both router and server and that was the root cause!

  • @wtry0067
    @wtry0067 5 лет назад

    Please keep it up.

  • @pigrebanto
    @pigrebanto 5 лет назад

    bravo