ip_dynaddr.txt 1.2 KB

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