ptrtd daemon from net-misc/ptrtd-0.5.2 accepts followin arguments: Usage: ptrtd [-i [<driver>:]<interface>] [-p <prefix>] [-l <prefix length>] prefix defaults to fec0:0:0:ffff:: len 64 However configuration file /etc/conf.d/ptrtd and init script /etc/init.d/ptrtd allows to specify only the -p prefix (IPV6_PREFIX). Following patch allows definition of other arguments.
Created attachment 173608 [details, diff] Init scripts adding support for other arguments This diff of net-misc/ptrtd/files allows to specify in /etc/conf.d/ptrtd all daemon arguments.
The homepage strongly discourages further use of this program. http://www.litech.org/ptrtd/
from homepage: December 12, 2010: ptrtd officially declared dead For an extremely deceased project, ptrtd gets a lot of hits. Nobody should be using it. It is highly insecure and known to cause data corruption in translated sessions. Instead please use TAYGA, which is a stable, production-ready stateless NAT64 that does not suffer from ptrtd's many problems. Like ptrtd, TAYGA runs as an out-of-kernel daemon that uses the TUN interface to exchange packets with the kernel. Additionally TAYGA supports IPv4->IPv6 session initiation, ICMP translation, and full TCP pass-through to allow window scaling, TCP timestamps, etc.
> For an extremely deceased project, ptrtd gets a lot of hits. Nobody should > be using it. It is highly insecure and known to cause data corruption in > translated sessions. > > Instead please use TAYGA, which is a stable, production-ready stateless > NAT64 that does not suffer from ptrtd's many problems. Like ptrtd, TAYGA > runs as an out-of-kernel daemon that uses the TUN interface to exchange > packets with the kernel. Additionally TAYGA supports IPv4->IPv6 session > initiation, ICMP translation, and full TCP pass-through to allow window > scaling, TCP timestamps, etc. For a long time there was a section in the Gentoo IPv6 Router Guide that described how to set up ptrtd and totd, which was probably a source of a lot of the hits. Apparently now that section has been removed entirely instead of being rewritten to use TAYGA in place of ptrtd.
dropped