--- cutter-1.02.orig/Makefile +++ cutter-1.02/Makefile @@ -1,5 +1,5 @@ cutter: cutter.c - cc cutter.c -o cutter + cc $(CFLAGS) cutter.c -o cutter clean: rm -f cutter.o cutter --- cutter-1.02.orig/debian/changelog +++ cutter-1.02/debian/changelog @@ -0,0 +1,7 @@ +cutter (1.02-1) unstable; urgency=low + + * Initial Release (Closes: #197698) + * write manpage based on readme and authors web page + + -- Blars Blarson Sun, 26 Oct 2003 22:03:43 -0800 + --- cutter-1.02.orig/debian/compat +++ cutter-1.02/debian/compat @@ -0,0 +1 @@ +4 --- cutter-1.02.orig/debian/dirs +++ cutter-1.02/debian/dirs @@ -0,0 +1 @@ +usr/sbin --- cutter-1.02.orig/debian/manpage.1 +++ cutter-1.02/debian/manpage.1 @@ -0,0 +1,54 @@ +.\" Hey, EMACS: -*- nroff -*- +.TH CUTTER 8 "October 26, 2003" +.SH NAME +cutter \- cut tcp/ip connections +.SH SYNOPSIS +.B cutter +.RI ipaddress1 [ port1 [ ipaddress2 [ port2 ] ] ] +.br +.SH DESCRIPTION +"Cutter" is an open source program that allows Linux firewall +administrators to abort TCP/IP connections routed over the firewall or +router on which it is run. + +.PP +.br +.SH WARNING +Cutter has been designed for use as a administrators tool for Linux +firewalls. It's use (as is, or modified) for any other purpose is not +sanctioned by the author. So - do not use this tool as a parachute, or +to dry your cat, chill meat, answer your phone, drive you car, teach +your kids to read or attack other people's computer systems or networks. +.PP +This software has been designed for "legal" and "appropriate" use +by network security administrators and the like. It has been written as +part of a larger Linux firewall project, targetting at controlling traffic +from peer-to-peer software such as Kazaa, iMesh and others into and out of +a private network. It is not designed as a tool for malicious use and the +author in no way sanctions such use. +.PP +Users of the software should be aware that it's actions are easily detectable +using a number of readily available network monitoring tools, and it makes no +attempt to disguise it's actions. Malicious use of "cutter" could result in a +jail sentance in a number of countries around the world. +.PP +The author is not responsible for the results of using this software. It +is provided "as is" in the hope that it will be useful, but no garantees +are made about it's use (see "LICENSE", below). +.PP +.br +.SH LICENSE +Cutter 1.02 is released under the terms of GNU GENERAL PUBLIC LICENSE +Version 2 (June 1991) and comes with all the usual freedom, openness and +disclaimers associated with that license. Please see the "COPYING" file +for details. +.SH STATUS +Cutter 1.02 should be considered EXPERIMENTAL. The author is releasing a +tool that works on the systems he has access to (namely: IPCop and +RedHat Linux), and he is seeking input on it's use on other systems, +ideas for improvement, offers of sponsorship - etc. +.PP +.br +.SH ADDITIONAL DOCUMENTATION +This program is documented at +.IR http://www.lowth.com/cutter/ --- cutter-1.02.orig/debian/copyright +++ cutter-1.02/debian/copyright @@ -0,0 +1,28 @@ +This package was debianized by Blars Blarson on +Sun, 26 Oct 2003 22:03:43 -0800. + +It was downloaded from http://www.lowth.com/cutter/ + +Upstream Author: Chris Lowth + +Copyright: GNU GENERAL PUBLIC LICENSE Version 2, June 1991 + + Copyright (c) 2003 Chris Lowth + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 dated June, 1991. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA + 02111-1307, USA. + +On Debian GNU/Linux systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + --- cutter-1.02.orig/debian/control +++ cutter-1.02/debian/control @@ -0,0 +1,15 @@ +Source: cutter +Section: net +Priority: optional +Maintainer: Blars Blarson +Build-Depends: debhelper (>= 4.0.0) +Standards-Version: 3.6.1 + +Package: cutter +Architecture: any +Depends: ${shlibs:Depends} +Description: disconnect routed IP connections + Cutter will send packets to both ends of a tcp/ip connection to close + the connection. It is designed to be used on a Linux router to disconnect + unwanted connections. + --- cutter-1.02.orig/debian/rules +++ cutter-1.02/debian/rules @@ -0,0 +1,82 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + + + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + -$(MAKE) clean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + dh_install cutter usr/sbin + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples + dh_installman cutter.8 + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- cutter-1.02.orig/debian/docs +++ cutter-1.02/debian/docs @@ -0,0 +1 @@ +README --- cutter-1.02.orig/cutter.1 +++ cutter-1.02/cutter.1 @@ -0,0 +1,122 @@ +.\" Hey, EMACS: -*- nroff -*- +.TH CUTTER 8 "October 27, 2003" +.SH NAME +cutter \- cut tcp/ip connections +.SH SYNOPSIS +.B cutter +.IR ipaddress1 \ [ \ port1 \ [ \ ipaddress2 \ [ \ port2 +.R ] \ ] \ ] +.br +.SH DESCRIPTION +.B Cutter +is an open source program that allows Linux firewall +administrators to abort TCP/IP connections routed over the firewall or +router on which it is run. + +.PP +.br +.SH WARNING +.B Cutter +has been designed for use as a administrators tool for Linux +firewalls. It's use (as is, or modified) for any other purpose is not +sanctioned by the author. So - do not use this tool as a parachute, or +to dry your cat, chill meat, answer your phone, drive you car, teach +your kids to read or attack other people's computer systems or networks. +.PP +This software has been designed for +.I legal +and +.I appropriate +use +by network security administrators and the like. It has been written as +part of a larger Linux firewall project, targetting at controlling traffic +from peer-to-peer software such as Kazaa, iMesh and others into and out of +a private network. It is not designed as a tool for malicious use and the +author in no way sanctions such use. +.PP +Users of the software should be aware that it's actions are easily detectable +using a number of readily available network monitoring tools, and it makes no +attempt to disguise it's actions. Malicious use of "cutter" could result in a +jail sentance in a number of countries around the world. +.PP +The author is not responsible for the results of using this software. It +is provided "as is" in the hope that it will be useful, but no garantees +are made about it's use. + +.PP +.br +.SH USAGE + +.B Cutter +can be called using one of the following four syntaxes.. + +.BI cutter \ ip-address + +.B Example: +.RS +.br +.BI cutter \ 10.10.0.45 + +Cuts all connections +passing through the firewall +between any ports on the specified ip-address (either a "private" or +"public" address) and any other hosts. This can be used to close down +all incoming connections to a particular server, all outgoing +connections from a particular client or all outgoing connections to a +server. +.RE + +.B cutter +.I ip-address port + +.B Example: +.RS +.br +.B cutter +.I 200.1.2.3 80 + +Cuts all connections to or from the +specified ip-address/port pair. This allows the user to be a little more +specific than the previous example and allows targetting of specific +services on specific hosts. +.RE + +.B cutter +.I ip-address-1 port-1 ip-address-2 + +.B Example: +.RS +.br +.B cutter +.I 200.1.2.3 22 10.10.0.45 + +Cuts all connections between +ip-address-2 and ip-address-1/port-1. This allows the user to cut +connections between a specified "client" and a particular service on a +specified host. Our example closes host 10.10.0.45's SSH connection to +server 200.1.2.3. +.RE + +.B cutter +.I ip-address-1 port-1 ip-address-2 port-2 + +.B Example: +.RS +.br +.B cutter +.I 200.1.2.3 22 10.10.0.45 32451 + +Cuts the specific connection between +the two ip/port number pairs given. +.RE + +.SH STATUS +Cutter 1.02 should be considered EXPERIMENTAL. The author is releasing a +tool that works on the systems he has access to (namely: IPCop and +RedHat Linux), and he is seeking input on it's use on other systems, +ideas for improvement, offers of sponsorship - etc. +.PP +.br +.SH ADDITIONAL DOCUMENTATION +This program is documented at +.UN http://www.lowth.com/cutter/ --- cutter-1.02.orig/cutter.8 +++ cutter-1.02/cutter.8 @@ -0,0 +1,124 @@ +.\" Hey, EMACS: -*- nroff -*- +.TH CUTTER 8 "October 27, 2003" +.SH NAME +cutter \- cut tcp/ip connections +.SH SYNOPSIS +.B cutter +.IR ipaddress1 \ [ \ port1 \ [ \ ipaddress2 \ [ \ port2 +.R ] \ ] \ ] +.br +.SH DESCRIPTION +.B Cutter +is an open source program that allows Linux firewall +administrators to abort TCP/IP connections routed over the firewall or +router on which it is run. +.br +.SH WARNING +.B Cutter +has been designed for use as a administrators tool for Linux +firewalls. It's use (as is, or modified) for any other purpose is not +sanctioned by the author. So - do not use this tool as a parachute, or +to dry your cat, chill meat, answer your phone, drive you car, teach +your kids to read or attack other people's computer systems or networks. +.PP +This software has been designed for +.I legal +and +.I appropriate +use +by network security administrators and the like. It has been written as +part of a larger Linux firewall project, targetting at controlling traffic +from peer-to-peer software such as Kazaa, iMesh and others into and out of +a private network. It is not designed as a tool for malicious use and the +author in no way sanctions such use. +.PP +Users of the software should be aware that it's actions are easily detectable +using a number of readily available network monitoring tools, and it makes no +attempt to disguise it's actions. Malicious use of "cutter" could result in a +jail sentance in a number of countries around the world. +.PP +The author is not responsible for the results of using this software. It +is provided "as is" in the hope that it will be useful, but no garantees +are made about it's use. +.br +.SH USAGE +.B Cutter +can be called using one of the following four syntaxes. + +.BI cutter \ ip-address + +.B Example: +.RS +.br +.BI cutter \ 10.10.0.45 + +Cuts all connections +passing through the firewall +between any ports on the specified ip-address (either a "private" or +"public" address) and any other hosts. This can be used to close down +all incoming connections to a particular server, all outgoing +connections from a particular client or all outgoing connections to a +server. +.RE + +.B cutter +.I ip-address port + +.B Example: +.RS +.br +.B cutter +.I 200.1.2.3 80 + +Cuts all connections to or from the +specified ip-address/port pair. This allows the user to be a little more +specific than the previous example and allows targetting of specific +services on specific hosts. +.RE + +.B cutter +.I ip-address-1 port-1 ip-address-2 + +.B Example: +.RS +.br +.B cutter +.I 200.1.2.3 22 10.10.0.45 + +Cuts all connections between +ip-address-2 and ip-address-1/port-1. This allows the user to cut +connections between a specified "client" and a particular service on a +specified host. Our example closes host 10.10.0.45's SSH connection to +server 200.1.2.3. +.RE + +.B cutter +.I ip-address-1 port-1 ip-address-2 port-2 + +.B Example: +.RS +.br +.B cutter +.I 200.1.2.3 22 10.10.0.45 32451 + +Cuts the specific connection between +the two ip/port number pairs given. +.RE +.SH STATUS +Cutter 1.02 should be considered +.B EXPERIMENTAL. +The author is releasing a +tool that works on the systems he has access to (namely: IPCop and +RedHat Linux), and he is seeking input on it's use on other systems, +ideas for improvement, offers of sponsorship - etc. +.PP +.br +.SH ADDITIONAL DOCUMENTATION +This program is documented at +.UR http://www.lowth.com/cutter/ +.I http://www.lowth.com/cutter/ +.UE +.SH AUTHOR +Blars Blarson addapted the README and web page written by Chris Lowth +into this man page for debian package of cutter. This man page may be +distribuated under the terms of the Gnu GPL version 2.