From 8f81f50b3e425db0ec9a24c66d895d677046268e Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Thu, 14 Feb 2002 02:53:00 +0000 Subject: ipmasq: Correct iptables portnumbers in dhcpd rule. --- ipmasq/rules/A10dhcpd.rul | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ipmasq') diff --git a/ipmasq/rules/A10dhcpd.rul b/ipmasq/rules/A10dhcpd.rul index dbc56c5..ff3cd29 100644 --- a/ipmasq/rules/A10dhcpd.rul +++ b/ipmasq/rules/A10dhcpd.rul @@ -22,8 +22,8 @@ if [ -n "$INTERNAL" ]; then $IPCHAINS -A output -j ACCEPT -s $IPOFIF/32 67 -d 255.255.255.255/32 68 -i ${i%%:*} -p udp ;; netfilter) - $IPTABLES -A INPUT -j ACCEPT -s 0.0.0.0/32 68 -d 255.255.255.255/32 67 -i ${i%%:*} -p udp - $IPTABLES -A OUTPUT -j ACCEPT -s $IPOFIF/32 67 -d 255.255.255.255/32 68 -o ${i%%:*} -p udp + $IPTABLES -A INPUT -j ACCEPT -s 0.0.0.0/32 -d 255.255.255.255/32 -i ${i%%:*} -p udp --source-port 68 --destination-port 67 + $IPTABLES -A OUTPUT -j ACCEPT -s $IPOFIF/32 -d 255.255.255.255/32 -o ${i%%:*} -p udp --source-port 67 --destination-port 68 ;; esac done -- cgit v1.2.3