troglobit / redir

A TCP port redirector for UNIX

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Service names from /etc/services not recognized for --lport=

troglobit opened this issue · comments

@lucaskanashiro reports Debian bug 870064:

Dear Maintainer,

specifying a port as a name from /etc/services does not work in Stretch version anymore.

In Jessie it was working fine.

Sample:
/etc/services contains
minecraft	10001/tcp			# Minecraft Server
minecraft	10001/udp			# Minecraft Server

redir ... --lport=minecraft ...
was working in Jessie but does not work in stretch

redir ... --lport=10001 ...
also works fine in Stretch

I suppose deactivating support for service names was not intended.

Best regards
Marko

This should of course work.