wok view icmptx/receipt @ rev 4628

Add icmptx
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Dec 20 21:22:25 2009 +0100 (2009-12-20)
parents
children aa502dab7c89
line source
1 # SliTaz package receipt.
3 PACKAGE="icmptx"
4 VERSION="0.01"
5 CATEGORY="network"
6 SHORT_DESC="Tunnel IP connections using ICMP echo request."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://thomer.com/icmptx"
10 WGET_URL="$WEB_SITE/$TARBALL"
12 # Rules to configure and make the package.
13 compile_rules()
14 {
15 cd $src
16 make
17 }
19 # Rules to gen a SliTaz package suitable for Tazpkg.
20 genpkg_rules()
21 {
22 mkdir -p $fs/usr/bin
23 cp $src/$PACKAGE $fs/usr/bin
24 }
26 # Pre and post install commands for Tazpkg.
27 post_install()
28 {
29 cat << EOT
30 Server side example (on icmp-gateway) :
31 # icmptx -d 10.0.1.1 &
32 # ifconfig tun0 mtu 65535 up 10.0.1.1 netmask 255.255.255.0
33 # echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all
34 # echo 1 > /proc/sys/net/ipv4/ip_forward
35 # iptables -t nat -A POSTROUTING -s 10.0.0.0/8 -j MASQUERADE
37 client side example (assume 192.168.1.1 as default gw for wlan interface) :
38 # icmptx -c icmp-gateway &
39 # ifconfig tun0 mtu 65535 up 10.0.1.2 netmask 255.255.255.0
40 # route add -host icmp-gateway gw 192.168.1.1 dev wlan0
41 # route add default gw 10.0.1.1 tun0
43 EOT
44 }