Showing posts with label port. Show all posts
Showing posts with label port. Show all posts

Monday, 22 June 2015

VirtualBox: port forwarding to guest from host

Something weird in the new (2015-06) version.


  • Network
    • Set "NAT"
    • Click "Port Forwarding"
    • "Insert new rule" (right-hand nav button)
      • Rule 1
        • Host IP: 127.0.0.1
        • Host port: 2222
        • Guest IP: [leave blank]
        • Guest Port: 22
To get to guest:

ssh -p 2222 myuser@localhost

where myuser is user you created when you installed Linux OS on to VM.

Wednesday, 19 June 2013

tsunami-udp: faster than rsync


  1. build
    1. sudo apt-get install git gcc
    2. sudo apt-get install automake autoconf
    3. git clone git://github.com/rriley/tsunami-udp.git
    4. cd tsunami-udp
    5. ./recompile.sh
    6. sudo make install
  2. run
    1. you'll need a port open to allow direct connection from client to server
      1. unfortunately, this doesn't work through NAT firewalls alone
      2. firewall / port forwarding
        1. to server, TCP, 46224 by default
        2. to client, UDP, 46224 by default
    2. start up server
      1. tsunamid myfile.gz
    3. connect with client
      1. tsunami set rate 5M connect myserver.domain.com get myfile.gz
      2. it will flood your connection if you dont set rate properly
  3. documentation
    1. http://tsunami-udp.cvs.sourceforge.net/viewvc/tsunami-udp/docs/USAGE.txt
    2. splits files automatically
    3. allows wildcards when running server and client commands, "*", namely
      1. client will auto-find all files served, one after the next
      2. use forward-slash, i.e. get \*, for client command 
        1. so bash doesn't intrepret the asterisk
  4. undocumented
    1. doesn't do subdirectories, better tar that up and have plenty of disk space

Saturday, 11 May 2013

Wednesday, 24 April 2013

Tuesday, 12 March 2013

Specify ssh key when using rsync

WARNING: don't use ~ and don't use double quotes.
  1. rsync -av -e 'ssh -i /home/me/.ssh/id_rsa_other' root@logging.gumby.com:/remotedir/ /localdir/
Also, some alternative port:
  1. rsync -av -e 'ssh -p 2221' root@logging.gumby.com:/remotedir/ /localdir/

Interview questions: 2020-12

Terraform provider vs provisioner Load balancing Network Load Balancer vs Application Load Balancer  Networking Layer 1 vs Layer 4 haproxy u...