10. Protocol Tunneling - tandihansvin/EthicalHacking GitHub Wiki
What is protocol tunneling ?
A tunneling protocol enables a network user to access a network service that the particular services is not provided or supported straightforwardly. In tunneling, a data are chunking into smaller pieces called packets, then the packets move along a tunnel for transport. When the packet move through a tunnel, a process called encapsulation occurs. In this case encapsulation means adding a new header to the packet. Tunneling is also known as port forwarding.
Why can protocol tunneling be helpful ?
The most crucial thing of tunneling a protocol is to allow an unknown(not provided) protocol to run over a network that does not support that particular protocol. For example, running IPv6 over IPv4, etc. Protocol tunneling also can be used as "safe movement" to forward packets from private network to public network.
Demonstration
Goal: Forwarding packets using ssh tunnel. Idea: Your current IP. Creating ssh tunnel. Set up your browser to create socks proxy using our ssh tunnel. Your IP has changed.
Thanks to @anakaiti for help me to understand this topic.