Getting access to home network using IPv6 and SSH tunelling from IPv4 Internet

My new ISP is providing me with CGN (carrier grade NAT) for IPv4 but also full /64 IPv6 connectivity with routable unicast addresses. So I've enabled IPv6 on my Raspberry Pi. I've also bougth for couple of bucks a cheap VPS (http://www.lowendtalk.com/) that have dual stack to be used as proxy for access to my home network. The access I will configure using SSH tunnels, what allows me for opening access only when I really need it. After logging to my VPS I issue the following to facilitate local post forwarding from VPS to my home network:

ssh -L 10.111.111.111:8080:192.168.1.1:80 -l pi 2a01:2222:2222:2222:3333:3333:3333:3333

The parameters are as follow:

  • 10.111.111.111 is address of my VPS (man in the middle box).
  • VPS will listen on port 8080 for incoming connections.
  • 192.168.1.1 is an IP address of device I want to access on my internal home network.
  • 80 is a port I want to access on the device in my internal home network.
  • pi is user name that I want to use to connect to my Raspberry Pi box
  • 2a01:2222:2222:2222:3333:3333:3333:3333 is IPv6 address of my Raspberry Pi.

root@vps1:~# ssh --help
usage: ssh [-1246AaCfgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec]
           [-D [bind_address:]port] [-e escape_char] [-F configfile]
           [-I pkcs11] [-i identity_file]
           [-L [bind_address:]port:host:hostport]
           [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
           [-R [bind_address:]port:host:hostport] [-S ctl_path]
           [-W host:port] [-w local_tun[:remote_tun]]
           [user@]hostname [command]

Comments

Popular posts from this blog

Hardening OpenWRT - adding non-root user account

Dropbear SSH keys and autossh on OpenWRT

SSH Tunel with OpenWRT