Here’s part of my file: webpath = /8080:/:default:/tmp/httpd The 20_frontends.rc is where you can configure each frontend server you want to talk to. If you are using a package and having Pagekite start automatically, you need to look at /etc/pagekite.d. Obviously, you need to replace YOURUSERID and CUSTOM to suit your purposes. If you want to run from the command line, consider using: pagekite -clean -optfile=/home/YOURUSERID/. Ssh tunnel raspberry pi install#You can install the same package on the Pi or other client computer - remember, the same script is used on the frontend (the Internet-facing computer) and the backend (the computer running the server). If you plan on using the Pagekite server, you are better off leaving this file alone and creating a new configuration. Client Setupīy default, the Pagekite script looks in ~/.pagekite.rc for settings. In fact, that same documentation is where you can learn about all the options like isfrontend and ports. You can also set up a certificate file and point to it here, but if you want to do that, you can read the documentation (look for the –tl_default and –tls_endpoint options along with –fe_certname and –ca_certs). In this case, we want to be the front end, so here’s what I put in there: isfrontendĭomain=http,https,http-8080,raw-2222:*.:$$$SECRET$$$ĭomain=http,https,http-8080,raw-2222::$$$SECRET$$$ The 20_frontends.rc file is supposed to connect to the remote frontend. We aren’t going to do that, so you can remove those lines or the whole file. The other lines set up your connection to the servers. The line that prevents it from starting is the one that reads: abort_not_configured Just in case, I commented out all the lines, but you could just as well remove it. The reality is, for using the script as a frontend, you don’t need this file at all. The first file is why the service won’t start. The Pagekite package will leave two important files in /etc/pagekite.d: 10_account.rc and 20_frontends.rc. The upshot is that your host name ( or ) goes to your server (the Pagekite server in the diagram below). Or you can tell them you need two “A” records put in and they ought to know what that means. Ssh tunnel raspberry pi how to#If your hosting company handles your DNS, you’ll have to determine how to make similar changes. All the names are relative to, so there’s no need to specify that on those two lines. Obviously, my IP address is the one shown. To do this, I needed a few configuration changes in my DNS: dyn IN A 173.201.49.198 I also wanted to be able to create subdomains like. In my case, I own the domain name so I decided to make be my Pagekite front end. If you have a server on the Internet, there is some way to get names (like ) into the DNS system to point to a specific IP address. If you want to run your own, you are going to have to make some changes. What’s more is that the example files are set up as though the computer wants to talk to the Pagekite frontend provided (). However, the default setting is to exit and not start anything up. This will put a new directory called /etc/pagekite.d and also installs a startup script (/etc/init.d/pagekite). I suggest you start by installing that on your server, using the method that matches your packaging system. The Pagekite website has installation packages for RPM and deb packages. In my case, I have a server sitting in a rack in a data center so I have my own DNS server (named) running on it. You’ll also need control of your DNS–exactly how you do that will depend on how your server is set up. It needs a few tools on it, including Python, but nothing exotic. Well, technically a computer that is visible to all the clients you expect to use including the backend. In practical terms, then, if you have a computer that is always on and has an IP address that can be found on the public internet, you can run your own Pagekite server (they call it a front end) and service your own backends.Īs I mentioned, you are going to need a computer visible on the Internet. The other good news is the entire thing is open source. The good news is twofold: the same Python script you use to set up the client-side can also set up a server. Ssh tunnel raspberry pi free#There are limits to the free service, and you don’t control the entire thing. However, it also depends on the Pagekite server, which isn’t always convenient. On your Pi, you just need a simple Python script. Last time I showed you how to expose a web service on a Raspberry Pi (or, actually, any kind of device) by using a reverse proxy from Pagekite.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |