Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Development and Code Review
(Moderator:
fabian
) »
Vagrant environment for OPNsense or plugin development
« previous
next »
Print
Pages: [
1
]
Author
Topic: Vagrant environment for OPNsense or plugin development (Read 3017 times)
Patrick M. Hausen
Hero Member
Posts: 6807
Karma: 572
Vagrant environment for OPNsense or plugin development
«
on:
March 30, 2021, 10:53:02 pm »
After two evenings of work I present a VM environment for development work in the OPNsense context.
The project uses Hashicorp's Vagrant and Oracle's VirtualBox. When you checkout and start the project you will be greeted with an OPNsense VM with two interfaces (WAN and LAN) and passwordless login via SSH and passwordless sudo.
I have relaxed the security a bit (compared with a production system). Vagrant uses port-forwarding to connect via SSH from the WAN interface, so I enabled SSH on all interfaces and created a floating firewall rule permitting access. The "box" as Vagrant calls it is behind the VirtualBox builtin NAT, so no connection from the outside is possible if your development system (Mac, Windows, Linux, ...) is reasonably secured.
https://github.com/punktDe/vagrant-opnsense
Feedback is of course always welcome. I would specifically appreciate success (or failure) reports from people running platforms other than Mac OS as their desktop.
Kind regards,
Patrick
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
Patrick M. Hausen
Hero Member
Posts: 6807
Karma: 572
Re: Vagrant environment for OPNsense or plugin development
«
Reply #1 on:
March 30, 2021, 11:09:37 pm »
In case someone is interested - the base Vagrant box I use to convert into an OPNsense appliance is generated by this project:
https://github.com/punktDe/vagrant-freebsd-boxbuilder
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Development and Code Review
(Moderator:
fabian
) »
Vagrant environment for OPNsense or plugin development