Hyperoptic Fibre Broadband Routing IPv4 & IPv6: home servers

At last, in our central London family apartments we have 1GB connections with Hyperoptic. Reliable and fast. We get the speeds advertised, and one our flats it is even a little faster. Ping is time 1ms. With such fast speeds, upload as fast as download, it is tempting to run servers at home and run a private cloud. The snag is the devices at home are not reachable using IVp4 from the internet; the home routers are behind CGNAT, just as phone companies do in order to share the rationed IPv4 addresses and protect their network. You can pay Hyperoptic extra each month for a fixed IPv4 address that is then reachable from the outside using IPv4. You do not need to. Better to use IPv6 anyway.

Your home or office devices can be reached by IPv6 addresses from the internet which when calling from on an IPv6 enabled network. IPv6 is fixed and you are given a whole reachable subnet. Then you set the home router’s IPv6 filter, that is open pinholes to any local device IPV6 address and ports you want. You can now have multiple reachable devices on the same port, say 443 as there is no address sharing (NAT).

Connection is fine from IPv6 enabled networks away from home. It does always work from some workplaces or from phones outside because many ISPs still use IPv4 only routing. To solve this I use another server (my VPS) that has IPv4 and IPv6 connections. I use the VPS as a middle man to “cat” the connection from IPv4 to an IPv6 address. I can access home systems anywhere and can give my home machines domain names IPv4 and IPv6 with DNS entry. On this middle machine, a Linux site (a VPS) I use SOCAT command with the IP and ports I want like this:

socat TCP4-LISTEN:9831,fork,su=nobody TCP6:[2a01:4b02:a40a:4b10:af9b:c59c:b1b8:2e7x]:2529.

So connecting to VPSserver:9831 using IPv4, connects to my a home device on IPv6:2529. Can also run a VPN though it (SoftetherVPN). It’s magical (don’t forget to open the port on the middle server). It is very fast, I do not notice any degradation.

By the way, I found that if you have two places with Hyperoptic fibre connections you can access the other by using the internal Hyperoptic IPv4 addresses that are given to the routers (in 10.0.0.0 range). These internal Hyperoptic IPv4 addresses seem fixed. Mine has not changed over multiple reboots. I am pretty certain all this will pertain to any fibre provider.

https://bulger.co.uk/message.htm

Leave a Reply