summaryrefslogtreecommitdiff
path: root/ipmasq/rules/A10dhcpcd.rul
diff options
context:
space:
mode:
Diffstat (limited to 'ipmasq/rules/A10dhcpcd.rul')
-rw-r--r--ipmasq/rules/A10dhcpcd.rul31
1 files changed, 31 insertions, 0 deletions
diff --git a/ipmasq/rules/A10dhcpcd.rul b/ipmasq/rules/A10dhcpcd.rul
new file mode 100644
index 0000000..5ac66a1
--- /dev/null
+++ b/ipmasq/rules/A10dhcpcd.rul
@@ -0,0 +1,31 @@
+# From Kalle Olavi Niemitalo <tosi@ees2.oulu.fi>:
+
+# Here's my /etc/ipmasq/rules/A10dhcpd.rul file in case you'd
+# like to add it in the examples directory. It's somewhat
+# stricter than /usr/doc/ipmasq/examples/Z99dhcpd.rul. Also, I'm
+# using priority A10 rather than Z99 because some of my other
+# rules would reject the packets.
+#
+# This works with dhcp_1.0.2-0.1 and the Windows 95 DHCP client.
+# The ipfwadm invocations are untested.
+
+if [ -n "$INTERNAL" ]; then
+ for i in $INTERNAL; do
+ ipnm_cache $i
+ case $MASQMETHOD in
+ ipfwadm)
+ $IPFWADM -I -i accept -S 0.0.0.0/0 67 -D 255.255.255.255/32 68 -W $i -P udp
+# $IPFWADM -O -i accept -S $IPOFIF/32 68 -D 255.255.255.255/32 67 -W $i -P udp
+ ;;
+ ipchains)
+ $IPCHAINS -I input -j ACCEPT -s 0.0.0.0/0 67 -d 255.255.255.255/32 68 -i $i -p udp
+# $IPCHAINS -I output -j ACCEPT -s $IPOFIF/32 68 -d 255.255.255.255/32 67 -i $i -p udp
+ ;;
+ iptables)
+ $IPTABLES -I INPUT -j ACCEPT -s 0.0.0.0/0 67 -d 255.255.255.255/32 68 -i $i -p udp
+# $IPTABLES -I OUTPUT -j ACCEPT -s $IPOFIF/32 68 -d 255.255.255.255/32 67 -i $i -p udp
+ ;;
+ esac
+ done
+fi
+
-rw-r--r--tags/ec/dc/20161017110002.2198F5FD@lxp5.free-owl.de/sys0
-rw-r--r--tags/ec/dc/20161017110002.2198F5FD@lxp5.free-owl.de/unread0
-rw-r--r--tags/ec/dc/20161229060002.344B140CF@lxp5.free-owl.de/sys0
-rw-r--r--tags/ec/dc/20161229060002.344B140CF@lxp5.free-owl.de/unread0
-rw-r--r--tags/ec/dc/20170227030229.856253221@lxp5.free-owl.de/sys0
-rw-r--r--tags/ec/dc/20170227030229.856253221@lxp5.free-owl.de/unread0
-rw-r--r--tags/ec/dc/201905281420.22121.gheskett@shentel.net/debian0
-rw-r--r--tags/ec/dc/201905281420.22121.gheskett@shentel.net/unread0
-rw-r--r--tags/ec/dc/20220811174211.212EB2183@xayide.jones.dk/jones0
-rw-r--r--tags/ec/dc/20220811174211.212EB2183@xayide.jones.dk/sys0
-rw-r--r--tags/ec/dc/20220811174211.212EB2183@xayide.jones.dk/unread0
-rw-r--r--tags/ec/dc/56785D2F.3090900@debian.org/debian0
-rw-r--r--tags/ec/dc/56785D2F.3090900@debian.org/inbox0
-rw-r--r--tags/ec/dc/56785D2F.3090900@debian.org/old0
-rw-r--r--tags/ec/dc/5d227fc7-6c3a-9a2d-f8d8-a68729228e55@allums.email/debian0
-rw-r--r--tags/ec/dc/E1ZZTtc-0003di-Op@debian-Aspire-M5-481G/debian0
-rw-r--r--tags/ec/dc/eb3ca454-30d4-b713-4780-8e28661b22e8@telia.com/debian0
-rw-r--r--tags/ec/dc/eb3ca454-30d4-b713-4780-8e28661b22e8@telia.com/unread0
24 files changed, 0 insertions, 0 deletions