OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • Virtual private networks »
  • [Solved] Cant ssh into firewall when connected via wireguard
« previous next »
  • Print
Pages: [1]

Author Topic: [Solved] Cant ssh into firewall when connected via wireguard  (Read 130 times)

Omorgan

  • Newbie
  • *
  • Posts: 6
  • Karma: 1
    • View Profile
[Solved] Cant ssh into firewall when connected via wireguard
« on: May 13, 2022, 07:27:32 pm »
Hi,

Hopefully this is a 'simple' one....

I have wireguard set up in my opnsense, and it works... I have two peers who can connect, authenticate, and access LAN devices.

They can access the opnsense web gui, but they cannot establish an SSH session with the firewall. I have tested the ssh locally and it works.

What am I missing here?

The 'point' of this is to allow me to recover from a switch mis-configuration issue. Directly behind the opnsense firewall is an L3 managed switch from which all the LAN devices communicate. If I fat finger an ACL or other switch config (not an expert so learning as I go) I could knock out ALL access to LAN devices. So in those cases I can use WG to gain access to the opnsense, ssh into the opnsense and using a usb->RS232 adapter attached to the opnsense box and the switch console port undo/fix the switch mis-config. (Yes I'm doing potentially major config remotely, but needs must).

Any thoughts on why I cant access ssh of the opnsense from the WG peer, even when the same peer can access the web gui (putty just times out). I have it set to forward ALL peer traffic down vpn so that shouldn't be the issue either.

Thanks,

Owen.
« Last Edit: May 17, 2022, 05:06:32 am by Omorgan »
Logged

Omorgan

  • Newbie
  • *
  • Posts: 6
  • Karma: 1
    • View Profile
Re: Cant ssh into firewall when connected via wireguard
« Reply #1 on: May 17, 2022, 05:05:18 am »
Fixed.

Dumb user error........ I HAD added firewall rules for SSH on the wireguard interface. However, I neglected the fact that I had changed the SSH port number......

Dumb? Yes... very...
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 12580
  • Karma: 1074
    • View Profile
Re: [Solved] Cant ssh into firewall when connected via wireguard
« Reply #2 on: May 17, 2022, 08:54:46 am »
It happens to all of us. Glad you could solve it. :)


Cheers,
Franco
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • Virtual private networks »
  • [Solved] Cant ssh into firewall when connected via wireguard
 

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