Page 1 of 1

Configuration of IPtables-can't register sip trunk

PostPosted: Fri Aug 17, 2012 1:35 am
by scenarist
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

Re: Configuration of IPtables-can't register sip trunk

PostPosted: Tue Aug 21, 2012 5:18 pm
by Acidshock
I dont see that rule in there but maybe its happening before the other rules?