Mars2k21
Mars2k21 avatar

Mars2k21

@Mars2k21@kbin.social

Employee at the Black Mesa research facility in New Mexico. Recently we've dealt with 2 aliens trying to steal snacks out of the pantry outside the laboratory.

Hope your day is going well.

No internet in virtual machine

I have on the host machine two network interfaces. One is lan and the other is a wlan. For libvirt I have created a nat network which is bound to the wlan. From the guest I can access other machines in the network host wlan is connected to. Also DNS lookup works. The problem is that thereโ€™s no connection to the internet at...

To those genuinely interested in moderating

@Ernest has pushed an update which allows users to request ownership/moderation of abandoned magazines. Ghost/abandoned magazines were fairly prevalent after the initial wave of hype due to users either squatting magazine names or becoming inactive for other reasons. Now is your chance to get involved, if you were waiting to do...

FlorisBoard | FOSS keyboard that respects your privacy (florisboard.org)

I came across everyday topic on Techlore Discussions about free and open source keyboards for Android and discovered this little gem. It is FlorisBoard, a virtual keyboard for Android which respects privacy of the user. I can sigh with relief and finish my search for that singular keyboard for typing stuff on the go....

rideranton, (edited ) to kbinMeta
rideranton avatar

I've submitted the second to last PR for review! This PR adds thread and thread comment retrieval, creation, deletion, editing, voting, reporting, and moderation functionality to the API! The last PR will be very similar to this one, except for microblogs!

Didn't you have the API 'complete' like 2 months ago?

Yes, but it did not have any tests written to verify that it worked. These PRs have been resolving that issue so that there can be at least some guarantees that the API works when it gets onto kbin.social and others

(Also, please remember to buy @ernest a coffee if you are able, he's been burning the candle at both ends to support kbin.social and deal with personal business)

Ok, how do I start self-hosting?

Iโ€™ve been following this community for some time in order to learn about self-hosting and, while I have learnt about a bunch of cool web services to host, Iโ€™m still lost on where/how to start. Does anyone have, like, a very beginner guide that is not just โ€œinstall this distro and click these buttonsโ€? I have an old...

Shdwdrgn,

It sounds like maybe youโ€™re looking for a primer on how networking works across the internet? If so, hereโ€™s a few concepts to get you started (yeah unfortunately this huge post is JUST an overview), and note that every one of these services can also be self-hosted if you really want to learn the nuts & boltsโ€ฆ

DNS is the backbone of everything, it is the service that converts names like โ€œlemmy.worldโ€ into an actual IP address. Think of it like the phone book of the internet, so like if you wanted to call your favorite pizza place you would find their name, and that would give you their phone number. Normally any domain that you try to reach has a fixed (or static) IP address which never (or rarely) changes, and when you register your domain you will point it to a DNS server that you have given authoritative access to provide the IP where your server can be found.

But what if youโ€™re running a small setup at home and you donโ€™t actually have a static IP for your server? Then you look to DDNS (Dynamic DNS) and point your domainโ€™s DNS to them. There are several free ones available online you can use. The idea is you run a script on your server that they provide, and every time your IP from your ISP changes, the script notifies the DDNS service, they update their local DNS records so the next person looking for your domain receives the updated IP. There can be a little delay (up to a few minutes but usually only seconds) in finding the new address when your IP changes, but otherwise it will work very smoothly.

You mentioned DHCP, so hereโ€™s a quick summary of that. Basically you are going to have a small network at your home. Think of your internet router as the front-end, and everything behind it like you computers or mobile devices are going to be on their own little private network. You will typically find they all get an IP address starting with 192.168.* which is one or the reserved spaces which cannot be reached from the internet except by the rules your router allows. This is where DHCP comes inโ€ฆ when you connect a device it sends out a broadcast asking for a local network IP address that it is allowed to use. The DHCP server keeps track of the addresses already in use, and tells your device one that is free. It will also provide a few other local details, like what DNS server to use (so if you run your own you can tell the DHCP service to use your local server instead of talking to your ISP). So like the phone book analogy, your DHCP service tells all of your local devices what phone number they are allowed to use. other Now to put all of this together, you probably have a router from your ISP. That router has been pre-programmed with the DHCP service and what DNS servers to use (which your ISP runs). The router also acts like the phone company switchboardโ€ฆ if it sees traffic between your local devices like a computer trying to reach your web server, it routes those calls accordingly. If you are trying to get to google then the route sends your call to the ISP, whose routers then send your connection to other routers, until it finally reaches googleโ€™s servers. Basically each router becomes a stepping stone between your IP address and someone elseโ€™s IP address, bringing traffic in both directions.

OK so now you want to run a web server for your domain. This means that besides getting the DNS routing in place, you also need to tell your router that incoming web traffic needs to be directed to your web server. Now you need to learn port numbers. Web pages traffic on port 80, and SSL pages use port 443. Every type of service has its own port number, so DNS is port 53, ftp is port 21, and so on. Your router will have a feature called port-forwarding. This is used when you always want to send a specific port to a specific device, so you tell it that any incoming traffic on port 80 needs to be sent to the IP address of your web server (donโ€™t worry, this wonโ€™t interfere with your own attempts to reach outside websites, it only affects connections that are trying to reach you).

Now if youโ€™ve followed along you might have realized that even on your local network, DHCP means that your serverโ€™s own IP address can change, so how can you port-forward port 80 traffic to your web server all the time? Well you need to set a local static IP on your server. How that is done will be specific to each linux distribution but you can easily find that info online. However you need to know what addresses are safe to use. Log in to your router, and find the DHCP settings. In there you will also see a usable range (such as 192.168.0.100 to 192.168.0.199). You are limited to only changing the last number in that set, and the router itself probably uses something like 192.168.0.1. Each part of an address is a number between 0-255 (but 0 and 255 are reserved, so except in special cases you only want to use the numbers 1-254), so with my example of the address range being used by DHCP, this means that you would be free to use any address ending in 200-254. You could set the static IP of your web server to 192.168.0.200, and then point the port-forwarding to that address.

Now remember, your local IP address (the 192.168 numbers) are not the same as your external internet address. If you pay your provider for a static internet address, then your router would be programmed with that number, but your web server would still have its local address. Otherwise if youโ€™re using DDNS then you would tell that service the outside IP address that your router was given by your ISP (who coincidentally is running a DHCP that gave your router that address).

Let me see if I can diagram thisโ€ฆ OK so imagine your router has the internet address of 1.2.3.4, your web server has the local address of 192.168.0.200, and someone from the internet who has address 100.1.1.1 is trying to reach you. The path would be something like this:

100.1.1.1 -> (more routers along the way) -> your ISP -> 1.2.3.4 (router) -> 192.168.0.200 (server)

They send a request to get a web page from your server, and your server send the page back along the same path.

Yes thereโ€™s a lot to it, but if you break it down one step at a time you can think of each step as an individual router that looks to see if the traffic going to something on the outside or going to something on the inside. Which direction do I need to send this along? And eventually the traffic gets to a local network that says โ€œhey I recognize this address and it needs to go over to this device here.โ€ And the key to all of this routing is DNS which provides hints on where to forward the information to the next router in the path. I can break things down further for you if something isnโ€™t clear but hopefully that gives you a broad overview on how things move around on the internet.

amplmo, to selfhosted
@amplmo@layer8.space avatar

Finally ordered an old PC to use for self-hosting. Canโ€™t wait to get my own cloud services at home, no more of Google annoying me about how Iโ€™m like 20 GB over my 15 GB Google Photos free storage. Any suggestions for the software/hardware? Still have to get an extra SSD as the boot drive and a monitor in the meantime.

jon,
jon avatar

Now that I'm in my thirties, I can answer this. Two things come to mind.

First, really should have just done college after high school. I really wasn't looking forward to more school after graduation and wasted about 5 years before going back for my CS degree. I'm in a good place now, but could have had a 5 year head start on life if I'd just gone straight in.

Second, please take better care of your health while you have it. I was skinny as a rail in my early 20s and sort of took that for granted. I'm not obese or anything right now, but as you get older keeping in shape takes conscious upkeep. Get in the habit now and it'll be easier to maintain later. It's harder to lose the weight once you have it rather than keep it off.

stavvers, to random
@stavvers@masto.ai avatar

I made the terrible mistake of dimly remembering that the Portuguese man-o-war is not a jellyfish so trying to find out what they actually are

Anyway turns out they are floating colonies of at least 4 specialised organisms and science doesn't actually know anything about the early stages of their development, and there's at least one bit on the sex module (which they have, and it fucking swims off) that science no idea what it does.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • โ€ข
  • JUstTest
  • tacticalgear
  • DreamBathrooms
  • InstantRegret
  • magazineikmin
  • Youngstown
  • everett
  • anitta
  • slotface
  • GTA5RPClips
  • rosin
  • thenastyranch
  • kavyap
  • mdbf
  • Leos
  • modclub
  • osvaldo12
  • Durango
  • khanakhh
  • provamag3
  • cisconetworking
  • ngwrru68w68
  • cubers
  • tester
  • ethstaker
  • megavids
  • normalnudes
  • lostlight
  • All magazines