TIPS Hardware Firewall Warning Won't Go Away

rossiv

Guru
Joined
Oct 26, 2008
Messages
2,624
Reaction score
139
This one's got me stumped. I just spun up a new 2.0.6.4.4 Green image with FreePBX 2.11 and Incredible 4.5, and after EVERY command I enter in SSH, I get a nag message about running Incredible PBX behind a secure hardware-based firewall.
I've never noticed this before on any install, so it must be new. It is 1:1 NAT'd through pfSense both inbound-NAT and outbound-NAT, but access is limited both by pfSense and TravelinMan/ipTables.
It initially appears after the Incredible PBX update script runs upon SSH login after 'status' auto-runs. Then after every "enter" whether or not a command is entered, it still displays.
Code:
                                     ┌────────────────────────SYSTEM INFORMATION───────────────────────────┐
                                     │  Asterisk   = ONLINE  | Dahdi     = ONLINE  | MySQL     = ONLINE    │  
                                     │  SSH        = ONLINE  | Apache    = ONLINE  | Iptables  = ONLINE    │  
                                     │  Fail2ban   = ONLINE  | Internet  = ONLINE  | Ip6Tables = ONLINE    │  
                                     │  Disk Free  = ADEQUATE| Mem Free  = ADEQUATE| NTPD      = ONLINE    │  
                                     │  SendMail   = ONLINE  | Samba     = OFFLINE | Webmin    = ONLINE    │  
                                     │  Ethernet0  = ONLINE  | Ethernet1 = N/A     | Wlan0     = N/A       │  
                                     │                                                                     │  
                                     │  PIAF Installed Version   = 2.0.6.4 under *KVM*                     │  
                                     │  FreePBX Version          = 2.11.0.11                               │  
                                     │  Running Asterisk Version = 11.5.1                                  │  
                                     │  Asterisk Source Version  = 11.5.1 MODIFIED                         │  
                                     │  Dahdi Source Version     = 2.7.0.1                                 │  
                                     │  Libpri Source Version    = 1.4.14                                  │  
                                     │  IP Address               = 192.168.1.63 on eth0                    │  
                                     │  Operating System         = CentOS release 6.4 (Final)              │  
                                     │  Kernel Version           = 2.6.32-358.6.2.el6.i686 - 32 Bit        │  
                                     │  Incredible Version       = 11.5                                    │  
                                     └─────────────────────────────────────────────────────────────────────┘  
                                                                                                              


WARNING: Always run Incredible PBX behind a secure hardware-based firewall.  
root@pbx:~ $ 
WARNING: Always run Incredible PBX behind a secure hardware-based firewall.  
root@pbx:~ $ 
WARNING: Always run Incredible PBX behind a secure hardware-based firewall.  
root@pbx:~ $ 
WARNING: Always run Incredible PBX behind a secure hardware-based firewall.  
root@pbx:~ $

Thoughts?
 

rossiv

Guru
Joined
Oct 26, 2008
Messages
2,624
Reaction score
139
That's a message Ward put in. It's normal when running Incredible.

I figured Ward or Tom put it in but it's so darn annoying. I am behind a firewall. :) I see it's intent but I would do it upon each login but not after every command.
 

tbrummell

Guru
Joined
Jan 8, 2011
Messages
1,275
Reaction score
339
^^^^^ + a million!

My eyes now seem to look right past it. I had to login to a box to see if it was still there...
 

rossiv

Guru
Joined
Oct 26, 2008
Messages
2,624
Reaction score
139
Yep, that's where I am now. I changed
Code:
#export PS1="WARNING: Always run Incredible PBX behind a secure hardware-based firewall.  \n\[$(tput setaf 2)\]\u@\h:\w $ \[$(tput sgr0)\]"
export " \n\[$(tput setaf 2)\]\u@\h:\w $ \[$(tput sgr0)\]"
But I lost some colors in the shell. Not all colors though. It did get rid of the message though.
 

rossiv

Guru
Joined
Oct 26, 2008
Messages
2,624
Reaction score
139
This works - colors stay too
Code:
#export PS1="WARNING: Always run Incredible PBX behind a secure hardware-based firewall.  \n\[$(tput setaf 2)\]\u@\h:\w $ \[$(tput sgr0)\]"
export PS1="$(tput setaf 2)\]\u@\h:\w $ \[$(tput sgr0)\]"
 

LesD

Member
Joined
Nov 8, 2009
Messages
408
Reaction score
15
Thanks for the fix. Problem still there with 3.6.5
 

lionheart

New Member
Joined
Apr 13, 2018
Messages
1
Reaction score
0
This works - colors stay too
Refined rossiv's code into this:
Code:
#export PS1="WARNING: Always run Incredible PBX behind a secure hardware-based firewall.  \n\[$(tput setaf 2)\]\u@\h:\w $ \[$(tput sgr0)\]"
export PS1="$(tput setaf 2)\u@\h:\w $ \[$(tput sgr0)\]"
 

Members online

No members online now.

Forum statistics

Threads
25,812
Messages
167,763
Members
19,241
Latest member
bellabos
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top