Tunnel_C/README.md

42 lines
945 B
Markdown
Raw Normal View History

2023-07-18 01:31:12 +00:00
# Tunnel_C
2023-07-18 02:10:52 +00:00
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 <ip_forClient_2_connect_as_public>:<public_port> <private_ip_or_local_ip_to_expose>:<private_port>
2023-10-21 22:11:58 +00:00
./tunnel -Lr 31.220.9.177:8878 23.87.270.189:5001
2023-07-18 02:10:52 +00:00
```
2023-07-18 02:36:17 +00:00
then open on your navigator "https://31.220.09.177:8878" and you will be taken to the https website that you are tunneling.
2023-07-18 02:10:52 +00:00
2023-07-18 02:36:17 +00:00
#### Diagram of Connection
<img src="/Holpedia/Tunnel_C/raw/branch/main/Example_tunnel.png">
2023-07-18 02:10:52 +00:00
2023-07-18 02:36:17 +00:00
</script>
2023-07-18 02:10:52 +00:00