Luca Di Gregorio <luc...@gmail.com> writes: > So, I installed socat with pkg_add and tried to do like this: > http://www.dest-unreach.org/socat/doc/socat-tun.html > > Anyway, I see this: > # socat UDP:1.2.3.4:11443 TUN:192.168.255.2/24,up > 2023/11/11 14:11:27 socat[4504] E unknown device/address "TUN" >
Have you try to manually configure tun(4) interface and simply use /dev/tun0 ? To keep your example: # ifconfig tun0 create # ifconfig tun0 inet 192.168.255.2/24 # socat UDP:1.2.3.4:11443 GOPEN:/dev/tun0 Regards. -- Sebastien Marie