xpipe-io / xpipe

Your entire server infrastructure at your fingertips
https://xpipe.io
Apache License 2.0
3.02k stars 81 forks source link

Unable to add PFSense #153

Closed paulharman closed 8 months ago

paulharman commented 8 months ago

Hi,

I'm struggling to add PFsense as a connection. When remoting on to it you don't get a shell but rather a menu system. Any ideas how I can add this?

Here's the output of the add window

`Shell did not start up in time: Netgate pfSense Plus - Serial: xxxx - Netgate Device ID: xxxx

Welcome to Netgate pfSense Plus 23.01-RELEASE (amd64) on pfSense

WAN (wan) -> igb1 -> v4/DHCP4: x.x.x.x/20 LAN (lan) -> igb0 -> v4: 192.168.0.1/24 OPT1 (opt1) -> em0 ->

0) Logout (SSH only) 9) pfTop 1) Assign Interfaces 10) Filter Logs 2) Set interface(s) IP address 11) Restart webConfigurator 3) Reset webConfigurator password 12) PHP shell + Netgate pfSense Plus tools 4) Reset to factory defaults 13) Update from console 5) Reboot system 14) Disable Secure Shell (sshd) 6) Halt system 15) Restore recent configuration 7) Ping host 16) Restart PHP-FPM 8) Shell

Netgate pfSense Plus - Serial: xxxx - Netgate Device ID: xxxx

Welcome to Netgate pfSense Plus 23.01-RELEASE (amd64) on pfSense

WAN (wan) -> igb1 -> v4/DHCP4: x.x.x.x/20 LAN (lan) -> igb0 -> v4: 192.168.0.1/24 OPT1 (opt1) -> em0 ->

0) Logout (SSH only) 9) pfTop 1) Assign Interfaces 10) Filter Logs 2) Set interface(s) IP address 11) Restart webConfigurator 3) Reset webConfigurator password 12) PHP shell + Netgate pfSense Plus tools 4) Reset to factory defaults 13) Update from console 5) Reboot system 14) Disable Secure Shell (sshd) 6) Halt system 15) Restore recent configuration 7) Ping host 16) Restart PHP-FPM 8) Shell

Netgate pfSense Plus - Serial: xxxx - Netgate Device ID: xxxx

Welcome to Netgate pfSense Plus 23.01-RELEASE (amd64) on pfSense

WAN (wan) -> igb1 -> v4/DHCP4: x.x.x.x/20 LAN (lan) -> igb0 -> v4: 192.168.0.1/24 OPT1 (opt1) -> em0 ->

0) Logout (SSH only) 9) pfTop 1) Assign Interfaces 10) Filter Logs 2) Set interface(s) IP address 11) Restart webConfigurator 3) Reset webConfigurator password 12) PHP shell + Netgate pfSense Plus tools 4) Reset to factory defaults 13) Update from console 5) Reboot system 14) Disable Secure Shell (sshd) 6) Halt system 15) Restore recent configuration 7) Ping host 16) Restart PHP-FPM 8) Shell

Netgate pfSense Plus - Serial: xxxx - Netgate Device ID: xxxx

Welcome to Netgate pfSense Plus 23.01-RELEASE (amd64) on pfSense

WAN (wan) -> igb1 -> v4/DHCP4: x.x.x.x/20 LAN (lan) -> igb0 -> v4: 192.168.0.1/24 OPT1 (opt1) -> em0 ->

0) Logout (SSH only) 9) pfTop 1) Assign Interfaces 10) Filter Logs 2) Set interface(s) IP address 11) Restart webConfigurator 3) Reset webConfigurator password 12) PHP shell + Netgate pfSense Plus tools 4) Reset to factory defaults 13) Update from console 5) Reboot system 14) Disable Secure Shell (sshd) 6) Halt system 15) Restore recent configuration 7) Ping host 16) Restart PHP-FPM 8) Shell

Netgate pfSense Plus - Serial: xxxx - Netgate Device ID: xxxx

Welcome to Netgate pfSense Plus 23.01-RELEASE (amd64) on pfSense

WAN (wan) -> igb1 -> v4/DHCP4: x.x.x.x/20 LAN (lan) -> igb0 -> v4: 192.168.0.1/24 OPT1 (opt1) -> em0 ->

0) Logout (SSH only) 9) pfTop 1) Assign Interfaces 10) Filter Logs 2) Set interface(s) IP address 11) Restart webConfigurator 3) Reset webConfigurator password 12) PHP shell + Netgate pfSense Plus tools 4) Reset to factory defaults 13) Update from console 5) Reboot system 14) Disable Secure Shell (sshd) 6) Halt system 15) Restore recent configuration 7) Ping host 16) Restart PHP-FPM 8) Shell

0END

C:\Users\x>`

crschnick commented 8 months ago

This is probably the same problem as in https://github.com/xpipe-io/xpipe/issues/89, but it was only fixed for opnsense as I only had access to that. I should be able to adapt the fix to support pfsense as well

crschnick commented 8 months ago

Can you try whether the latest PTB version works for you: https://github.com/xpipe-io/xpipe-ptb ? That would save me a lot of time setting up pfsense just to test this.

crschnick commented 8 months ago

This should be fixed in the latest release

paulharman commented 8 months ago

Sorry I didn't see your message before. Unfortunately it doesn't seem to be working, same issue on 1.7.13

Shell did not start up in time as we did not receive any response. In case the shell is just slow, you can try increasing the timeout value in the settings.

Netgate pfSense Plus - Serial: xxxx - Netgate Device ID: xxxxx

Welcome to Netgate pfSense Plus 23.01-RELEASE (amd64) on pfSense

WAN (wan) -> igb1 -> v4/DHCP4: x.x.x.x/20 LAN (lan) -> igb0 -> v4: 192.168.0.1/24 OPT1 (opt1) -> em0 ->

0) Logout (SSH only) 9) pfTop 1) Assign Interfaces 10) Filter Logs 2) Set interface(s) IP address 11) Restart webConfigurator 3) Reset webConfigurator password 12) PHP shell + Netgate pfSense Plus tools 4) Reset to factory defaults 13) Update from console 5) Reboot system 14) Disable Secure Shell (sshd) 6) Halt system 15) Restore recent configuration 7) Ping host 16) Restart PHP-FPM 8) Shell

crschnick commented 8 months ago

Can you start xpipe in debug mode and send me the output when it connects somehow? You can find that under Settings -> Troubleshoot

paulharman commented 8 months ago

No problem. Where is the output saved please?

crschnick commented 8 months ago

It is only printed in the terminal as it might contain sensitive information, so it's not stored anywhere.

paulharman commented 8 months ago

Sorry what terminal? I am on windows

crschnick commented 8 months ago

If you successfully launch it in debug mode, there should be a terminal window opening up, e.g. cmd or windows terminal depending on what you use.

crschnick commented 8 months ago

Closing this as completed