QUESTION add-ip function does not work on Centos 6.7 platform

SMTC

Member
Joined
Jan 22, 2009
Messages
190
Reaction score
13
The add-ip function for IPTABLES makes a call to "service iptables-persistent" which does not exist on the platform or in the IncrediblePBX13-12.2-Centos.tar.gz distro.

This results in an error and the IP is not added.

The "status" command also flashes an "unrecognized service" message prior to loading the GUI status display.
 

wa4zlw

Member
Joined
Feb 14, 2008
Messages
845
Reaction score
22
I reported that a few weeks ago. I've been using Webmin to make changes for now.

leon
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,202
Reaction score
5,221
Try running this command and then try add-ip again. Let me know if it fixes things:

Code:
ln -s /etc/rc.d/init.d/iptables /etc/rc.d/init.d/iptables-persistent
 

wa4zlw

Member
Joined
Feb 14, 2008
Messages
845
Reaction score
22
Hey Ward: Nope didn't fix it. here is the output of running add-ip

root@pbx:~ $ ./add-ip test 24.115.112.231 1
add-ip (c) Copyright 2012-2014, Ward Mundy & Associates, LLC
This script modifies critical security files on your server.
This script opens complete SIP and IAX server access to your
server for this IP address: 24.115.112.231
SIP or IAX activity from this address may damage your server!

BY PROCEEDING, YOU AGREE TO ASSUME ALL RISKS FROM PROPER OR
IMPROPER FUNCTIONING OF THIS SOFTWARE, WHETHER INTENTIONAL OR NOT.
ABSOLUTELY NO WARRANTIES, EXPRESS OR IMPLIED, ARE PROVIDED
INCLUDING FITNESS FOR PARTICULAR USE AND MERCHANTABILITY.
YOU ALONE ARE RESPONSIBLE FOR DETERMINING WHETHER THIS
IPTABLES SECURITY SOFTWARE WILL MEET YOUR NEEDS AND EXPECTATIONS!
THE SOFTWARE IS PROVIDED AS IS. EXAMINE THE SCRIPT CAREFULLY BEFORE
PROCEEDING! PROCEED ONLY IF YOUR AGREE TO ALL OF THESE TERMS OF USE.

To proceed at your own risk, press Enter. Otherwise, Ctrl-C to abort.
IP: 24.115.112.231
The following services are available for activation with 24.115.112.231:
0 - ALL Services
1 - SIP (UDP)
2 - SIP (TCP)
3 - IAX
4 - Web
5 - WebMin
6 - FTP
7 - t*f*t*p
8 - SSH
9 - FOP
Enter the services desired by number. Separate entries with commas.
For example: 1,4 would activate standard UDP SIP plus web access.

0

The following whitelisted services were requested for 24.115.112.231:
ALL Services
IP address successfully added to WhiteList.

To display current iptables rules in effect for this IP address, press Enter.
The following iptables rules now are in effect for 24.115.112.231:
You have new mail in /var/spool/mail/root
WARNING: Always run Incredible PBX behind a secure hardware-based firewall.
root@pbx:~ $
 

wa4zlw

Member
Joined
Feb 14, 2008
Messages
845
Reaction score
22
CORRECTION DID WORK FUMBLE FINGERS HERE

sorry did the command wrong Leon
 

Members online

Forum statistics

Threads
25,812
Messages
167,767
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