# tun2serial

```sh
# setcap cap_net_admin+ep ./tun2serial
# sudo ip addr add 10.0.0.1/24 dev tun0
# sudo ip link set tun0 up
# socat TCP-L:6699 /dev/ttyUSB0,rawer,b1200
```

## Thanks

- https://backreference.org/2010/03/26/tuntap-interface-tutorial/index.html
- https://blog.mbedded.ninja/programming/operating-systems/linux/linux-serial-ports-using-c-cpp/
