dbailey: branch aadk r867 - /branches/aadk/scripts/networking.sh

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Thu May 3 12:50:44 MST 2007


Author: dbailey
Date: Thu May  3 14:50:43 2007
New Revision: 867

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=867
Log:
Added persistent option on dhcpcd and halved the timeout on the NAT connection tracking table for udp packets.

Modified:
    branches/aadk/scripts/networking.sh

Modified: branches/aadk/scripts/networking.sh
URL: http://svn.digium.com/view/asterisk-gui/branches/aadk/scripts/networking.sh?view=diff&rev=867&r1=866&r2=867
==============================================================================
--- branches/aadk/scripts/networking.sh (original)
+++ branches/aadk/scripts/networking.sh Thu May  3 14:50:43 2007
@@ -70,7 +70,7 @@
 	# If dhcp_wan is set from the gui
 	killall -9 dhcpcd 2> /dev/null
 	killall -9 dhcpcd.real 2> /dev/null
-	dhcpcd ${WAN_INTERFACE} &
+	dhcpcd -p ${WAN_INTERFACE} &
 else
 	echo "WAN interface is ${WAN_INTERFACE} WAN IP is ${IP_WAN} WAN subnet is ${SUBNET_WAN}"
 	echo "DNS config file is ${DNS_CONFIG}"
@@ -90,6 +90,8 @@
 NETWORK_LAN=`echo "${IP_LAN}" | cut -d '.' -f 1,2,3`
 iptables -t nat -A POSTROUTING -s ${NETWORK_LAN}.0/${SUBNET_LAN} -d 0.0.0.0/0 -j MASQUERADE
 echo 1 > /proc/sys/net/ipv4/ip_forward
+# Adjust NAT connection tracker table to drop udp after 15 seconds
+echo 15 > /proc/sys/net/ipv4/netfilter/ip_conntrack_udp_timeout
 echo "LAN network is ${NETWORK_LAN}"
 if [ "${DHCP_LAN}" != "off" ]; then
 	# Now we will edit /etc/udhcpd.conf



More information about the asterisk-gui-commits mailing list