1. 09 Aug, 2018 1 commit
  2. 01 Aug, 2018 1 commit
    • Julien Muchembled's avatar
      Fix crash caused by buggy UPnP · 2938a7c6
      Julien Muchembled authored
      gaierror: [Errno -2] Name or service not known
      Traceback (most recent call last):
       File "re6st/cli/node.py", line 271, in main
         remote_gateway, config.disable_proto, config.neighbour)
       File "re6st/tunnel.py", line 663, in __init__
         cache, cert, address)
       File "re6st/tunnel.py", line 236, in __init__
         self._updateCountry(address)
       File "re6st/tunnel.py", line 643, in _updateCountry
         family, ip = resolve(*address)
       File "re6st/tunnel.py", line 30, in resolve
         for x in socket.getaddrinfo(ip, port, family, 0, proto))
      
      where ip is '-a'
      2938a7c6
  3. 20 Jan, 2016 1 commit
  4. 02 Feb, 2015 1 commit
    • Julien Muchembled's avatar
      UPnP: randomize external port · 3a9e668c
      Julien Muchembled authored
      Some routers are so broken that UPnP NAT don't report ConflictInMappingEntry
      when redirecting the same port several times.
      
      Here is for example what we had with a Numericable Box (France):
      
      0 (1024, 'TCP', ('192.168.0.29', 1194), 're6stnet openvpn server (1194/tcp)', '1', '', 0)
      1 (1024, 'TCP', ('192.168.0.16', 1194), 're6stnet openvpn server (1194/tcp)', '1', '', 0)
      2 (1024, 'TCP', ('192.168.0.33', 1194), 're6stnet openvpn server (1194/tcp)', '1', '', 0)
      3 (1024, 'TCP', ('192.168.0.20', 1194), 're6stnet openvpn server (1194/tcp)', '1', '', 0)
      ('192.168.0.29', 1194, 're6stnet openvpn server (1194/tcp)', True, 0)
      
      Obviously, this can't work.
      
      It seems that this router also accepts a limited number of NAT rules, far less
      than we'd like, so even if there's still a probability of conflict with this
      commit, it will be good enough for our use.
      3a9e668c
  5. 09 Oct, 2014 2 commits
  6. 11 Jul, 2014 1 commit
  7. 10 Jul, 2014 1 commit
  8. 19 Nov, 2012 1 commit
  9. 08 Oct, 2012 1 commit
  10. 24 Sep, 2012 1 commit
  11. 07 Sep, 2012 1 commit
  12. 30 Aug, 2012 1 commit
  13. 14 Aug, 2012 1 commit
  14. 10 Aug, 2012 1 commit
  15. 09 Aug, 2012 1 commit
  16. 31 Jul, 2012 2 commits
  17. 27 Jul, 2012 1 commit
  18. 25 Jul, 2012 2 commits
  19. 24 Jul, 2012 1 commit
  20. 23 Jul, 2012 1 commit
  21. 19 Jul, 2012 1 commit
  22. 18 Jul, 2012 4 commits
  23. 17 Jul, 2012 1 commit
  24. 04 Jul, 2012 1 commit
  25. 03 Jul, 2012 2 commits