Inlets conceptual architecture - making localhost:3000 available via HTTPS with a public DNS record and custom domain. Inlets is a reverse proxy and a network tunnel that will run on the Raspberry Pi and act as a gateway / router for any services we wish to expose. Now we'll prevent password logins over SSH, and only allow SSH keys to be used. I like to remove the message of the day - sudo rm -rf /etc/motd Set the hostname to whatever you want, I picked inlets-gw1 Make sure you set a password other than the default Ssh-copy-id log in and customise the RPi: sudo raspi-config # Check if you have a key, if not, run `ssh-keygen` and hit enter to everything Note: the RPi Zero is the slowest version available, so it may take a few mintues for the initial boot, which involves resizing the root partition to fill the SD card. Now log into the Raspberry Pi via ssh, you should add your ssh key on the device so that you don't need to log in with a password. country=GBĬtrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev If you're going to use WiFi for the gateway, then create a wpa_nf file in the boot partition too. So before you unmount the SD card, make sure you create a file in the boot partition called ssh. Use Etcher.io to flash the OS image to your SD card.Download Raspbian Lite, there's no need for a full desktop environment.1uVrSdKk1z- Alex Ellis JanuFlash Raspbian Lite to your SD card I've created a 10 USD Internet gateway using a Raspberry Pi Zero I can get access to any private services I want, from a public IP provided by the cloud. You can ⭐️ star or fork inlets on GitHub Tutorial An API access token for public cloud, such as DigitalOcean - feel free to use this referral link to grab a few credits.An SDCard writer, I use Apple's USB-C SD Card writer.Maybe you want to build a Twitter, Slack, or GitHub bot and receive webhooks? These are all valid use-cases and I'm sure there's loads more you can think of. Why might you want to get access to a service running on your private network? Perhaps you're running an OwnCloud, Plex, a blog, or some other admin dashboard or panel. You might not be able to port-forward, perhaps you're behind Carrier Grade NAT, or on a shared WiFi network, where you're not the administrator - think hot-spot, hotel, or university accomodationĪn Internet gateway with the inlets will provide a persistent connection behind the trickiest of networks and let you expose your private and LAN services of choice to the Internet.Others give you a DHCP IP which changes often.Your customer identifier / location is disclosed to users of your services.You can achieve a similar effect of an Internet gateway by enabling port-forwarding on your home router, however there are downsides to this. I can paste the commands if it would help.Īnyway, it may be that around 53MB/s is the theoretical max for USB 2.In this tutorial I'll show you how to build an Internet Gateway for your home network using a Raspberry Pi and a HTTPS tunnel for just 10 USD. For all (RAID5, RAID6, and RAIDZ) I ran multiple times and averaged.Īgain, these were not great methods but might be good enough to suggest looking at RAID5 or, if wireless is not an option, RAIDZ. Writing to a file in a mounted ZFS file system on a four device RAIDZ array on FreeBSD 12-beta, I got about 4.5 or 5 MB/s. Writing to a file in a mounted EXT4 file system on a four device RAID6 array on Raspbian-stretch, I got about 5 or 6 MB/s. Writing to a file in a mounted EXT4 file system on a four device RAID5 array on Raspbian-stretch, I got about 10 or 12 MB/s. Raspian doesn't have ZFS yet, but FreeBSD does have right now and that (ZFS) is a better option for NAS these days, FreeBSD would rule out wireless though as far as I know. Below are some notes from RAID5 and RAID6 speed tests using the same hardware. While RAID0 would be of no use, it would show some of the upper speed limits, speeds that can't be reached with RAID5 or RAID6. I played with 4 device RAID0 on a 3B+ using 8GB USB sticks as drives plugged into the built-in and got around 40MB/s in an unscientific test. I would expect the RPi 3B+ to outperform the RPi Zero W. Has anyone used this same setup? I'm hoping for better wifi with the zero w than I have with the rpi3 and expect as good or better IO 3-5MB/s? Will set this up as a RAID6, am hoping for similar r/w as I get on my current usb raid5.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |