summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2002-02-14 02:53:00 +0000
committerJonas Smedegaard <dr@jones.dk>2002-02-14 02:53:00 +0000
commit8f81f50b3e425db0ec9a24c66d895d677046268e (patch)
tree4f11b7671dda02bcda01e6d66dea50b4ad68ef0a
parent59d43ddd03c6db53de8c51251b085e4b1e0c8682 (diff)
ipmasq: Correct iptables portnumbers in dhcpd rule.
-rw-r--r--ipmasq/rules/A10dhcpd.rul4
1 files changed, 2 insertions, 2 deletions
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