On 2025-04-09, Martin <martin...@protonmail.com> wrote: > Hello there. > > relayd can't "forward to nat lookup" on freshly installed OpenBSD 7.6 amd64 > because natlook missing for some reason. Tested on various machines with 7.6 > installed. > > How to reproduce > > 1. Add simple relay configuration to /etc/relayd.conf > > relay my-relay { > listen on 127.0.0.1 port 1082 > forward to nat lookup > } > > 2. start relayd with verbose debug options and try to connect to localhost > 1082 where relayd listens for connections using telnet: > > # telnet 127.0.0.1 1082
That is not a valid test. In order to lookup the translated address associated with a connection, that connection needs to be translated (i.e. with a rdr-to rule). "forward to nat lookup" is not usually the best way to implement this sort of proxy anyway - "forward to destination" with a divert-to rule is normally preferred. > # relayd -dvvv > ... > relay_launch: runnin > natlook: ioctl: No such file or directory that's the textual representation of ENOENT, which is the error returned by the DIOCNATLOOK ioctl if no state matches the requested port/address combo. in this case it doesn't refer to an actual file. -- Please keep replies on the mailing list.