Install OPNsense
Last updated on
After creating the .env file, it must be loaded, then the Terraform Script can be run.
- Get a Service Account Key from the Service account documentation and save the output as JSON into the
secrets.jsonfile (overwrite all the content in the file). - Run Terraform:
Terminal window terraform init # Just the first timeterraform apply - After executing these commands you are able to login to the WebUI via the FloatingIP on port 443 (https) and login with the
admin:STACKIT123!credentials.
Default OPNsense Settings
Section titled “Default OPNsense Settings”To start right away with your OPNsense Appliance we introduced the following default settings.
Interface Mapping: - The first interface vtnet0 is bound to WAN - The second interface vtnet1 is bond to LAN
Firewall - To get to the WebUI we added a firewall rule that allow access from all wan IPs (It is recommended to change this after the first setup). - Disabled the HTTP Referrer check
NAT: Outbound NAT rule to allow the LAN network to get internet access.
Admin Password: Changed the default password for the admin user