Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

srtconfig(1) [netbsd man page]

SRTCONFIG(1)						    BSD General Commands Manual 					      SRTCONFIG(1)

NAME
srtconfig -- configure srt interfaces SYNOPSIS
srtconfig srtX srtconfig srtX N srtconfig srtX del N srtconfig srtX add srcaddr mask dstif dstaddr srtconfig srtX set N srcaddr mask dstif dstaddr DESCRIPTION
srtconfig configures, or queries the configuration of, srt(4) interfaces. An srt(4) interface parcels packets out to other interfaces based on their source addresses (the normal routing mechanisms handle routing decisions based on destination addresses). An interface may have any number of routing choices; they are examined in order until one matching the packet is found. The packet is sent to the corresponding inter- face. (Any interface, even another srt interface, may be specified; if the configurations collaborate to cause a packet to loop forever, the system will lock up or crash.) When run with only one argument, srtconfig prints the settings for the specified interface. When run with two arguments, srtconfig prints the settings for the routing choice whose number is given as the second argument. The form with 'del' deletes a routing choice, identified by its number. Other choices with higher numbers, if any, will be renumbered accordingly. The 'add' form adds a choice; the other arguments describe it, and are documented below. The new choice is added at the end of the list. The 'set' form replaces an existing choice, given its number. The other arguments describe the new choice which is to replace whatever cur- rently exists at the given number N. A choice is described by four pieces of information: a source address and mask, which are used to determine which choice an outgoing packet uses, a destination interface, and a destination address for the new interface. The source address and mask are specified like any Internet addresses (for convenience, the mask may instead be specified as a '/' followed by a small integer, CIDR-style; note that in this case the mask must still be a separate argument; it cannot be appended to the end of the source address argument). Each srt interface also has ordinary source and destination addresses which are set with ifconfig(8) like any other interface; these should not be confused with any of the above. AUTHORS
der Mouse <mouse@rodents.montreal.qc.ca> BSD
August 21, 2000 BSD

Check Out this Related Man Page

FAITH(4)						   BSD Kernel Interfaces Manual 						  FAITH(4)

NAME
faith -- IPv6-to-IPv4 TCP relay capturing interface SYNOPSIS
device faith DESCRIPTION
The faith interface captures IPv6 TCP traffic, for implementing userland IPv6-to-IPv4 TCP relay like faithd(8). Each faith interface is created at runtime using interface cloning. This is most easily done with the ifconfig(8) create command or using the cloned_interfaces variable in rc.conf(5). Special action will be taken when IPv6 TCP traffic is seen on a router, and the routing table suggests to route it to the faith interface. In this case, the packet will be accepted by the router, regardless of the list of IPv6 interface addresses assigned to the router. The packet will be captured by an IPv6 TCP socket, if it has the IN6P_FAITH flag turned on and matching address/port pairs. As a result, faith will let you capture IPv6 TCP traffic to some specific destination addresses. Userland programs, such as faithd(8) can use this behavior to relay IPv6 TCP traffic to IPv4 TCP traffic. The program can accept some specific IPv6 TCP traffic, perform getsockname(2) to get the IPv6 destination address specified by the client, and perform application-specific address mapping to relay IPv6 TCP to IPv4 TCP. The IN6P_FAITH flag on a IPv6 TCP socket can be set by using setsockopt(2), with level IPPROTO_IPV6 and optname IPv6_FAITH. To handle error reports by ICMPv6, some ICMPv6 packets routed to an faith interface will be delivered to IPv6 TCP, as well. To understand how faith can be used, take a look at the source code of faithd(8). As the faith interface implements potentially dangerous operations, great care must be taken when configuring it. To avoid possible misuse, the sysctl(8) variable net.inet6.ip6.keepfaith must be set to 1 prior to using the interface. When net.inet6.ip6.keepfaith is 0, no packets will be captured by the faith interface. The faith interface is intended to be used on routers, not on hosts. SEE ALSO
inet(4), inet6(4), faithd(8) Jun-ichiro itojun Hagino and Kazu Yamamoto, An IPv6-to-IPv4 transport relay translator, RFC3142. HISTORY
The FAITH IPv6-to-IPv4 TCP relay translator first appeared in the WIDE hydrangea IPv6 stack. BSD
April 10, 1999 BSD
Man Page