|
| 1 | +# firewalla-serial-console |
| 2 | + |
| 3 | +## What is this project? |
| 4 | + |
| 5 | +This project is intended to provide a simple script that can be used as a |
| 6 | +one-step connection script so you don't need to remember the `ls -ltr ...` |
| 7 | +command and the `screen` command in order to pull up a serial console on your |
| 8 | +Firewalla Gold. |
| 9 | + |
| 10 | +Note that this project is not officially supported by either Firewalla and is |
| 11 | +provided free of charge as open source software. Firewalla and the contributors |
| 12 | +of this package provide no guarantees of compatibility or any other warranty if |
| 13 | +you choose to use this software on your machine or Firewalla Gold unit. |
| 14 | + |
| 15 | +## Usage |
| 16 | + |
| 17 | +```bash |
| 18 | +# Clone the repository on your Firewalla Gold |
| 19 | +git clone https://github.com/mrodrig/firewalla-serial-console.git |
| 20 | + |
| 21 | +# Navigate into the cloned directory and ensure the scripts are executable |
| 22 | +cd firewalla-serial-console |
| 23 | +chmod +x connect.sh |
| 24 | + |
| 25 | +# Connect to the serial console using your USB to RJ45 serial cable |
| 26 | +./connect.sh |
| 27 | + |
| 28 | +# Hit Enter a couple of times to get the login prompt. |
| 29 | +# When you're ready to disconnect, hit Ctrl + A + K or Ctrl + A + \ to exit |
| 30 | +``` |
| 31 | + |
| 32 | +## How does this work? |
| 33 | + |
| 34 | +This script simply automates the Firewalla Gold Console connection commands from |
| 35 | +the Mac and Linux sections of the |
| 36 | +[official documentation](https://help.firewalla.com/hc/en-us/articles/360045034153-Connecting-to-Firewalla-Gold-s-Console). |
| 37 | + |
| 38 | +This will use a terminal instance on your machine to provide a console to your |
| 39 | +Firewalla Gold so that you can login as though you were physically using a |
| 40 | +keyboard and monitor directly on the box. |
| 41 | + |
| 42 | +Once connected, you may need to hit `Enter` a couple of times to see the login |
| 43 | +prompt. You'll then be able to login as the `pi` user and can provide the |
| 44 | +password from your Firewalla App (Settings icon --> Advanced --> Configurations |
| 45 | +--> Serial Debug Console). You should then be presented with a shell prompt. |
| 46 | +After you're done, you can close the `screen` session by hitting either |
| 47 | +`Ctrl + A + K` to kill this session, or `Ctrl + A + \` to kill all sessions. |
| 48 | + |
| 49 | +## Contributing |
| 50 | + |
| 51 | +I'm open to pull requests that improve the script logic, performance, and |
| 52 | +reliability. |
| 53 | + |
| 54 | +## FAQ |
| 55 | + |
| 56 | +Q: What cable are you using with your Firewalla Gold? |
| 57 | + |
| 58 | +A: I wrote and verified this script using a [Cable Matters USB to RJ45 Console |
| 59 | +Cable with FTDI 6 Feet](https://www.amazon.com/gp/product/B078PVJ5ZQ). While |
| 60 | +this cable is rated for up to 250Kbps, I was only able to get it to work |
| 61 | +reliably with my Firewalla Gold on a Mac at 9600bps. I'll have to check what's |
| 62 | +going on, but I have been able to intermittently get it working with a slightly |
| 63 | +higher baud rate. |
| 64 | + |
| 65 | +Q: Why is your baud rate lower than what Firewalla lists? |
| 66 | + |
| 67 | +A: It could be the cable, or something about my Firewalla Gold. I'm not 100% |
| 68 | +sure and need to investigate more. |
0 commit comments