ip_dynaddr.rst 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. .. SPDX-License-Identifier: GPL-2.0
  2. ==================================
  3. IP dynamic address hack-port v0.03
  4. ==================================
  5. This stuff allows diald ONESHOT connections to get established by
  6. dynamically changing packet source address (and socket's if local procs).
  7. It is implemented for TCP diald-box connections(1) and IP_MASQuerading(2).
  8. If enabled\ [#]_ and forwarding interface has changed:
  9. 1) Socket (and packet) source address is rewritten ON RETRANSMISSIONS
  10. while in SYN_SENT state (diald-box processes).
  11. 2) Out-bounded MASQueraded source address changes ON OUTPUT (when
  12. internal host does retransmission) until a packet from outside is
  13. received by the tunnel.
  14. This is specially helpful for auto dialup links (diald), where the
  15. ``actual`` outgoing address is unknown at the moment the link is
  16. going up. So, the *same* (local AND masqueraded) connections requests that
  17. bring the link up will be able to get established.
  18. .. [#] At boot, by default no address rewriting is attempted.
  19. To enable::
  20. # echo 1 > /proc/sys/net/ipv4/ip_dynaddr
  21. To enable verbose mode::
  22. # echo 2 > /proc/sys/net/ipv4/ip_dynaddr
  23. To disable (default)::
  24. # echo 0 > /proc/sys/net/ipv4/ip_dynaddr
  25. Enjoy!
  26. Juanjo <jjciarla@raiz.uncu.edu.ar>