Import upstream version 0.3+git20200720.1.6aa964c
Debian Janitor
2 years ago
0 | etherpuppet (0.3-4) unstable; urgency=medium | |
1 | ||
2 | * d/control: update Vcs-* fields | |
3 | * d/control: update to debhelper compat 13 | |
4 | * d/rules: convert to dh instead of cdbs | |
5 | * d/rules: ensure hardening is enabled | |
6 | * d/control: bump Standards-Version | |
7 | ||
8 | -- Vincent Bernat <bernat@debian.org> Mon, 20 Jul 2020 22:04:19 +0200 | |
9 | ||
10 | etherpuppet (0.3-3.1) unstable; urgency=medium | |
11 | ||
12 | * Non-maintainer upload. | |
13 | * Fix FTCBFS: Let dpkg's buildtools.mk supply $(CC). (Closes: #928857) | |
14 | ||
15 | -- Helmut Grohne <helmut@subdivi.de> Sun, 12 May 2019 09:55:43 +0200 | |
16 | ||
17 | etherpuppet (0.3-3) unstable; urgency=low | |
18 | ||
19 | * Apply upstream fix to make package usable on systems with unsigned | |
20 | char. Patch from Peter Michael Green. Closes: #861366. | |
21 | ||
22 | -- Vincent Bernat <bernat@debian.org> Sat, 29 Apr 2017 12:56:45 +0200 | |
23 | ||
24 | etherpuppet (0.3-2) unstable; urgency=low | |
25 | ||
26 | * Fix "build-arch" target being empty. Closes: #666313. | |
27 | * Bump Standards-Version to 3.9.3. | |
28 | * Switch to 3.0 (quilt) format. | |
29 | ||
30 | -- Vincent Bernat <bernat@debian.org> Sat, 31 Mar 2012 18:45:42 +0200 | |
31 | ||
32 | etherpuppet (0.3-1) unstable; urgency=low | |
33 | ||
34 | * New upstream version | |
35 | + drop patches, they have been applied upstream | |
36 | * Fix long description, thanks to a proposition from W. Martin Borgert | |
37 | (Closes: #495669). BTW, use Wireshark as example instead of Ethereal. | |
38 | ||
39 | -- Vincent Bernat <bernat@debian.org> Fri, 05 Dec 2008 19:33:02 +0100 | |
40 | ||
41 | etherpuppet (0.2-1) unstable; urgency=low | |
42 | ||
43 | * Initial release (Closes: #493972) | |
44 | ||
45 | -- Vincent Bernat <bernat@debian.org> Thu, 07 Aug 2008 18:41:51 +0200 | |
46 |
0 | etherpuppet |
0 | Source: etherpuppet | |
1 | Section: net | |
2 | Priority: optional | |
3 | Maintainer: Vincent Bernat <bernat@debian.org> | |
4 | Build-Depends: debhelper-compat (= 13) | |
5 | Standards-Version: 4.5.0 | |
6 | Homepage: http://www.secdev.org/projects/etherpuppet/ | |
7 | Vcs-Browser: https://salsa.debian.org/debian/etherpuppet | |
8 | Vcs-Git: https://salsa.debian.org/debian/etherpuppet.git | |
9 | ||
10 | Package: etherpuppet | |
11 | Architecture: any | |
12 | Depends: ${shlibs:Depends}, ${misc:Depends} | |
13 | Description: create a virtual interface from a remote Ethernet interface | |
14 | Etherpuppet is a small program that will create a virtual interface | |
15 | (TUN/TAP) on one machine from the ethernet interface of another | |
16 | machine through a TCP connection. Everything seen by the real | |
17 | interface will be seen by the virtual one. Everything sent to the | |
18 | virtual interface will be emitted by the real one. | |
19 | . | |
20 | It has been designed because one often has a small machine as their | |
21 | Internet gateway, and sometimes want to run some big applications | |
22 | that need raw access to this interface, for sniffing (Wireshark, | |
23 | etc.) or for crafting packets that do not survive being reassembled, | |
24 | translated, routed, etc. |
0 | This package was downloaded from http://www.secdev.org/projects/etherpuppet/ | |
1 | ||
2 | Files: etherpuppet.c debian/etherpuppet.1 | |
3 | Copyright: © 2004 Philippe Biondi <phil@secdev.org> | |
4 | License: LGPL | |
5 | This program is free software; you can redistribute it and/or modify it | |
6 | under the terms of the GNU Lesser General Public License as published by | |
7 | the Free Software Foundation. | |
8 | ||
9 | This program is distributed in the hope that it will be useful, but | |
10 | WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
12 | Lesser General Public License for more details. | |
13 | ||
14 | Files: debian/* | |
15 | Copyright: © 2008 Vincent Bernat <bernat@debian.org> | |
16 | License: GPL-2+ | |
17 | The Debian packaging information is under the GPL, version 2 or later | |
18 | ||
19 | On Debian GNU/Linux systems, the complete text of the GNU General | |
20 | Public License can be found in `/usr/share/common-licenses/GPL' and the | |
21 | complete text of the GNU Lesser General Public License can be found in | |
22 | `/usr/share/common-licenses/LGPL'. |
0 | .Dd $Mdocdate: August 7 2008 $ | |
1 | .Dt ETHERPUPPET 1 | |
2 | .Os | |
3 | .Sh NAME | |
4 | .Nm etherpuppet | |
5 | .Nd create a virtual interface from a remote Ethernet interface | |
6 | .Sh SYNOPSIS | |
7 | .Nm | |
8 | .Op Fl s Ar port | |
9 | .Op Fl c Ar target:port | |
10 | .Op Fl B | |
11 | .Op Fl S | |
12 | .Op Fl M Ar filter | |
13 | .Op Fl C | |
14 | .Op Fl i Ar iface | |
15 | .Nm | |
16 | .Op Fl m | |
17 | .Op Fl s Ar port | |
18 | .Op Fl c Ar target:port | |
19 | .Op Fl I Ar iface | |
20 | .Sh DESCRIPTION | |
21 | .Nm | |
22 | is a small program that will create a virtual interface | |
23 | .Em (TUN/TAP) | |
24 | on one machine from the ethernet interface of another | |
25 | machine through a TCP connection. Everything seen by the real | |
26 | interface will be seen by the virtual one. Everything sent to the | |
27 | virtual interface will be emitted by the real one. | |
28 | .Pp | |
29 | It has been designed because one often has a small machine as his | |
30 | Internet gateway, and sometimes want to run some big applications | |
31 | that need raw access to this interface, for sniffing (Ethereal, etc.) | |
32 | or for crafting packets that do not survive being reassembled, NATed, | |
33 | etc. | |
34 | .Pp | |
35 | When launched with the first syntax, | |
36 | .Nm | |
37 | is a slave that will send to its master everything that passes on the | |
38 | given interface. With the second syntax, | |
39 | .Nm | |
40 | is the master and will create the special | |
41 | .Em TAP | |
42 | device (whose default name starts with | |
43 | .Em puppet . | |
44 | In both modes, | |
45 | .Nm | |
46 | is able to either connect or listen to its slave/master. | |
47 | .Pp | |
48 | Traffic seen by the real interface is sent through the TCP connection | |
49 | to the doll interface. Thus, it is important that this connection is | |
50 | not seen by the real interface (or else, we'll have a cute infinite | |
51 | traffic loop). | |
52 | .Pp | |
53 | The options are as follows: | |
54 | .Bl -tag -width Ds | |
55 | .It Fl s Ar port | |
56 | Listen on the given TCP port. | |
57 | .It Fl c Ar ip:port | |
58 | Connect to the slave/master on the given IP/port. | |
59 | .It Fl i Ar iface | |
60 | Vampirize the given interface name. | |
61 | .It Fl I Ar ifname | |
62 | Choose the name of the virtual interface. | |
63 | .It Fl m | |
64 | Master mode. | |
65 | .It Fl B | |
66 | Do not use | |
67 | .Em BPF . | |
68 | With this option, | |
69 | .Nm | |
70 | may see its own traffic. | |
71 | .It Fl S | |
72 | Build | |
73 | .Em BPF | |
74 | with the content of | |
75 | .Em SSH_CONNECTION | |
76 | environment variable. | |
77 | .It Fl M Ar src:sp,dst:dp | |
78 | Build manually a | |
79 | .Em BPF | |
80 | filter that will exclude matching traffic in both directions. | |
81 | .It Fl C | |
82 | Do not copy real interface parameters to virtual interface. | |
83 | .El | |
84 | .Pp | |
85 | The source and destination are by default the TCP connection end | |
86 | points. If you go through SSH tunneling, you can use the | |
87 | .Fl S | |
88 | option to use | |
89 | .Em SSH_CONNECTION | |
90 | environment variable content instead, so that you will filter out the | |
91 | SSH connection of your current session and not the connection to the | |
92 | local SSH tunnel end point (which is pointless). If this still not fit | |
93 | your needs, you can manually specify the connection end points with | |
94 | .Fl M . | |
95 | .Pp | |
96 | If you connect two Etherpuppet instances in master mode, you'll get a | |
97 | TCP tunnel through virtual interfaces. | |
98 | .Pp | |
99 | If you connect two Etherpuppet instances in slave mode, you may get | |
100 | some kind of inefficient distributed bridge, but more probably, you'll | |
101 | get a big mess. | |
102 | .Sh AUTHORS | |
103 | .An -nosplit | |
104 | The | |
105 | .Nm | |
106 | program was written by | |
107 | .An Philippe Biondi Aq phil@secdev.org . | |
108 | .Pp | |
109 | This manual page was written by | |
110 | .An Vincent Bernat Aq bernat@debian.org , | |
111 | for the Debian project (but may be used by others). |
0 | etherpuppet usr/bin |
0 | debian/etherpuppet.1 |
0 | Description: Apply upstream fix to make package usable on systems with unsigned char. | |
1 | Author: Peter Michael Green <plugwash@raspbian.org> | |
2 | ||
3 | --- etherpuppet-0.3.orig/etherpuppet.c | |
4 | +++ etherpuppet-0.3/etherpuppet.c | |
5 | @@ -227,7 +227,8 @@ int main(int argc, char *argv[]) | |
6 | struct sigaction sa; | |
7 | ||
8 | ||
9 | - char c, *p, *ip, *manual_bpf_arg; | |
10 | + int c; | |
11 | + char *p, *ip, *manual_bpf_arg; | |
12 | unsigned char buf[MTU+4]; | |
13 | char *iface = NULL; | |
14 | fd_set readset; |
0 | fix-char-signedness.patch |
0 | #! /usr/bin/make -f | |
1 | ||
2 | %: | |
3 | dh $@ | |
4 | ||
5 | override_dh_auto_build: | |
6 | $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) etherpuppet.c -o etherpuppet |
0 | 3.0 (quilt) |