0001 .. SPDX-License-Identifier: GPL-2.0
0002
0003 ==================================
0004 IP dynamic address hack-port v0.03
0005 ==================================
0006
0007 This stuff allows diald ONESHOT connections to get established by
0008 dynamically changing packet source address (and socket's if local procs).
0009 It is implemented for TCP diald-box connections(1) and IP_MASQuerading(2).
0010
0011 If enabled\ [#]_ and forwarding interface has changed:
0012
0013 1) Socket (and packet) source address is rewritten ON RETRANSMISSIONS
0014 while in SYN_SENT state (diald-box processes).
0015 2) Out-bounded MASQueraded source address changes ON OUTPUT (when
0016 internal host does retransmission) until a packet from outside is
0017 received by the tunnel.
0018
0019 This is specially helpful for auto dialup links (diald), where the
0020 ``actual`` outgoing address is unknown at the moment the link is
0021 going up. So, the *same* (local AND masqueraded) connections requests that
0022 bring the link up will be able to get established.
0023
0024 .. [#] At boot, by default no address rewriting is attempted.
0025
0026 To enable::
0027
0028 # echo 1 > /proc/sys/net/ipv4/ip_dynaddr
0029
0030 To enable verbose mode::
0031
0032 # echo 2 > /proc/sys/net/ipv4/ip_dynaddr
0033
0034 To disable (default)::
0035
0036 # echo 0 > /proc/sys/net/ipv4/ip_dynaddr
0037
0038 Enjoy!
0039
0040 Juanjo <jjciarla@raiz.uncu.edu.ar>