LKBEN11698: How to connect to OPNSense DEC2600 series security appliance with linux?
Symptom
You need to connect to the console and not the web interface.
Cause
This comes in handy sometimes.
Solution
On Linux you can use minicom to connect to the Opnsense appliance. To install minicom on Ubuntu, you can use the following command:
sudo apt install minicom
After installation you should configure minicom. This can be done with:
minicom -s
+-----[configuration]------+
| Filenames and paths |
| File transfer protocols |
| Serial port setup |
| Modem and dialing |
| Screen and keyboard |
| Save setup as dfl |
| Save setup as.. |
| Exit |
| Exit from Minicom |
+--------------------------+
You probably need to change serial port setup to /dev/ttyUSB0. You can have a look at the syslog to make sure you have the right tty device.
dmesg |grep tty
[ 0.129813] printk: console [tty0] enabled
[ 2145.022079] usb 1-9: xr_serial converter now attached to ttyUSB0
With lsusb you can check if the device is connected. Search for Exar Corp. XR21B1411, which is the name of the UART used on the mainboard.
+-----------------------------------------------------------------------+
| A - Serial Device : /dev/ttyUSB0 |
| B - Lockfile Location : /var/lock |
| C - Callin Program : |
| D - Callout Program : |
| E - Bps/Par/Bits : 115200 8N1 |
| F - Hardware Flow Control : Yes |
| G - Software Flow Control : No |
| H - RS485 Enable : No |
| I - RS485 Rts On Send : No |
| J - RS485 Rts After Send : No |
| K - RS485 Rx During Tx : No |
| L - RS485 Terminate Bus : No |
| M - RS485 Delay Rts Before: 0 |
| N - RS485 Delay Rts After : 0 |
| |
| Change which setting? |
+-----------------------------------------------------------------------+
Make sure you have set the Baudrate to 115200 8N1. (this is the default) Leave the menu with ESC and safe the configuration with "Save setup as..".
To connect to the device, you start minicon with the configuration:
minicom <your_configuration_filename>
You should be able to connect to your appliance.
Have fun.
Disclaimer:
The information provided in this document is intended for your information only. Lubby makes no claims to the validity of this information. Use of this information is at own risk!About the Author
Author:
- Keskon GmbH & Co. KGWim Peeters is electronics engineer with an additional master in IT and over 30 years of experience, including time spent in support, development, consulting, training and database administration. Wim has worked with SQL Server since version 6.5. He has developed in C/C++, Java and C# on Windows and Linux. He writes knowledge base articles to solve IT problems and publishes them on the Lubby Knowledge Platform.
Latest update: 13/02/2024