]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - sbin/natd/natd.8
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / sbin / natd / natd.8
1 .\" $FreeBSD$
2 .Dd June 23, 2008
3 .Dt NATD 8
4 .Os
5 .Sh NAME
6 .Nm natd
7 .Nd Network Address Translation daemon
8 .Sh SYNOPSIS
9 .Nm
10 .Bk -words
11 .Op Fl unregistered_only | u
12 .Op Fl log | l
13 .Op Fl proxy_only
14 .Op Fl reverse
15 .Op Fl deny_incoming | d
16 .Op Fl use_sockets | s
17 .Op Fl same_ports | m
18 .Op Fl verbose | v
19 .Op Fl dynamic
20 .Op Fl in_port | i Ar port
21 .Op Fl out_port | o Ar port
22 .Op Fl port | p Ar port
23 .Op Fl alias_address | a Ar address
24 .Op Fl target_address | t Ar address
25 .Op Fl interface | n Ar interface
26 .Op Fl proxy_rule Ar proxyspec
27 .Op Fl redirect_port Ar linkspec
28 .Op Fl redirect_proto Ar linkspec
29 .Op Fl redirect_address Ar linkspec
30 .Op Fl config | f Ar configfile
31 .Op Fl instance Ar instancename
32 .Op Fl globalport Ar port
33 .Op Fl log_denied
34 .Op Fl log_facility Ar facility_name
35 .Op Fl punch_fw Ar firewall_range
36 .Op Fl skinny_port Ar port
37 .Op Fl log_ipfw_denied
38 .Op Fl pid_file | P Ar pidfile
39 .Op Fl exit_delay | P Ar ms
40 .Ek
41 .Sh DESCRIPTION
42 The
43 .Nm
44 utility provides a Network Address Translation facility for use
45 with
46 .Xr divert 4
47 sockets under
48 .Fx .
49 .Pp
50 (If you need NAT on a PPP link,
51 .Xr ppp 8
52 provides the
53 .Fl nat
54 option that gives most of the
55 .Nm
56 functionality, and uses the same
57 .Xr libalias 3
58 library.)
59 .Pp
60 The
61 .Nm
62 utility normally runs in the background as a daemon.
63 It is passed raw IP packets as they travel into and out of the machine,
64 and will possibly change these before re-injecting them back into the
65 IP packet stream.
66 .Pp
67 It changes all packets destined for another host so that their source
68 IP address is that of the current machine.
69 For each packet changed in this manner, an internal table entry is
70 created to record this fact.
71 The source port number is also changed to indicate the table entry
72 applying to the packet.
73 Packets that are received with a target IP of the current host are
74 checked against this internal table.
75 If an entry is found, it is used to determine the correct target IP
76 address and port to place in the packet.
77 .Pp
78 The following command line options are available:
79 .Bl -tag -width Fl
80 .It Fl log | l
81 Log various aliasing statistics and information to the file
82 .Pa /var/log/alias.log .
83 This file is truncated each time
84 .Nm
85 is started.
86 .It Fl deny_incoming | d
87 Do not pass incoming packets that have no
88 entry in the internal translation table.
89 .Pp
90 If this option is not used, then such a packet will be altered
91 using the rules in
92 .Fl target_address
93 below, and the entry will be made in the internal translation table.
94 .It Fl log_denied
95 Log denied incoming packets via
96 .Xr syslog 3
97 (see also
98 .Fl log_facility ) .
99 .It Fl log_facility Ar facility_name
100 Use specified log facility when logging information via
101 .Xr syslog 3 .
102 Argument
103 .Ar facility_name
104 is one of the keywords specified in
105 .Xr syslog.conf 5 .
106 .It Fl use_sockets | s
107 Allocate a
108 .Xr socket 2
109 in order to establish an FTP data or IRC DCC send connection.
110 This option uses more system resources, but guarantees successful
111 connections when port numbers conflict.
112 .It Fl same_ports | m
113 Try to keep the same port number when altering outgoing packets.
114 With this option, protocols such as RPC will have a better chance
115 of working.
116 If it is not possible to maintain the port number, it will be silently
117 changed as per normal.
118 .It Fl verbose | v
119 Do not call
120 .Xr daemon 3
121 on startup.
122 Instead, stay attached to the controlling terminal and display all packet
123 alterations to the standard output.
124 This option should only be used for debugging purposes.
125 .It Fl unregistered_only | u
126 Only alter outgoing packets with an
127 .Em unregistered
128 source address.
129 According to RFC 1918, unregistered source addresses are 10.0.0.0/8,
130 172.16.0.0/12 and 192.168.0.0/16.
131 .It Fl redirect_port Ar proto Xo
132 .Ar targetIP Ns : Ns Xo
133 .Ar targetPORT Ns Op - Ns Ar targetPORT Xc
134 .Op Ar aliasIP Ns : Ns Xo
135 .Ar aliasPORT Ns Op - Ns Ar aliasPORT Xc
136 .Oo Ar remoteIP Ns Oo : Ns
137 .Ar remotePORT Ns Op - Ns Ar remotePORT
138 .Oc Oc
139 .Xc
140 Redirect incoming connections arriving to given port(s) to another host
141 and port(s).
142 Argument
143 .Ar proto
144 is either
145 .Ar tcp
146 or
147 .Ar udp ,
148 .Ar targetIP
149 is the desired target IP address,
150 .Ar targetPORT
151 is the desired target port number or range,
152 .Ar aliasPORT
153 is the requested port number or range, and
154 .Ar aliasIP
155 is the aliasing address.
156 Arguments
157 .Ar remoteIP
158 and
159 .Ar remotePORT
160 can be used to specify the connection more accurately if necessary.
161 If
162 .Ar remotePORT
163 is not specified, it is assumed to be all ports.
164 .Pp
165 Arguments
166 .Ar targetIP , aliasIP
167 and
168 .Ar remoteIP
169 can be given as IP addresses or as hostnames.
170 The
171 .Ar targetPORT , aliasPORT
172 and
173 .Ar remotePORT
174 ranges need not be the same numerically, but must have the same size.
175 When
176 .Ar targetPORT , aliasPORT
177 or
178 .Ar remotePORT
179 specifies a singular value (not a range), it can be given as a service
180 name that is searched for in the
181 .Xr services 5
182 database.
183 .Pp
184 For example, the argument
185 .Pp
186 .Dl Ar tcp inside1:telnet 6666
187 .Pp
188 means that incoming TCP packets destined for port 6666 on this machine
189 will be sent to the telnet port on the inside1 machine.
190 .Pp
191 .Dl Ar tcp inside2:2300-2399 3300-3399
192 .Pp
193 will redirect incoming connections on ports 3300-3399 to host
194 inside2, ports 2300-2399.
195 The mapping is 1:1 meaning port 3300 maps to 2300, 3301 maps to 2301, etc.
196 .It Fl redirect_proto Ar proto localIP Oo
197 .Ar publicIP Op Ar remoteIP
198 .Oc
199 Redirect incoming IP packets of protocol
200 .Ar proto
201 (see
202 .Xr protocols 5 )
203 destined for
204 .Ar publicIP
205 address to a
206 .Ar localIP
207 address and vice versa.
208 .Pp
209 If
210 .Ar publicIP
211 is not specified, then the default aliasing address is used.
212 If
213 .Ar remoteIP
214 is specified, then only packets coming from/to
215 .Ar remoteIP
216 will match the rule.
217 .It Fl redirect_address Ar localIP publicIP
218 Redirect traffic for public IP address to a machine on the local
219 network.
220 This function is known as
221 .Em static NAT .
222 Normally static NAT is useful if your ISP has allocated a small block
223 of IP addresses to you, but it can even be used in the case of single
224 address:
225 .Pp
226 .Dl Ar redirect_address 10.0.0.8 0.0.0.0
227 .Pp
228 The above command would redirect all incoming traffic
229 to machine 10.0.0.8.
230 .Pp
231 If several address aliases specify the same public address
232 as follows
233 .Bd -literal -offset indent
234 redirect_address 192.168.0.2 public_addr
235 redirect_address 192.168.0.3 public_addr
236 redirect_address 192.168.0.4 public_addr
237 .Ed
238 .Pp
239 the incoming traffic will be directed to the last
240 translated local address (192.168.0.4), but outgoing
241 traffic from the first two addresses will still be aliased
242 to appear from the specified
243 .Ar public_addr .
244 .It Fl redirect_port Ar proto Xo
245 .Ar targetIP Ns : Ns Xo
246 .Ar targetPORT Ns Oo , Ns
247 .Ar targetIP Ns : Ns Xo
248 .Ar targetPORT Ns Oo , Ns
249 .Ar ...\&
250 .Oc Oc
251 .Xc
252 .Xc
253 .Op Ar aliasIP Ns : Ns Xo
254 .Ar aliasPORT
255 .Xc
256 .Oo Ar remoteIP Ns
257 .Op : Ns Ar remotePORT
258 .Oc
259 .Xc
260 .It Fl redirect_address Xo
261 .Ar localIP Ns Oo , Ns
262 .Ar localIP Ns Oo , Ns
263 .Ar ...\&
264 .Oc Oc
265 .Ar publicIP
266 .Xc
267 These forms of
268 .Fl redirect_port
269 and
270 .Fl redirect_address
271 are used to transparently offload network load on a single server and
272 distribute the load across a pool of servers.
273 This function is known as
274 .Em LSNAT
275 (RFC 2391).
276 For example, the argument
277 .Pp
278 .Dl Ar tcp www1:http,www2:http,www3:http www:http
279 .Pp
280 means that incoming HTTP requests for host www will be transparently
281 redirected to one of the www1, www2 or www3, where a host is selected
282 simply on a round-robin basis, without regard to load on the net.
283 .It Fl dynamic
284 If the
285 .Fl n
286 or
287 .Fl interface
288 option is used,
289 .Nm
290 will monitor the routing socket for alterations to the
291 .Ar interface
292 passed.
293 If the interface's IP address is changed,
294 .Nm
295 will dynamically alter its concept of the alias address.
296 .It Fl in_port | i Ar port
297 Read from and write to
298 .Xr divert 4
299 port
300 .Ar port ,
301 treating all packets as
302 .Dq incoming .
303 .It Fl out_port | o Ar port
304 Read from and write to
305 .Xr divert 4
306 port
307 .Ar port ,
308 treating all packets as
309 .Dq outgoing .
310 .It Fl port | p Ar port
311 Read from and write to
312 .Xr divert 4
313 port
314 .Ar port ,
315 distinguishing packets as
316 .Dq incoming
317 or
318 .Dq outgoing
319 using the rules specified in
320 .Xr divert 4 .
321 If
322 .Ar port
323 is not numeric, it is searched for in the
324 .Xr services 5
325 database.
326 If this option is not specified, the divert port named
327 .Ar natd
328 will be used as a default.
329 .It Fl alias_address | a Ar address
330 Use
331 .Ar address
332 as the aliasing address.
333 Either this or the
334 .Fl interface
335 option must be used (but not both),
336 if the
337 .Fl proxy_only
338 option is not specified.
339 The specified address is usually the address assigned to the
340 .Dq public
341 network interface.
342 .Pp
343 All data passing
344 .Em out
345 will be rewritten with a source address equal to
346 .Ar address .
347 All data coming
348 .Em in
349 will be checked to see if it matches any already-aliased outgoing
350 connection.
351 If it does, the packet is altered accordingly.
352 If not, all
353 .Fl redirect_port ,
354 .Fl redirect_proto
355 and
356 .Fl redirect_address
357 assignments are checked and actioned.
358 If no other action can be made and if
359 .Fl deny_incoming
360 is not specified, the packet is delivered to the local machine
361 using the rules specified in
362 .Fl target_address
363 option below.
364 .It Fl t | target_address Ar address
365 Set the target address.
366 When an incoming packet not associated with any pre-existing link
367 arrives at the host machine, it will be sent to the specified
368 .Ar address .
369 .Pp
370 The target address may be set to
371 .Ar 255.255.255.255 ,
372 in which case all new incoming packets go to the alias address set by
373 .Fl alias_address
374 or
375 .Fl interface .
376 .Pp
377 If this option is not used, or called with the argument
378 .Ar 0.0.0.0 ,
379 then all new incoming packets go to the address specified in
380 the packet.
381 This allows external machines to talk directly to internal machines if
382 they can route packets to the machine in question.
383 .It Fl interface | n Ar interface
384 Use
385 .Ar interface
386 to determine the aliasing address.
387 If there is a possibility that the IP address associated with
388 .Ar interface
389 may change, the
390 .Fl dynamic
391 option should also be used.
392 If this option is not specified, the
393 .Fl alias_address
394 option must be used.
395 .Pp
396 The specified
397 .Ar interface
398 is usually the
399 .Dq public
400 (or
401 .Dq external )
402 network interface.
403 .It Fl config | f Ar file
404 Read configuration from
405 .Ar file .
406 A
407 .Ar file
408 should contain a list of options, one per line, in the same form
409 as the long form of the above command line options.
410 For example, the line
411 .Pp
412 .Dl alias_address 158.152.17.1
413 .Pp
414 would specify an alias address of 158.152.17.1.
415 Options that do not take an argument are specified with an argument of
416 .Ar yes
417 or
418 .Ar no
419 in the configuration file.
420 For example, the line
421 .Pp
422 .Dl log yes
423 .Pp
424 is synonymous with
425 .Fl log .
426 .Pp
427 Options can be divided to several sections.
428 Each section applies to own
429 .Nm
430 instance.
431 This ability allows to configure one
432 .Nm
433 process for several NAT instances.
434 The first instance that always exists is a "default" instance.
435 Each another instance should begin with
436 .Pp
437 .Dl instance Ar instance_name
438 .Pp
439 At the next should be placed a configuration option.
440 Example:
441 .Pp
442 .Dl \&# default instance
443 .Dl port 8668
444 .Dl alias_address 158.152.17.1
445 .Pp
446 .Dl \&# second instance
447 .Dl instance dsl1
448 .Dl port 8888
449 .Dl alias_address 192.168.0.1
450 .Pp
451 Trailing spaces and empty lines are ignored.
452 A
453 .Ql \&#
454 sign will mark the rest of the line as a comment.
455 .It Fl instance Ar instancename
456 This option switches command line options processing to configure instance
457 .Ar instancename
458 (creating it if necessary) till the next
459 .Fl instance
460 option or end of command line.
461 It is easier to set up multiple instances in the configuration file
462 specified with the
463 .Fl config
464 option rather than on a command line.
465 .It Fl globalport Ar port
466 Read from and write to
467 .Xr divert 4
468 port
469 .Ar port ,
470 treating all packets as
471 .Dq outgoing .
472 This option is intended to be used with multiple instances:
473 packets received on this port are checked against
474 internal translation tables of every configured instance.
475 If an entry is found, packet is aliased according to that entry.
476 If no entry was found in any of the instances, packet is passed
477 unchanged, and no new entry will be created.
478 See the section
479 .Sx MULTIPLE INSTANCES
480 for more details.
481 .It Fl reverse
482 This option makes
483 .Nm
484 reverse the way it handles
485 .Dq incoming
486 and
487 .Dq outgoing
488 packets, allowing it to operate on the
489 .Dq internal
490 network interface rather than the
491 .Dq external
492 one.
493 .Pp
494 This can be useful in some transparent proxying situations
495 when outgoing traffic is redirected to the local machine
496 and
497 .Nm
498 is running on the internal interface (it usually runs on the
499 external interface).
500 .It Fl proxy_only
501 Force
502 .Nm
503 to perform transparent proxying only.
504 Normal address translation is not performed.
505 .It Fl proxy_rule Xo
506 .Op Ar type encode_ip_hdr | encode_tcp_stream
507 .Ar port xxxx
508 .Ar server a.b.c.d:yyyy
509 .Xc
510 Enable transparent proxying.
511 Outgoing TCP packets with the given port going through this
512 host to any other host are redirected to the given server and port.
513 Optionally, the original target address can be encoded into the packet.
514 Use
515 .Ar encode_ip_hdr
516 to put this information into the IP option field or
517 .Ar encode_tcp_stream
518 to inject the data into the beginning of the TCP stream.
519 .It Fl punch_fw Xo
520 .Ar basenumber Ns : Ns Ar count
521 .Xc
522 This option directs
523 .Nm
524 to
525 .Dq punch holes
526 in an
527 .Xr ipfirewall 4
528 based firewall for FTP/IRC DCC connections.
529 This is done dynamically by installing temporary firewall rules which
530 allow a particular connection (and only that connection) to go through
531 the firewall.
532 The rules are removed once the corresponding connection terminates.
533 .Pp
534 A maximum of
535 .Ar count
536 rules starting from the rule number
537 .Ar basenumber
538 will be used for punching firewall holes.
539 The range will be cleared for all rules on startup.
540 This option has no effect when the kernel is in security
541 level 3, see
542 .Xr init 8
543 for more information.
544 .It Fl skinny_port Ar port
545 This option allows you to specify the TCP port used for
546 the Skinny Station protocol.
547 Skinny is used by Cisco IP phones to communicate with
548 Cisco Call Managers to set up voice over IP calls.
549 By default, Skinny aliasing is not performed.
550 The typical port value for Skinny is 2000.
551 .It Fl log_ipfw_denied
552 Log when a packet cannot be re-injected because an
553 .Xr ipfw 8
554 rule blocks it.
555 This is the default with
556 .Fl verbose .
557 .It Fl pid_file | P Ar file
558 Specify an alternate file in which to store the process ID.
559 The default is
560 .Pa /var/run/natd.pid .
561 .It Fl exit_delay Ar ms
562 Specify delay in ms before daemon exit after signal.
563 The default is
564 .Pa 10000 .
565 .El
566 .Sh RUNNING NATD
567 The following steps are necessary before attempting to run
568 .Nm :
569 .Bl -enum
570 .It
571 Build a custom kernel with the following options:
572 .Bd -literal -offset indent
573 options IPFIREWALL
574 options IPDIVERT
575 .Ed
576 .Pp
577 Refer to the handbook for detailed instructions on building a custom
578 kernel.
579 .It
580 Ensure that your machine is acting as a gateway.
581 This can be done by specifying the line
582 .Pp
583 .Dl gateway_enable=YES
584 .Pp
585 in the
586 .Pa /etc/rc.conf
587 file or using the command
588 .Pp
589 .Dl "sysctl net.inet.ip.forwarding=1"
590 .Pp
591 .It
592 If you use the
593 .Fl interface
594 option, make sure that your interface is already configured.
595 If, for example, you wish to specify
596 .Ql tun0
597 as your
598 .Ar interface ,
599 and you are using
600 .Xr ppp 8
601 on that interface, you must make sure that you start
602 .Nm ppp
603 prior to starting
604 .Nm .
605 .El
606 .Pp
607 Running
608 .Nm
609 is fairly straight forward.
610 The line
611 .Pp
612 .Dl natd -interface ed0
613 .Pp
614 should suffice in most cases (substituting the correct interface name).
615 Please check
616 .Xr rc.conf 5
617 on how to configure it to be started automatically during boot.
618 Once
619 .Nm
620 is running, you must ensure that traffic is diverted to
621 .Nm :
622 .Bl -enum
623 .It
624 You will need to adjust the
625 .Pa /etc/rc.firewall
626 script to taste.
627 If you are not interested in having a firewall, the
628 following lines will do:
629 .Bd -literal -offset indent
630 /sbin/ipfw -f flush
631 /sbin/ipfw add divert natd all from any to any via ed0
632 /sbin/ipfw add pass all from any to any
633 .Ed
634 .Pp
635 The second line depends on your interface (change
636 .Ql ed0
637 as appropriate).
638 .Pp
639 You should be aware of the fact that, with these firewall settings,
640 everyone on your local network can fake his source-address using your
641 host as gateway.
642 If there are other hosts on your local network, you are strongly
643 encouraged to create firewall rules that only allow traffic to and
644 from trusted hosts.
645 .Pp
646 If you specify real firewall rules, it is best to specify line 2 at
647 the start of the script so that
648 .Nm
649 sees all packets before they are dropped by the firewall.
650 .Pp
651 After translation by
652 .Nm ,
653 packets re-enter the firewall at the rule number following the rule number
654 that caused the diversion (not the next rule if there are several at the
655 same number).
656 .It
657 Enable your firewall by setting
658 .Pp
659 .Dl firewall_enable=YES
660 .Pp
661 in
662 .Pa /etc/rc.conf .
663 This tells the system startup scripts to run the
664 .Pa /etc/rc.firewall
665 script.
666 If you do not wish to reboot now, just run this by hand from the console.
667 NEVER run this from a remote session unless you put it into the background.
668 If you do, you will lock yourself out after the flush takes place, and
669 execution of
670 .Pa /etc/rc.firewall
671 will stop at this point - blocking all accesses permanently.
672 Running the script in the background should be enough to prevent this
673 disaster.
674 .El
675 .Sh MULTIPLE INSTANCES
676 It is not so uncommon to have a need of aliasing to several external IP
677 addresses.
678 While this traditionally was achieved by running several
679 .Nm
680 processes with independent configurations,
681 .Nm
682 can have multiple aliasing instances in a single process,
683 also allowing them to be not so independent of each other.
684 For example, let us see a common task of load balancing two
685 channels to different providers on a machine with two external
686 interfaces
687 .Ql sis0
688 (with IP 1.2.3.4) and
689 .Ql sis2
690 (with IP 2.3.4.5):
691 .Bd -literal -offset indent
692           net 1.2.3.0/24
693 1.2.3.1 ------------------ sis0
694 (router)                (1.2.3.4)
695                                          net 10.0.0.0/24
696                                   sis1 ------------------- 10.0.0.2
697                                (10.0.0.1)
698           net 2.3.4.0/24
699 2.3.4.1 ------------------ sis2
700 (router)                (2.3.4.5)
701 .Ed
702 .Pp
703 Default route is out via
704 .Ql sis0 .
705 .Pp
706 Interior machine (10.0.0.2) is accessible on TCP port 122 through
707 both exterior IPs, and outgoing connections choose a path randomly
708 between
709 .Ql sis0
710 and
711 .Ql sis2 .
712 .Pp
713 The way this works is that
714 .Pa natd.conf
715 builds two instances of the aliasing engine.
716 .Pp
717 In addition to these instances' private
718 .Xr divert 4
719 sockets, a third socket called the
720 .Dq globalport
721 is created; packets sent to
722 .Nm
723 via this one will be matched against all instances and translated
724 if an existing entry is found, and unchanged if no entry is found.
725 The following lines are placed into
726 .Pa /etc/natd.conf :
727 .Bd -literal -offset indent
728 log
729 deny_incoming
730 verbose
731
732 instance default
733 interface sis0
734 port 1000
735 redirect_port tcp 10.0.0.2:122 122
736
737 instance sis2
738 interface sis2
739 port 2000
740 redirect_port tcp 10.0.0.2:122 122
741
742 globalport 3000
743 .Ed
744 .Pp
745 And the following
746 .Xr ipfw 8
747 rules are used:
748 .Bd -literal -offset indent
749 ipfw -f flush
750
751 ipfw add      allow ip from any to any via sis1
752
753 ipfw add      skipto 1000 ip from any to any in via sis0
754 ipfw add      skipto 2000 ip from any to any out via sis0
755 ipfw add      skipto 3000 ip from any to any in via sis2
756 ipfw add      skipto 4000 ip from any to any out via sis2
757
758 ipfw add 1000 count ip from any to any
759
760 ipfw add      divert 1000 ip from any to any
761 ipfw add      allow ip from any to any
762
763 ipfw add 2000 count ip from any to any
764
765 ipfw add      divert 3000 ip from any to any
766
767 ipfw add      allow ip from 1.2.3.4 to any
768 ipfw add      skipto 5000 ip from 2.3.4.5 to any
769
770 ipfw add      prob .5 skipto 4000 ip from any to any
771
772 ipfw add      divert 1000 ip from any to any
773 ipfw add      allow ip from any to any
774
775 ipfw add 3000 count ip from any to any
776
777 ipfw add      divert 2000 ip from any to any
778 ipfw add      allow ip from any to any
779
780 ipfw add 4000 count ip from any to any
781
782 ipfw add      divert 2000 ip from any to any
783
784 ipfw add 5000 fwd 2.3.4.1 ip from 2.3.4.5 to not 2.3.4.0/24
785 ipfw add      allow ip from any to any
786 .Ed
787 .Pp
788 Here the packet from internal network to Internet goes out via
789 .Ql sis0
790 (rule number 2000) and gets caught by the
791 .Ic globalport
792 socket (3000).
793 After that, either a match is found in a translation table
794 of one of the two instances, or the packet is passed to one
795 of the two other
796 .Xr divert 4
797 ports (1000 or 2000), with equal probability.
798 This ensures that load balancing is done on a per-flow basis
799 (i.e., packets from a single TCP connection always flow through the
800 same interface).
801 Translated packets with source IP of a non-default interface
802 .Pq Ql sis2
803 are forwarded to the appropriate router on that interface.
804 .Sh SEE ALSO
805 .Xr libalias 3 ,
806 .Xr divert 4 ,
807 .Xr protocols 5 ,
808 .Xr rc.conf 5 ,
809 .Xr services 5 ,
810 .Xr syslog.conf 5 ,
811 .Xr init 8 ,
812 .Xr ipfw 8 ,
813 .Xr ppp 8
814 .Sh AUTHORS
815 This program is the result of the efforts of many people at different
816 times:
817 .Pp
818 .An Archie Cobbs Aq archie@FreeBSD.org
819 (divert sockets)
820 .An Charles Mott Aq cm@linktel.net
821 (packet aliasing)
822 .An Eivind Eklund Aq perhaps@yes.no
823 (IRC support & misc additions)
824 .An Ari Suutari Aq suutari@iki.fi
825 (natd)
826 .An Dru Nelson Aq dnelson@redwoodsoft.com
827 (early PPTP support)
828 .An Brian Somers Aq brian@awfulhak.org
829 (glue)
830 .An Ruslan Ermilov Aq ru@FreeBSD.org
831 (natd, packet aliasing, glue)
832 .An Poul-Henning Kamp Aq phk@FreeBSD.org
833 (multiple instances)