OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • OPNsense Command Prompt
« previous next »
  • Print
Pages: [1]

Author Topic: OPNsense Command Prompt  (Read 15767 times)

bimmerdriver

  • Full Member
  • ***
  • Posts: 159
  • Karma: 14
    • View Profile
OPNsense Command Prompt
« on: March 13, 2019, 02:50:43 am »
Does OPNsense have a command prompt, like pfSense Diagnostics / Command Prompt?
Logged

fabian

  • Hero Member
  • *****
  • Posts: 2769
  • Karma: 200
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: OPNsense Command Prompt
« Reply #1 on: March 13, 2019, 08:10:37 am »
yes but only via SSH / RS232 / VGA - not in the web interface
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17703
  • Karma: 1615
    • View Profile
Re: OPNsense Command Prompt
« Reply #2 on: March 13, 2019, 01:57:12 pm »
Hi,

Was removed a long time ago due to security concerns.


Cheers,
Franco
Logged

bimmerdriver

  • Full Member
  • ***
  • Posts: 159
  • Karma: 14
    • View Profile
Re: OPNsense Command Prompt
« Reply #3 on: March 14, 2019, 01:15:04 am »
I was asking because neither the console nor the ssh are working. I will revert to a previously saved checkpoint.
Logged

fabian

  • Hero Member
  • *****
  • Posts: 2769
  • Karma: 200
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: OPNsense Command Prompt
« Reply #4 on: March 14, 2019, 05:53:00 am »
you should check if the console is correctly configured (for example VGA when using RS232)
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17703
  • Karma: 1615
    • View Profile
Re: OPNsense Command Prompt
« Reply #5 on: March 14, 2019, 08:25:15 am »
That's odd. What does "not working mean here" ? Console unresponsive, no login prompt, auth doesn't work?
Logged

bimmerdriver

  • Full Member
  • ***
  • Posts: 159
  • Karma: 14
    • View Profile
Re: OPNsense Command Prompt
« Reply #6 on: March 15, 2019, 02:36:49 am »
Quote from: franco on March 14, 2019, 08:25:15 am
That's odd. What does "not working mean here" ? Console unresponsive, no login prompt, auth doesn't work?
Auth not working on both. This was after updating OPNsense 19.7.a_272-amd64. I went back to that version using the saved checkpoint. I didn't report it, because, well, https://forum.opnsense.org/index.php?topic=11540.msg54326#msg54326.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17703
  • Karma: 1615
    • View Profile
Re: OPNsense Command Prompt
« Reply #7 on: March 15, 2019, 07:17:05 am »
I'm sorry, this was frustration speaking over missing dependencies on "make upgrade" alone. New packages need to be built from the ports tree or waited for in the package repos. Functional bugs in the code should always be raised. Sorry for not being clear.

How do you "make upgrade" ? Only this one? It may be that you're missing out on newer packages. The full sequence would be:

# opnsense-update; make upgrade

Maybe before issuing try to see what version pam_opnsense is:

# pkg query %v pam_opnsense

If it's still 17.1(_1) then it may be this issue you're seeing, you need the package at 19.1 at least.


Cheers,
Franco
« Last Edit: March 15, 2019, 08:20:23 am by franco »
Logged

bimmerdriver

  • Full Member
  • ***
  • Posts: 159
  • Karma: 14
    • View Profile
Re: OPNsense Command Prompt
« Reply #8 on: March 16, 2019, 12:30:15 am »
Quote from: franco on March 15, 2019, 07:17:05 am
I'm sorry, this was frustration speaking over missing dependencies on "make upgrade" alone. New packages need to be built from the ports tree or waited for in the package repos. Functional bugs in the code should always be raised. Sorry for not being clear.

How do you "make upgrade" ? Only this one? It may be that you're missing out on newer packages. The full sequence would be:

# opnsense-update; make upgrade

Maybe before issuing try to see what version pam_opnsense is:

# pkg query %v pam_opnsense

If it's still 17.1(_1) then it may be this issue you're seeing, you need the package at 19.1 at least.


Cheers,
Franco
Thank you for your reply. I know you're busy and you were particularly busy with the kernel issue, so no apology necessary.

I updated by using opnsense-code core; make upgrade.

Just to see if the login issue would return, I did the same thing. It's still there. The version is OPNsense 19.7.a_347-amd64.

Using the console, the error is:
sh: /usr/local/sbin/opnsense-auth: not found
Login incorrect

Using ssh, the error is:

login as: root
Using keyboard-interactive authentication.
Password for root@OPNsense.localdomain:
Access denied

I returned to the checkpoint and tried again.

root@OPNsense:~ # pkg query %v pam_opnsense
17.1

I guess that's the problem, caused by the way I was updating.

I updated again using opnsense-update; make upgrade.

root@OPNsense:~ # pkg query %v pam_opnsense
19.1.3

The problem is fixed. Thanks very much for the help.
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • OPNsense Command Prompt
 

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