OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • Hardware and Performance »
  • How to install OPNsense on a Netgate SG-5100 - USB console issues
« previous next »
  • Print
Pages: [1] 2

Author Topic: How to install OPNsense on a Netgate SG-5100 - USB console issues  (Read 13836 times)

EMTSU

  • Newbie
  • *
  • Posts: 22
  • Karma: 0
    • View Profile
How to install OPNsense on a Netgate SG-5100 - USB console issues
« on: October 17, 2018, 12:16:10 pm »
I am completely new to this world, so please bare with me / be kind :) I would like to install OPNsense on a Netgate SG-5100; can someone provide me the steps to achieve this please?
« Last Edit: October 17, 2018, 04:46:16 pm by EMTSU »
Logged

EMTSU

  • Newbie
  • *
  • Posts: 22
  • Karma: 0
    • View Profile
Re: How to install OPNsense on a Netgate SG-5100
« Reply #1 on: October 17, 2018, 03:07:14 pm »
I've managed to get OPNsense onto this box, but.............. the USB console port no longer works. I can see the device boot-up, but no longer receive a login prompt. This is what I have:

*** OPNsense: OPNsense 18.7.4 (amd64/OpenSSL) ***

 LAN (igb0)      -> v4: 192.168.x.x/24
 WAN (igb1)      -> v4: 192.168.x.x/24

 HTTPS: SHA256  {edited}
 SSH:   SHA256  {edited}
 SSH:   SHA256  {edited}
 SSH:   SHA256  {edited}

Does anyone know how I can resurrect it please?
« Last Edit: October 17, 2018, 03:15:24 pm by EMTSU »
Logged

pylox

  • Jr. Member
  • **
  • Posts: 50
  • Karma: 8
    • View Profile
    • WbaSec Solutions
Re: How to install OPNsense on a Netgate SG-5100
« Reply #2 on: October 17, 2018, 04:21:30 pm »
Hi EMTSU,

i had the same problem  with a NETGATE SG-4860, but maybe it will help you with your hardware:

https://forum.opnsense.org/index.php?topic=6998.msg30802#msg30802

regards pylox
Logged

EMTSU

  • Newbie
  • *
  • Posts: 22
  • Karma: 0
    • View Profile
Re: How to install OPNsense on a Netgate SG-5100
« Reply #3 on: October 17, 2018, 04:45:15 pm »
Hi pylox,

Thank you for taking the time to reply. Was your issue with a USB console port or a serial one? I'm apprehensive about following the instructions in the linked content, given it seems to relate to a traditional serial console port.
Logged

pylox

  • Jr. Member
  • **
  • Posts: 50
  • Karma: 8
    • View Profile
    • WbaSec Solutions
Re: How to install OPNsense on a Netgate SG-5100 - USB console issues
« Reply #4 on: October 17, 2018, 04:53:01 pm »
Hi EMTSU,

the SG-4860 has a USB console port.

regards pylox
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17705
  • Karma: 1618
    • View Profile
Re: How to install OPNsense on a Netgate SG-5100 - USB console issues
« Reply #5 on: October 17, 2018, 04:53:30 pm »
Under System: Settings: Administration you can find "Use USB-based serial ports" which could help to get the USB console back up.


Cheers,
Franco
Logged

EMTSU

  • Newbie
  • *
  • Posts: 22
  • Karma: 0
    • View Profile
Re: How to install OPNsense on a Netgate SG-5100 - USB console issues
« Reply #6 on: October 18, 2018, 09:35:01 am »
Thank you both.

franco: I'd already discovered and tried that setting, but still no joy. I will try the instructions in the linked post above.
Logged

EMTSU

  • Newbie
  • *
  • Posts: 22
  • Karma: 0
    • View Profile
Re: How to install OPNsense on a Netgate SG-5100 - USB console issues
« Reply #7 on: October 18, 2018, 09:39:22 am »
I have hit a hurdle already: I don't have any devices running FreeBSD, is there a workaround to mount the USB stick on a Windows PC?
Logged

EMTSU

  • Newbie
  • *
  • Posts: 22
  • Karma: 0
    • View Profile
Re: How to install OPNsense on a Netgate SG-5100 - USB console issues
« Reply #8 on: October 18, 2018, 11:36:48 am »
So far I have tried the following tools in an attempt to view the contents of the OPNsense USB stick, but my attempts have been unsuccessful:-

Ext2IFS
ufs2tools
ffsdrv
ufs explorer

I have another OPNsense box, which I've connected the USB upto, but I have not been able to mount the USB as the instructions below are regretfully beyond my Windows-only skills.

https://www.freebsd.org/doc/handbook/usb-disks.html
Logged

pylox

  • Jr. Member
  • **
  • Posts: 50
  • Karma: 8
    • View Profile
    • WbaSec Solutions
Re: How to install OPNsense on a Netgate SG-5100 - USB console issues
« Reply #9 on: October 18, 2018, 04:32:28 pm »
Hi EMTSU,

no problem...go to you other OPNsense and put the USB stick (with the OPNsense serial image)in.

Code: [Select]
# identify the usb stick (device)
camcontrol devlist
<TS128GMSA370 O1225G>              at scbus0 target 0 lun 0 (pass0,ada0)
<Generic Ultra HS-COMBO 1.98>      at scbus6 target 0 lun 0 (pass1,da0)
<JetFlash Transcend 8GB 8.07>      at scbus7 target 0 lun 0 (da1,pass2)

# in my case is /dev/da1 the USB stick
#
mount -t ufs /dev/da1 /mnt

# so now you can go to /boot at the USB stick
cd /mnt/boot

#edit the loader.conf.local (probably it will create a new one)
ee loader.conf.local
#an put the required lines in (some special properties for the netgate usb-serial interface)
hint.uart.0.flags=0x0
hint.uart.1.flags=0x10
comconsole_speed="115200"
comconsole_port="0x2F8"
console="comconsole"
kern.cam.boot_delay="10000"

#save & quit (ESC) and unmount
umount /mnt


Take the usb stick to the SG-5100 and boot with it...lets see what will happen...:-) When all is fine you should able to install OPNsense from USB stick (usb console)

When it will not work (the NETGATE SG-5100 is quite new), there are two possibilities:
- it will work only from FreeBSD 11.2 (OPNsense 19.1) because of some hardware incompatibilities
- or we have to check the pfsense serial image for changed parameters

Good luck !

regards pylox
« Last Edit: October 19, 2018, 08:40:15 pm by pylox »
Logged

EMTSU

  • Newbie
  • *
  • Posts: 22
  • Karma: 0
    • View Profile
Re: How to install OPNsense on a Netgate SG-5100 - USB console issues
« Reply #10 on: October 19, 2018, 02:01:11 pm »
I've hit a problem mounting the USB stick:

Code: [Select]
root@OPNsense:~ # camcontrol devlist
<CMI59CS2404-120 Q0330A0>          at scbus1 target 0 lun 0 (pass0,ada0)
<Kingston DataTraveler 2.0 PMAP>   at scbus2 target 0 lun 0 (da0,pass1)

root@OPNsense:~ # mount -t ufs /dev/da0p2 /mnt
mount: /dev/da0p2: No such file or directory
root@OPNsense:~ # mount -t ufs /dev/da0p1 /mnt
mount: /dev/da0p1: No such file or directory
root@OPNsense:~ # mount -t ufs /dev/da0p3 /mnt
mount: /dev/da0p3: No such file or directory

Where am I going wrong? This is the USB stick I used to install OPNsense on the Netgate.

Also, when it comes to "#save & quit (ESC) and unmount", is the command simply umount /mnt  to save AND quit?
« Last Edit: October 19, 2018, 02:12:12 pm by EMTSU »
Logged

pylox

  • Jr. Member
  • **
  • Posts: 50
  • Karma: 8
    • View Profile
    • WbaSec Solutions
Re: How to install OPNsense on a Netgate SG-5100 - USB console issues
« Reply #11 on: October 19, 2018, 08:38:15 pm »
Hi EMTSU,

aaargh, i'am so sorry...it was my fault.
I picked the wrong USB stick with a mfsBSD install image.

If your device is /dev/da0 so please use for the mount:
Code: [Select]
mount -t ufs /dev/da0 /mnt

Fixed in my older post.

regards pylox
« Last Edit: October 19, 2018, 08:41:02 pm by pylox »
Logged

EMTSU

  • Newbie
  • *
  • Posts: 22
  • Karma: 0
    • View Profile
Re: How to install OPNsense on a Netgate SG-5100 - USB console issues
« Reply #12 on: October 22, 2018, 04:09:45 pm »
Thank you pylox.

One last question: as I have already installed OPNsense on the Negate, as mentioned in my second post, is there a way for me to modify an existing loader.conf.local?
Logged

pylox

  • Jr. Member
  • **
  • Posts: 50
  • Karma: 8
    • View Profile
    • WbaSec Solutions
Re: How to install OPNsense on a Netgate SG-5100 - USB console issues
« Reply #13 on: October 22, 2018, 05:13:26 pm »
Hi EMTSU,

yes, you can do/try it too.

Please, don't be frustrated if it will not work...Maybe OPNsense 18.7/FreeBSD 11.1 is not fully compatible with the new hardware.

regards pylox

 
Logged

jackman4

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
    • View Profile
Re: How to install OPNsense on a Netgate SG-5100 - USB console issues
« Reply #14 on: February 15, 2023, 11:00:28 pm »
HI friends.

Is it possible to necrobump this thread as the initial question is still unanswered:

How to install opnsense on this appliance ?

I mean technically is there any guide or howto ? 

Thank you good fellows and long live to opnsense !
Logged

  • Print
Pages: [1] 2
« previous next »
  • OPNsense Forum »
  • English Forums »
  • Hardware and Performance »
  • How to install OPNsense on a Netgate SG-5100 - USB console issues
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2