Changeset 87


Ignore:
Timestamp:
06/07/06 19:01:39 (9 years ago)
Author:
root
Message:

Snipplet about VOIP from Brad Skiff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • floppyfw/scripts/firewall.ini

    r58 r87  
    170170fi 
    171171 
     172# 
     173# Forwarding SIP and VoIP rtp ports for PHONE_IP in config 
     174# 
     175if [ -n $PHONE_IP ] && [ -n $INTPORTS ] && [ -n $VOIPPORTS ] 
     176then 
     177 for a in $INTPORTS 
     178  do 
     179   iptables -A PREROUTING -t nat -p UDP -d ${OUTSIDE_IP} --dport $a -j DNAT --to ${PHONE_IP}:$a 
     180   iptables -A FORWARD -p UDP -d ${PHONE_IP} --dport $a -o ${INSIDE_DEVICE} -j ACCEPT 
     181  done 
     182 for a in $VOIPPORTS 
     183  do 
     184   iptables -A PREROUTING -t nat -p UDP -d ${OUTSIDE_IP} --dport $a -j DNAT --to ${PHONE_IP}:$a 
     185   iptables -A FORWARD -p UDP -d ${PHONE_IP} --dport $a -o ${INSIDE_DEVICE} -j ACCEPT 
     186  done 
     187fi 
     188 
     189 
    172190#  
    173191# Running extra scripts. 
Note: See TracChangeset for help on using the changeset viewer.