All installation and configuration problems and questions
Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N
by scenarist » Fri Aug 17, 2012 1:35 am
I am little bit confused about simple configuration of iptables i.e I have successfully setup iptables firewall but still I can not to register sip trunk. When I delete this rule "iptables -A INPUT -s 0/0 -j drop " then I can register successfully sip trunk. This is mu etc/sysconfig/iptables
- Code: Select all
# Generated by iptables-save v1.3.5 on Fri Aug 17 08:02:36 2012
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [16347:1547869]
:fail2ban-ASTERISK - [0:0]
-A INPUT -j fail2ban-ASTERISK
-A INPUT -s 195.222.0.0/255.255.0.0 -j ACCEPT
-A INPUT -s 192.168.1.0/255.255.255.0 -j ACCEPT
-A INPUT -s 77.0.0.0/255.0.0.0 -j ACCEPT
-A INPUT -s 77.0.0.0/255.0.0.0 -p udp -m udp --dport 4569 -j ACCEPT
-A INPUT -s 77.0.0.0/255.0.0.0 -p udp -m udp --dport 5060 -j ACCEPT
-A INPUT -s 77.0.0.0/255.0.0.0 -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -s 77.0.0.0/255.0.0.0 -p udp -m udp --dport 80 -j ACCEPT
-A INPUT -s 77.72.169.128 -p udp -m udp --dport 5060 -j ACCEPT
-A INPUT -s 127.0.0.1 -j ACCEPT
-A INPUT -s 89.185.96.0/255.255.255.0 -j ACCEPT
-A INPUT -j DROP
-A INPUT -j LOG --log-prefix "DROP paketi" --log-level 7
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p tcp -m state --state RELATED,ESTABLISHED -j ACCEPT
-A fail2ban-ASTERISK -j RETURN
COMMIT
# Completed on Fri Aug 17 08:02:36 2012
Goautodial CE 2.1||Asterisk 1.4.39.1-vici||VERSION: 2.4-309a
BUILD: 110430-1642
Kernel Version: 2.6.18-238.9.1.el5.goPAE (SMP)
SIP trunk:15xsiptrunks|80 agents|7xserver
Model:7xIntel(R) Xeon(R) CPU E5520 @ 2.27GHz x16
CPU:2.27GHz|HDD:3*80GB|RAID 1|RAM:8GB
-
scenarist
-
- Posts: 102
- Joined: Mon May 23, 2011 2:53 am
by Acidshock » Tue Aug 21, 2012 5:18 pm
I dont see that rule in there but maybe its happening before the other rules?
VERSION: 2.14-698a | BUILD: 190207-2301 | Asterisk:13.24.1-vici | Vicibox 8.1.2
-
Acidshock
-
- Posts: 430
- Joined: Wed Mar 03, 2010 3:19 pm
Return to Support
Who is online
Users browsing this forum: Google [Bot] and 103 guests