Find the answer to your Linux question:
Results 1 to 5 of 5
Like Tree2Likes
  • 1 Post By Irithori
  • 1 Post By Irithori
Is it somehow possible to simulate a network to test some remote commands like nc or rcp? I don't think it's possible, but I just want to be sure....
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2012
    Posts
    29

    Simulating a network


    Is it somehow possible to simulate a network to test some remote commands like nc or rcp? I don't think it's possible, but I just want to be sure.

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,229
    nc and rcp can be tested even with one machine/one IP.

    But you have more options:
    - multiple IP aliases on one NIC of one host
    - install multiple bridged VMs
    - have real machines connected to a switch

    That should already cover your needs.
    For reference, there are network simulators like ns-3
    pinhead likes this.
    You must always face the curtain with a bow.

  3. #3
    Just Joined!
    Join Date
    Oct 2012
    Posts
    29
    Thanks. If multiple computers are not locally available, could a VPN be a good solution? My goal is to test a simple messaging shell script that either sends messages to one machine or to a group of machines. Could this easier be done by using IP aliases?

  4. #4
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,229
    VPN is too complex. You would only use it to connect multiple networks over the (untrusted) internet.

    Probably the easiest way is to install a few VMs.
    This way isolation is given and bughunting is easier.
    ie: you can more easily track connection with tcpdump
    pinhead likes this.
    You must always face the curtain with a bow.

  5. #5
    Just Joined!
    Join Date
    Oct 2012
    Posts
    29
    Ok. I'm going to install VirtualBox and then run multiple instances of it. For shell programming, a very lightweight distribution would be sufficient.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •