Getting started:
Related tutorials:
| #include <FS.h> | |
| #include <ESP8266WiFi.h> | |
| #include <WiFiClientSecure.h> | |
| #include <PubSubClient.h> | |
| #include <time.h> | |
| // Insert your FQDN of your MQTT Broker | |
| #define MQTT_SERVER "mqtt.srvx1.local" | |
| const char* mqtt_server = MQTT_SERVER; |
Getting started:
Related tutorials:
http://tinkerman.cat/rpi3_iot_server.pdf (Catalan)
| const int redPin = 11; | |
| const int greenPin = 10; | |
| const int bluePin = 9; | |
| void setup() { | |
| // Start off with the LED off. | |
| setColourRgb(0,0,0); | |
| } | |
| void loop() { |
| version: "3" | |
| services: | |
| homeassistant: | |
| image: homeassistant/home-assistant | |
| ports: | |
| - "8123:8123" | |
| - "3218:3218" | |
| volumes: | |
| - /opt/docker/home-assistant:/config | |
| - /etc/localtime:/etc/localtime:ro |
| version: '2.1' | |
| services: | |
| grafana: | |
| container_name: grafana | |
| image: proxx/grafana-armv7 | |
| user: "1000" | |
| ports: | |
| - 3000:3000 | |
| volumes: | |
| - /opt/grafana:/etc/grafana:rw |
Published: 16 December 2022
Reference: https://docs.opnsense.org/manual/how-tos/wireguard-selective-routing.html
Goal: Set up one or more Wireguard connections from ProtonVPN on OPNsense, with policy based routing, and optional Killswitch.
I'm writing this guide first as a reference for my future self for when I inevitably forget how to do this, but also to help others out. I found there were not many guides on this specific configuration, particularly not with multiple concurrent connections, and these were some steps which were not at all obvious. I did begin with the guide in the official OPNsense documentation, but even that was missing info to make ProtonVPN work. If you are a pfSense user, it is very similar to OPNsense, and you should be able to follow along with some success, but I have not tested it myself.