多种应用 分发加速

应用交付服务

CRM ERP ... 各种核心数据库和应用

随时随地 安全可靠

Accessing Your Server via Grandenet ADN

This document describes how to connect to your computer or server (backend) via GrandeNet Frontend servers.

You can check the list of officially supported distributions on this link:

This guide can be followed if you received your token by email as a Free Trial or if you got the token after request your ADN Setup on your Grandenet Account and also finish to configure Grandenet Agent on your server.

How it works?

Once you include Grandenet Agent (re6st) on your backend server (or computer) all Worldwide GrandeNet Frontend Servers will establish optimized routes to your servers. This optimal routes will allow you host your application at your server and make it accessible with optimized performance all over the world.

We are going to use as example here the default configuration, with the initial domain provided by Grandenet ADN to you, however later you can request additional custom domain, in order to include your site on the GrandeNet ADN.

By default the Grandenet Frontends are going to access the IPv6 provided by Grandenet, at the port 80. (ie.: http://[2401:xxx:xxx::1]/)

Including Configuring a HTTP Server

Here is described how you can make your site works under URL provided after re6st is working.

Minimalist http service

Here we are going to teach to use a minimal http server so you can test, the URL you received is working.

First create a folder:

mkdir /opt/mygrandenetadn

Them create the the file /opt/mygrandenetadn/index.html :

<html>
<head><title> Just an example. </title> </head>
<body>
  Hello world from CDN ME!
</body>
</html>

Now you can use python to create the http server, for this create the file /opt/mygrandenetadn/server.py with the followed content:

import socket
from BaseHTTPServer import HTTPServer
from SimpleHTTPServer import SimpleHTTPRequestHandler

HTTPServer.address_family = socket.AF_INET6

HTTPServer(('::', 80), SimpleHTTPRequestHandler).serve_forever()

Them launch the service (use root user as you are using port 80):

root@localhost:~# cd /opt/mygrandenetadn && python server.py

Now by accessing the URL provided along the token you have should be able to see the "Hello world from Grandenet ADN!", so your server is using the Grandenet ADN now.

Using 6tunnel for an already exiting service

If you already have a running system you can use 6tunnel for expose your service on the Grandenet ADN. In order to install from a Debian-based machine is simple:

apt-get install 6tunnel

For run the service, you can simple use the follow example command:

6tunnel -6 80 127.0.0.1 8080

On the command above, change the IP (127.0.0.1) and the port (8080) by the IP/Port you are using on your http server. For example, if you are running your http server on 0.0.0.0 and port 9080, you cause:

6tunnel -6 80 127.0.0.1 9080

If your http server is already working on port 80 only on IPv4, it is better edit it's configuration to also listen on port IPv6.

Including already existing apaches/nginx configurations

We are going to include this guide soon.