VPS v. Cloud hosting

Looks like I should give up on AWS.


What is the cheapest VPS I can get to use FreeBSD on and is such a thing as free trial period available?
hruodr A few years ago, I was still running on RamNode with 32-bit FreeBSD. I put in a ticket and asked about changing to the current version 64-bit. They said, "Sure" and made the iso available. I installed that as a regular installation goes in the few minutes that takes for no additional charges and virtually no effort.
I'm trying find out if FreeBSD is available, but I don't see an option for picking it.
 
Trial period, probably not. I can rent a VPS for a single month though. I needed to test something, added a new VPS, did my tests with it, then cancelled it again. Only paid one monthly fee for it.
 
I'm assuming that you want to serve something online, othwerwise it would make far more sense to just load up FreeBSD in a VM where you can really screw stuff up without any real consequences.
 
What is the minimum VPS plan I could use to deploy FreeBSD?

On https://ramnode.com/ I was told
Iirc Vultr was $6/month for 1GB RAM (I always used their cheapest 1GB option with Linux but I think there's $2 or $3 512MB ones too)

I couldn't install Linux distros with 512MB (they'd fail while booting, or Ubuntu that failed mid-install; iirc Debian was the only one that succeeded), but didn't try FreeBSD.
 
I'm trying find out if FreeBSD is available, but I don't see an option for picking it.
It's not part of their regular offerings but it's easy to get and they support you like anyone else. Go here and you can do a live chat or use Discord.

I might be grandfathered in. I don't see the same plan I'm on with two IPV4 addresses and 16 IPV6s for $2/month. They only have IPV6 addresses for $2/month now and if you want IPV4 then it's $2 more. And it's plenty of everything for running FreeBSD. I've been doing it for at least 15 years with them. Or is it 20? Don't recall.
 
Can anyone help with what parameters are required here?

1783877153075.png
 
How do I create a jail on a VPS which has a single IP address?
It is a networking related problem.

For web services, usually you install an HTTP server on the host, listening on the host public IP, and then it proxies the requests to the services of internal jails, listening on local IP. The HTTP server uses the domain name of the request as a selector of the requested service.

For ssh services, you can use the same public IP on the host, but each jail listen to a different and unique port.

There are many examples of these configurations. You can easily adapt them from the Linux case to the Jail case.

I use NGINX as proxy, but recently I'm switching to Caddy.
 
It is a networking related problem.

For web services, usually you install an HTTP server on the host, listening on the host public IP, and then it proxies the requests to the services of internal jails, listening on local IP. The HTTP server uses the domain name of the request as a selector of the requested service.

For ssh services, you can use the same public IP on the host, but each jail listen to a different and unique port.

There are many examples of these configurations. You can easily adapt them from the Linux case to the Jail case.

I use NGINX as proxy, but recently I'm switching to Caddy.
Can I install a web server in a jail if I only have one IP address?
 
Can I install a web server in a jail if I only have one IP address?
Yes. It is not true that you have only one IP address: you have only one public IP address, but you can configure many local IP address to associate to your jails. So every Jail can have their IP address.

You have an host web server listening on the public IP. Then when it receives request, it forwards to web servers on the jails, listening into local IP or sockets. They answer back to the host web server, and it forward the answer to the user.

This only for giving an idea. You had to find some manual and study the details there.
 
My VPS runs 6 jails, those are 3 different websites, all on 1 single 'external' IP address. You can do this (http/https) without NAT if you leverage a reverse proxy on the host. The reverse proxy can switch backends based on the HTTP/1.1 Host header.
 
You want to learn about NAT (network address translation).
My VPS runs 6 jails, those are 3 different websites, all on 1 single 'external' IP address. You can do this (http/https) without NAT if you leverage a reverse proxy on the host. The reverse proxy can switch backends based on the HTTP/1.1 Host header.

This sounds quite complicated.

I need to find an article showing how to do this,

Maybe vermaden has written something illustrating how to set things up.
 
Should be doable with for example Caddy as reverse proxy:

Example Caddyfile below.


Code:
# GLOBAL SETTINGS
{
  email your-email@example.com
  log {
    output file /var/log/caddy/access.log
  }
}

page1.com, www.page1.com {
  reverse_proxy 10.0.0.10:80 { # Jail1 IP
    header_up X-Real-IP {remote_host}
    header_up X-Forwarded-For {remote_host}
    header_up X-Forwarded-Proto {scheme}
    header_up X-Forwarded-Host {host}
  }
}

page2.com, www.page2.com {
  reverse_proxy 10.0.0.11:80 { # Jail2 IP
    header_up X-Real-IP {remote_host}
    header_up X-Forwarded-For {remote_host}
    header_up X-Forwarded-Proto {scheme}
    header_up X-Forwarded-Host {host}
  }
}

# CATCH ALL OTHER
* {
  respond "Unknown site" 404
}

EDIT: even simpler example below.

check please if this is valid Caddy 'caddyfile':

Code:
{
    email your-email@example.com
}

page1.com, www.page1.com {
    log
    reverse_proxy 10.0.0.10:80
}

page2.com, www.page2.com {
    log
    reverse_proxy 10.0.0.11:80
}

* {
    respond "Unknown site" 404
}
 
Should be doable with for example Caddy as reverse proxy:

Example Caddyfile below.


Code:
# GLOBAL SETTINGS
{
  email your-email@example.com
  log {
    output file /var/log/caddy/access.log
  }
}

page1.com, www.page1.com {
  reverse_proxy 10.0.0.10:80 { # Jail1 IP
    header_up X-Real-IP {remote_host}
    header_up X-Forwarded-For {remote_host}
    header_up X-Forwarded-Proto {scheme}
    header_up X-Forwarded-Host {host}
  }
}

page2.com, www.page2.com {
  reverse_proxy 10.0.0.11:80 { # Jail2 IP
    header_up X-Real-IP {remote_host}
    header_up X-Forwarded-For {remote_host}
    header_up X-Forwarded-Proto {scheme}
    header_up X-Forwarded-Host {host}
  }
}

# CATCH ALL OTHER
* {
  respond "Unknown site" 404
}
Can this be adapted to apache?

I don't know anything about caddy.
 
The question is

1) If Free- / OpenBSD runs on them. I just installed ubuntu what they offer.

2) If you do not use it, they take it away. Better to pay and have no stress.
I know FreeBSD runs on Oracle cloud since I have 2 free tier instances there running since 13.1-RELEASE
 
Back
Top