SOLVED IPtables Down Raspberry Pi 2

Joined
Feb 13, 2011
Messages
330
Reaction score
12
Asterisk 13.7.2 + Incredible GUI 12.0.39
Incredible PBX 13-12.5 for Raspberry Pi 2

Everything is Working fine and in green the only thing in red is iptables

root@raspberrypi:~ $ iptables-restart
[....] Restarting netfilter-persistent (via systemctl): netfilter-persistent.ser[ ok.
No IPtables problems found.
IPtables now running.

Any ideas ?

root@raspberrypi:~ $ iptables -nL
Chain INPUT (policy ACCEPT)
target prot opt source destination
fail2ban-ssh tcp -- 0.0.0.0/0 0.0.0.0/0 multiport dports 22
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain fail2ban-ssh (1 references)
target prot opt source destination
RETURN all -- 0.0.0.0/0 0.0.0.0/0

I already restarted the raspberry but no luck.

This seems to happened after the last update I perform to the machine

Thanks !!
 
Joined
Feb 13, 2011
Messages
330
Reaction score
12
Hi Ward

The regular update when you log into the machine through ssh

"This update utility goes to IncrediblePBX.com to retrieve the latest updates.
We test updates before release, but NO WARRANTY EXPRESS OR IMPLIED IS PROVIDED."

Thanks in advance
 
Joined
Feb 13, 2011
Messages
330
Reaction score
12
I erased all the FQDN entries but nothing, Iptables still showing as DN on the status page , Any ideas ?
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,199
Reaction score
5,218
There should be a file called: /etc/iptables/rules.v4.ubuntu14. You can copy it to /etc/iptables/rules.v4. Then edit rules.v4 and look at the end for a section like this:
Code:
-A INPUT -s 8.8.4.4 -j ACCEPT
-A INPUT -s 8.8.8.8 -j ACCEPT
-A INPUT -s 74.86.213.25 -j ACCEPT

Change those 3 IP addresses to the IP addresses of your workstation, your server, and any other IP address you want to whitelist. Then save the file.

Now restart IPtables: iptables-restart
 
Last edited:

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,199
Reaction score
5,218
Be sure to verify that the rules have been activated: iptables -nL
 

Members online

No members online now.

Forum statistics

Threads
25,809
Messages
167,745
Members
19,239
Latest member
dbradford
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