Monday, September 13, 2010

Install ptunnel on Server CentOS 5.5 for Tunneling via ICMP

Install ptunnel on Server CentOS 5.5 for Tunneling via ICMP
Ptunnel is an application that allows you to reliably tunnel TCP connections to a remote host using ICMP echo request and reply packets, commonly known as ping requests and replies. It is not a feature-rich tool by any means, but it does what it advertises. So here is what it can do:

* Tunnel TCP using ICMP echo request and reply packets
* Connections are reliable (lost packets are resent as necessary)
* Handles multiple connections
* Acceptable bandwidth (150 kb/s downstream and about 50 kb/s upstream are the currently measured maximas for one tunnel)
* Authentication, to prevent just anyone from using your proxy



PTunnel will not work in the condition that when an outgoing/incoming ping not allowed, or filtered by a gateway somewhere along the way. Also, it does not involve any congestion control. But a good thing is that it is open source and supports both Linux, Windows & Mac. For Windows, you will also need WinPcap.

There is the step for installing ptunnel 0.71:

ON SERVER

# yum -y install gcc*
# yum -y install libpcap*
# mkdir /tmp
# cd /tmp
# wget http://www.cs.uit.no/~daniels/PingTunnel/PingTunnel-0.71.tar.gz
# tar -zxvf PingTunnel-0.71.tar.gz
# cd PingTunnel
# make
# make install


On server CentOS 5.5 32bit

# ptunnel &




On server CentOS 5.5 64bit

# ptunnel > /dev/null 2 >&1 &



Open Port on Server (8000 or whatever it that will be used for tunneling)

# setup

and then choose Firewall configuration >> Customize

http://a.imageshack.us/img535/3217/b004j.jpg

ON CLIENT

ptunnel -p ptunnel.example.org -lp 8000 -da ssh.example.org -dp 22

If you using ptunnel client on windows, make sure you copy ptunnel.exe to folder system32 before running that command on command prompt and WinPcap has installed on your system.

ON SSH CLIENT

Using PuTTY or Bidvise Tunnelier to login to your SSH.

Setting on SSH Client:
Host : 127.0.0.1
Port : 8000

3 comments:

  1. Replies
    1. tunneling mas bisa jadi vpn bisa jg internetgratisan

      Delete
  2. thanx 4 share br0...
    Mangstap.
    2 thumbs for u.

    ReplyDelete

My Mine