diff options
-rw-r--r-- | Makefile | 7 | ||||
-rw-r--r-- | README.md | 6 | ||||
-rw-r--r-- | init.d/mtu1280 | 6 | ||||
-rw-r--r-- | mtu1280d.c (renamed from mtu1280.c) | 0 | ||||
-rwxr-xr-x | upstart/mtu1280 | 2 |
5 files changed, 14 insertions, 7 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..132420e --- /dev/null +++ b/Makefile @@ -0,0 +1,7 @@ + +mtu1280: mtu1280d.c + gcc -o mtu1280 mtu1280d.c -lnetfilter_queue + +install: mtu1280d + /usr/bin/install -c mtu1280d /usr/sbin/mtu1280d +
\ No newline at end of file @@ -1,8 +1,8 @@ -mtu1280 - emulates serving via a low MTU IPv6 tunnel +mtu1280d - emulates serving via a low MTU IPv6 tunnel ---------------------------------------------------- This program is will generate ICMPv6 "Packet Too Big" -responses with an MTU of 1280. mtu1280 will connect to +responses with an MTU of 1280. mtu1280d will connect to a netfilter_queue socket, listening for packets; and respond to all packets sent to that queue. @@ -50,7 +50,7 @@ iptables-restore /etc/iptables/rules.v4 ip6tables-restore /etc/iptables/rules.v6 ``` -/etc/iptables/rules.v6 (simplified version, only includes mtu1280 rule) +/etc/iptables/rules.v6 (simplified version, only includes mtu1280d rule) ``` # Generated by ip6tables-save v1.4.21 on Tue Feb 17 10:54:23 2015 *filter diff --git a/init.d/mtu1280 b/init.d/mtu1280 index 8d4d3e6..72103c9 100644 --- a/init.d/mtu1280 +++ b/init.d/mtu1280 @@ -1,11 +1,11 @@ #! /bin/sh ### BEGIN INIT INFO -# Provides: mtu1280 +# Provides: mtu1280d # Required-Start: $network $syslog # Required-Stop: $network $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 -# Short-Description: mtu1280 Synthetic ICMPv6 Packet Too Big response +# Short-Description: mtu1280d Synthetic ICMPv6 Packet Too Big response # Description: This file should be used to construct scripts to be # placed in /etc/init.d. ### END INIT INFO @@ -17,7 +17,7 @@ # PATH should only include /usr/* if it runs after the mountnfs.sh script PATH=/sbin:/usr/sbin:/bin:/usr/bin DESC="Synthetic ICMPv6 Packet Too Big response" -NAME=mtu1280 +NAME=mtu1280d DAEMON=/usr/sbin/$NAME DAEMON_ARGS="-d -q 1280" PIDFILE=/var/run/$NAME.pid diff --git a/upstart/mtu1280 b/upstart/mtu1280 index a96cdf9..ee996aa 100755 --- a/upstart/mtu1280 +++ b/upstart/mtu1280 @@ -15,4 +15,4 @@ umask 022 console none -exec /usr/sbin/mtu1280 -q 1280 +exec /usr/sbin/mtu1280d -q 1280 |