How to Connect a router to console, using a mac

command linefirewallrouterterminal

I just purchased a non-Apple router (a pfSense SG-1000 device by Netgate). As a contingency plan in the event I would forget my web interface password, to then save my bacon, I want to be able to connect it to console in spite of the fact I do not do Linux and equivalent. The advice I found on the device website seems rather complex:

Install an appropriate CP210x USB to UART Bridge VCP driver on my Mac;

Use a Terminal program (screen, or ZTerm, or cu, but not Terminal);

Use Terminal to locate the port and connect to it.

This could be old advice, prior to mac OS 10.12. Could be a Windows-equivalent, or Linux, set of instructions. To maintain my Mac on a low-entropy diet, I try to minimise specific software installations and try to minimize cases of using Terminal commands.

What would be the advice of serious Mac users?

What is the minimal number of dedicated software I must absolutely install?

What else do I really need to do? Can I avoid using Terminal?

Best Answer

I don't know if I am a "serious Mac user" but I do use my Mac "seriously".

The instructions you got fit pretty much all OSes (Windows, macOS, Linux). It just depends on the software that you use

What those instructions are telling you is to use an RS-232 connection to talk to the router. This type of maintenance has been around since at least the 1970s and predates macOS/OS X

The only "modern" difference is that they now recommend a USB to UART bridge, or in more common vernacular, a USB to Serial Adapter because modern computers haven't been shipping with RS-232 serial ports for a long, long time now (since USB became mainstream).

You won't need to install any software; you just need to use screen that is included with macOS. You must go through Terminal because

  1. screen only runs in Terminal
  2. you are connecting to the pfSense console (which is, in effect, another Terminal connected to a serial port)

What you would then do is connect to the console by issuing the command:

$ screen /dev/cu<USBdeviceName>

I currently don't have one attached to my Mac so I can't show you an exact name. Though, I do have FreeBSD on an old Dell workstation for this with dedicated RS-232 ports and my devices are /dev/cuca0 and /dev/cuca2. (OS X bases a lot of their inner working on BSD) You will have to see what the device gets named by listing out /dev.