#1 2016-12-23 03:36:37

arronlim13
Trusted Member
Registered: 2016-10-02
Posts: 24

Connect to IPv6 only VPS

Bought a IPv6 VPS today and I have no idea how to SSH to it using PuTTY.

Last edited by arronlim13 (2016-12-23 03:38:32)

Offline

#2 2016-12-23 07:42:55

LowEnder
Trusted Member
Registered: 2015-08-21
Posts: 38

Re: Connect to IPv6 only VPS

If you are'nt lucky and your ISP natively supports IPv6 here's a couple options. Firstly IPv6 tunnel brokers (https://en.wikipedia.org/wiki/List_of_I … el_brokers). Those should work with no other resources required but i've never used any of them so i dont know how reliable they are or what the setup looks like. Also if you got another VPS (kinda likely with you posting here you have some NAT plan too wink that can communicate via IPv4 and IPv6 you can use that to tunnel to your IPv6 only VPS. You could install a VPN wih IPv6 and forwarding enabled or some proxy that is forced to use IPv6 when communicating with the outside but the most easy method is probably just to use SSHs remote port forwarding capabilities. Basically you use SSH server on your NAT VPS to forward the SSH port of your IPv6 only VPS to an IPv4 port on your local machine. I can't test this right now since portforwarding is something i disable on my VPS during setup but i am pretty positive this works.

On your local machine run this:

plink -P SSH-PORT-OF-YOUR-NAT-VPS -N -R 2222:[IP:V6:AD:RE:SS]:22 [email protected]

(I am assuming you are on windows - on linux just replace plink with ssh and escape the brackets. Also if SSH on the IPv6 only VPS is'nt running on port 22 you have to adjust that.)

The command will just ask for the password for username on your NAT VPS and then hang. While you keep this open you should be able to point putty at 127.0.0.1:2222 as if it were the address of your IPv6 only VPS.

Edit: In case you run into "plink: command not found" or whatever windows tells you in that situation, it's puttys command line version and you can get it here: http://www.chiark.greenend.org.uk/~sgta … nload.html

Last edited by LowEnder (2016-12-23 07:59:56)

Offline

#3 2016-12-23 09:56:18

arronlim13
Trusted Member
Registered: 2016-10-02
Posts: 24

Re: Connect to IPv6 only VPS

Thanks for replying!

I did a researched about my ISP and they doesn't support IPv6. However my router said it was connected but I still can't access to the VPS
4fa7a67573.png

I thought IPV6 tunnel broker will work so i also tried it but I can't get it working. I also tried to use my current VPS to communicate the IPv6 only VPS but I got this kind of error.

[email protected]:~# ssh -P 22 -N -R 2222:[IP:V6:AD:RE:SS]:22 [email protected]:5600:02d2:0000:0000:0000:26c4:8135
ssh: connect to host 22 port 22: Invalid argument
[email protected]:~# ssh -N -R 2222:[IP:V6:AD:RE:SS]:22 [email protected]:5600:02d2:0000:0000:0000:26c4:8135
ssh: connect to host 2607:5600:02d2:0000:0000:0000:26c4:8135 port 22: Network is unreachable
[email protected]:~#
C:\Users\Arron Lim\Downloads>plink -P 22 -N -R 2222:[IP:V6:AD:RE:SS]:22 [email protected]:5600:02d2:0000:0000:0000:26c4:8135
FATAL ERROR: Network error: Connection timed out

C:\Users\Arron Lim\Downloads>

I'll try to find a VPN or proxy that will forced IPv6 and i'll update to you ASAP

Offline

#4 2016-12-23 10:28:43

LowEnder
Trusted Member
Registered: 2015-08-21
Posts: 38

Re: Connect to IPv6 only VPS

NP, with everyone being busy with christmas and stuffs i got quite a bit of time on my hands right now wink

Guess i should have explained the command line a bit better. It seems you switched the IP for the NAT VPS with the IPv6 only one. Judging by what you posted a correct commandline would probably look more like this:

plink -P NAT-VPS-PORT -N -R 2222:[2607:5600:02d2:0000:0000:0000:26c4:8135]:22 [email protected]

Also while reading your post i realized you could just connect via a shell on your NAT VPS. Seriously, i feel kinda stupid not thinking of this earlier... So basically you'd log into your NAT VPS and do:

ssh -6 [email protected]:5600:02d2:0000:0000:0000:26c4:8135

Sorry, if i wasted your time by overthinking this. I was so stuck on having putty connect directly i completly overlooked this approach hmm

Last edited by LowEnder (2016-12-23 10:30:05)

Offline

#5 2016-12-23 15:19:01

arronlim13
Trusted Member
Registered: 2016-10-02
Posts: 24

Re: Connect to IPv6 only VPS

Ha ha, I'm just staying home doing nothing but playing games and stuff sad

So I tried the SSH command you provided to my NAT VPS and unfortunately I got the same error.

[email protected]:~# ssh -6 [email protected]:5600:02d2:0000:0000:0000:26c4:8135
ssh: connect to host 2607:5600:02d2:0000:0000:0000:26c4:8135 port 22: Network is unreachable
[email protected]:~# 

But for Windows, after I typed my VPS password it just freeze. I've wait for about 10 minutes and it still doing nothing.

C:\Users\Arron Lim\Downloads>plink -P 25321 -N -R 2222:[2607:5600:02d2:0000:0000:0000:26c4:8135]:22 [email protected]
Using username "root".
[email protected]'s password:
Access denied
[email protected]'s password:

Then I'm started to carious my NAT VPS is not capable for IPv6 so I did some ping test.

[email protected]:~# ping google.com
PING google.com (216.58.194.110) 56(84) bytes of data.
64 bytes from dfw06s48-in-f110.1e100.net (216.58.194.110): icmp_seq=1 ttl=54 time=0.559 ms
64 bytes from dfw06s48-in-f110.1e100.net (216.58.194.110): icmp_seq=2 ttl=54 time=0.526 ms
^C
--- google.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 0.526/0.542/0.559/0.028 ms

[email protected]:~# ping6 ipv6.google.com
connect: Network is unreachable
[email protected]:~#

Does it mean my NAT VPS is not capable for using IPv6? If yes, Is there another way to access my IPv6 only VPS?

Offline

#6 2016-12-23 16:01:39

LowEnder
Trusted Member
Registered: 2015-08-21
Posts: 38

Re: Connect to IPv6 only VPS

plink just freezing after the password prompt is normal. The -N option instructs it to not execute any command (usually shell) at the remote side. It just starts the port forward and waits infinitly. You should be able to check if it succeeds by running "netstat -anp" (i hope that syntax is correct on windows) and looking for it listening on 127.0.0.1:2222 or 0.0.0.0:2222 but if the NAT VPS is'nt able to connect out using IPv6 it wont help much and from your test with pinging ipv6.google.com it really seems it can't. Now thats pretty weird since afaik all LES VPS should have IPv6 connectivity. I guess it might be a configuration issue on the NAT VPS. Strange... I dont remeber having to do anything special to get it to work. Maybe worth looking at the output of "ifconfig" on the NAT VPS to see if there is actually some IPv6 IP configured? Not that i'd really know what to do if it is'nt but thats where i'd start. If nothing helps it might be worth starting another thread about IPv6 connectivity on the NAT VPS. If you can't ping ipv6.google.com there's clearly something wrong.

Offline

#7 2016-12-23 16:59:07

arronlim13
Trusted Member
Registered: 2016-10-02
Posts: 24

Re: Connect to IPv6 only VPS

I'm assuming that you're saying run "netstat -anp" while the plink is running, i opened a new command prompt and run the command and this is what i got

C:\Windows\system32>netstat -anp

Active Connections

  Proto  Local Address          Foreign Address        State

C:\Windows\system32>

I also run "ifconfig" on my NAT VPS and I don't see any IPv6 IP.

Offline

#8 2016-12-23 18:54:17

LowEnder
Trusted Member
Registered: 2015-08-21
Posts: 38

Re: Connect to IPv6 only VPS

Wow, netstat showing nothign at all. Now that is surprising o.O Either its syntax changed quite alot (i remember it being very similar to linux) or thats windows way of saying there is a permission problem. I dont have access to any windows machines to test, sorry. Maybe try netstat -an instead or even just netstat -a. It should give at least some output.

If no IPv6 IPs show up in ifconfig it seems IPv6 is just not configured on that box. For comparsion thats what the output looks like on my french MSP VPS:

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:1589 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1589 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:176412 (172.2 KiB)  TX bytes:176412 (172.2 KiB)

venet0    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
          inet addr:127.0.0.2  P-t-P:127.0.0.2  Bcast:0.0.0.0  Mask:255.255.255.255
          inet6 addr: 2001:41d0:X:XXXX:X:XX:X:XXXX/96 Scope:Global
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
          RX packets:174584 errors:0 dropped:0 overruns:0 frame:0
          TX packets:174051 errors:0 dropped:6 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:136224813 (129.9 MiB)  TX bytes:139685594 (133.2 MiB)

venet0:0  Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
          inet addr:10.0.XX.XX  P-t-P:10.0.X.XX  Bcast:10.0.0.XX  Mask:255.255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1

Sadly i don't know how to set this up. It's just how the VPS was deployd and i am not very good at configuring IPv6 networking or OpenVZ networking in general. I think i remember reading about people being told to add IPv6 IPs and/or use "reconfigure networking" in the control panel though. I would be a bit scared to lose connectivity and having to reinstall by blindly trying this but its the only thing i can think of.

Offline

#9 2016-12-24 04:59:17

arronlim13
Trusted Member
Registered: 2016-10-02
Posts: 24

Re: Connect to IPv6 only VPS

netstat -a gave me some output but I don't see any IP with 2222 port. I also double checked ifconfig and I can't find any inet6/IPv6 address. In my NAT VPS control panel I was able to find some IPv6 address like subnet, gateway and nameserver.

Offline

#10 2016-12-24 06:26:25

arronlim13
Trusted Member
Registered: 2016-10-02
Posts: 24

Re: Connect to IPv6 only VPS

UPDATE: I got Tunnel Broker working on my old computer and I'm able to access to my IPv6 only VPS! Thanks for helping me. smile

Offline

#11 2016-12-24 06:35:25

LowEnder
Trusted Member
Registered: 2015-08-21
Posts: 38

Re: Connect to IPv6 only VPS

Nice! Glad it's working. Probably the coolest solution too smile

For anyone reading this in the future: I just tried plink on wine and it seems i got -L and -R switchtes mixed up. Wouldn't have worked without IPv6 on the NAT VPS anways but just so i dont waste anyones time the right commandline should have been:

plink -P SSH-PORT-OF-YOUR-NAT-VPS -N -L 2222:[IP:V6:AD:RE:SS]:22 [email protected]

Offline

Board footer