From f432203570fe57e26421d484e387e49aae4dfabd Mon Sep 17 00:00:00 2001 From: FPGALover Date: Tue, 18 Jul 2023 02:10:52 +0000 Subject: [PATCH] Update README.md --- README.md | 48 ++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 44 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 9569190..3fdac9f 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,46 @@ # Tunnel_C -Simple Tunnel Working on C - -it can be used to small tunnel applications. - +Simple Tunnel Working on C + +it can be used to small tunnel applications. + + +### Compilation using GCC + This software is known to have run for me under + Linux/Intel, Solaris/Intel, Solaris/Sparc, SunOS/Sparc. + +```shell: + Linux: gcc -O2 -Wall tunnel.c -o tunnel + Solaris: gcc -O2 -Wall -lsocket -lnsl -DSOLARIS tunnel.c -o tunnel + SunOS: gcc -O2 -Wall -DSUNOS tunnel.c -o tunnel +``` + +### Implementation +#### help menu +```bash: + tunnel -h +``` + +#### example of HTTPS website +```bash: + ./tunnel -Lr : : + ./tunnel -Lr 31.220.09.177:8878 23.87.270.189:5001 +``` +then open on your navigator "https://31.220.09.177:8878" and you will be taken to the https website that you are tunneling. + +#### Diagram of Connection +Exposed IP(31.220.09.177:8878):
+ <-------><<31.220.09.177:8878>> + <----------><23.87.270.189:5001> + <---->PortForward<----> + + (192.168.1.7:57) + + + + + + + + +