SOLVED Travelin Man (tm) on RentPBX

Rrrr

Tink
Joined
May 28, 2009
Messages
343
Reaction score
25
Took the plunge today and got Incredible PBX with ubuntu 14.4

I am careful with security so I want to copy/paste my own, tested iptable rules to the new system.
(reason is I have many rules and need to correct some rules already in the new system, such as:
add port 5010 for Anveo ip addresses
add sip.ap.anveo.com (its a new anveo pop)
add a few more.)

However, I cannot find the iptables file where I can edit them, like I did with tm3 on the BBB in /etc/network/iptables.
- /root/secure-iptables ain't there, but add-fqdn, add-ip, del-acct are.
- /etc/sysconfig/iptables does not exist
- webmin seems to use /var/lib/iptables/active, but I cannot reach that file

I guess I am mixing up tm3 and tm4 and system version information.
Where is the iptable rules file?

Thanks
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
For IPv4, it's /etc/iptables/rules.v4
For IPv6, it's /etc/iptables/rules.v6

You do know you can add the new rules using add-ip and add-fqdn thereby preserving the TM3 environment. But you can manually adjust things as well. You obviously know the risks.

Be sure to use iptables-restart to check your new settings for errors. Otherwise, you may end up with IPtables not running at all.
 

directionpointer

New Member
Joined
May 27, 2013
Messages
18
Reaction score
6
Is there a reason that TM3
Code:
./add-fqdn "NAME HERE" "FQDN HERE"
is adding the fqdn to the "/etc/iptables/rules.v4"?

This is something that IPtables immediately is crowing about......
The following services have been enabled for "FQDN HERE":
SIP (UDP)
If there's an error in enabled services, run del-acct and try again.

******** 10-SECOND WARNING ALERT ***********
IPtables FQDN problem on line: 125
The unresolvable FQDN is `"FQDN HERE".
This rule will be temporarily disabled to allow IPtables to start.
Check and correct line 125 in /etc/iptables/rules.v4.
******** 10-SECOND WARNING ALERT ***********

* Loading iptables rules... * IPv4... * IPv6... [ OK ]
IPtables problems noted above were temporarily fixed.
Fix the problems identified in /etc/iptables/rules.v4
IPtables now running without the offending rules(s).

To display current iptables rules in effect for this FQDN, press Enter.

Is there something I need to change in the code to make this look-up the IP address and add that to the "/etc/iptables/rules.v4" instead.

./ipchecker is finding updates to the IPaddress and is updating them to the "FQDN HERE".iptables file; but then ./ipchecker is not updating that IP address to "/etc/iptables/rules.v4"

System Specs are
Incredible PBX 13-12.3 for Ubuntu 14 on Digital Ocean

Asterisk: UP Apache: UP MySQL: UP
SendMail: UP IPtables: UP SSH: UP
LAN port: UP Fail2Ban: UP Webmin: UP
GV OAUTH: UP PortKnock: UP NR VPN: UP
FaxGetty: DN IAX Modem: DN HylaFax: DN

RAM: "Ubuntu 14.04.5" Disk:983MB

Asterisk 13.16.0 Incredible GUI 12.0.30

Any ideas would be great, and thank you for any assistance!
 

Members online

No members online now.

Forum statistics

Threads
25,782
Messages
167,509
Members
19,202
Latest member
pbxnewguy
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