# tun2udp **Repository Path**: uglycat/tun2udp ## Basic Information - **Project Name**: tun2udp - **Description**: tun2udp - **Primary Language**: C++ - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-01-14 - **Last Updated**: 2024-01-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # tun2udp tun2udp # Build Instructions ## Linux: 1. Make sure gcc-c++, make, cmake, libevent-devel and log4cplus-devel are installed 2. Clone or download the zip for this repo ```shell git clone https://github.com/uglykitty/tun2udp.git ``` 3. Build ```shell cd tun2udp cmake -S . -B build cd build make ``` 4. *Optional* ```shell make install ``` (will install tun2udp into your path) # Quickstart ## Server Create TUN interface tun0 and assign an IP address for it. ```shell ip tuntap add mode tun dev tun0 $USER ip addr add 192.168.5.1/24 dev tun0 ip link set dev tun0 up ``` ```shell tun2udp tun0 12345 ``` ## Client Create TUN interface tun0 and assign an IP address for it. ```shell ip tuntap add mode tun dev tun0 user $USER ip addr add 192.168.5.2/24 dev tun0 ip link set dev tun0 up ``` ```shell tun2udp tun0 12345 host.of.server ``` ```shell ping 192.168.5.1 ```