LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 12-18-2005, 09:15 AM   #1
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Rep: Reputation: 60
how to tell what ports are being blocked?


I am having trouble recieving phone calls comming into my firewall into a DMZ. How can I tell from looking at my logs or using a utility what ports are being blocked from incomming calls? If I reboot the VOIP modem and the firewall wall script, I can recieve only one phone call and then if some calls after the first call then it is blocked! help?

Last edited by metallica1973; 12-18-2005 at 09:17 AM.
 
Old 12-18-2005, 10:18 AM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
What kind of VOIP system are you using? What is your firewall script?
 
Old 12-18-2005, 07:19 PM   #3
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Original Poster
Rep: Reputation: 60
Matir, the man, I am using lingo (voip provider) on a mediatrix 2102 VOIP modem using SIP. I have also compiled SIP support in my kernel(from netfilter.com) It works but I can t recieve incomming calls! here are my rules:

#IP's for DMZ to VOIP
DMZ_NETWORK="192.168.2.0"
DMZ_IFACE="eth1"
DMZ_IP="192.168.2.1"
DMZ_VOIP_PHONE="192.168.2.120"

##Public services running ON FIREWALL-BOX (comment out to activate):

#- From DMZ Interface to DMZ firewall IP

$IPTABLES -A INPUT -i $DMZ_IFACE -d $DMZ_IP -p ALL -j ACCEPT

#$IPTABLES -A INPUT -i $DMZ_IFACE -d $DMZ_IP -p udp --dport 13456 -j #ACCEPT

#$IPTABLES -A INPUT -i $DMZ_IFACE -d $DMZ_IP -p udp --dport #10000:20000 -j ACCEPT

### Forward Section ########

#$IPTABLES -A FORWARD -o $EXTIF -p udp --dport 1024:1030 -j ACCEPT
#$IPTABLES -A FORWARD -o $EXTIF -p udp --dport 5050:5060 -j ACCEPT
#$IPTABLES -A FORWARD -o $EXTIF -p udp --dport 10000:20000 -j ACCEPT
$IPTABLES -A FORWARD -i $EXTIF -o $DMZ_IFACE -m state --state ESTABLISHED,RELATED -j ACCEPT
$IPTABLES -A FORWARD -i $INTIF -o $DMZ_IFACE -j ACCEPT
$IPTABLES -A FORWARD -i $DMZ_IFACE -o $INTIF -m state --state ESTABLISHED,RELATED -j ACCEPT

#DMZ_VOIP_PHONE -Forwarding

$IPTABLES -I FORWARD -i $EXTIF -p udp -o DMZ_IFACE -d $DMZ_VOIP_PHONE --dport 5060 -j ACCEPT
$IPTABLES -I FORWARD -i $EXTIF -p udp -o DMZ_IFACE -d $DMZ_VOIP_PHONE --dport 13456 -j ACCEPT
# $IPTABLES -I FORWARD -i $EXTIF -p udp -o DMZ_IFACE -d $DMZ_VOIP_PHONE --dport 10000:20000 -j ACCEPT

## PREROUTING ## ###### Enable IP Destination NAT for DMZ zone #######

$IPTABLES -t nat -A PREROUTING -p udp -i $EXTIF -d $DMZ_IP --dport 5060 -j DNAT --to-destination $DMZ_VOIP_PHONE

$IPTABLES -t nat -A PREROUTING -p udp -i $EXTIF -d $DMZ_IP --dport 13456 -j DNAT --to-destination $DMZ_VOIP_PHONE

#$IPTABLES -t nat -A PREROUTING -p udp -i $EXTIF -d $DMZ_IP --dport 10000:20000 -j DNAT --to-destination $DMZ_VOIP_PHONE

## POSTROUTING ####DMZ VOIP PHONE #######

$IPTABLES -t nat -A POSTROUTING -o $EXTIF -j SNAT --to-source 192.168.2.120

Last edited by metallica1973; 12-18-2005 at 11:34 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FC4 Ports Blocked dokkah Fedora 2 11-18-2005 05:38 AM
Ports Blocked spaceballs Slackware 4 05-02-2005 09:42 PM
I'm pulling my hair out. All ports but 80 blocked. t3kn0lu5t Linux - Networking 9 10-02-2003 12:41 PM
getting by blocked ports niehls Linux - Networking 1 07-06-2003 03:00 PM
PORTS 80 and 8080 BLOCKED! vbp6us Linux - General 8 10-12-2002 10:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 12:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration