Verified Commit 1f6889e9 authored by Elias Ojala's avatar Elias Ojala
Browse files

Added LXD page

parent d7e13f40
......@@ -8,6 +8,7 @@ permalink: /
* [Certbot](/certbot)
* [Wireguard](/wireguard)
* [Nginx](/nginx)
* [LXD](/lxd)
* [MySQL](/mysql)
* [Phusion Passenger](/phusion-passenger)
* [Useful tools](/server-linux/useful-tools)
......
---
title: LXD
permalink: /lxd/
---
[LXD website](https://linuxcontainers.org/lxd/)
## Port forwarding
```bash
sudo lxc config device add CONTAINER_NAME PROXY_NAME proxy listen=tcp:0.0.0.0:PUBLIC_PORT connect=tcp:localhost:CONTAINER_PORT
```
### Read more
```bash
sudo lxc config device add haproxy haproxy-80 proxy listen=tcp:0.0.0.0:80 connect=tcp:localhost:80
```
### Further reading
* [https://discuss.linuxcontainers.org/t/forward-port-80-and-443-from-wan-to-container/2042/2](https://discuss.linuxcontainers.org/t/forward-port-80-and-443-from-wan-to-container/2042/2)
\ No newline at end of file
......@@ -21,7 +21,7 @@ apt install linux-headers-$(uname -r) wireguard
### Raspbian 9
```
```bash
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install raspberrypi-kernel-headers
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment