Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

block requests from a Lua script #224

Open
wants to merge 18 commits into
base: master
Choose a base branch
from

Commits on Feb 7, 2017

  1. first stab at Lua support in sniproxy. Use ./configure CPPFLAGS='-I/u…

    …sr/include/lua5.1' LIBS='-llua5.1'
    
    see sniproxy.lua for example. Note that there is no hostname normalisation, so adding a dot or uppercasing a letter would circumvent this simple example.
    Habbie committed Feb 7, 2017
    Configuration menu
    Copy the full SHA
    08fb289 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    18973af View commit details
    Browse the repository at this point in the history
  3. make sure lua includes are used

    Peter van Dijk authored and Habbie committed Feb 7, 2017
    Configuration menu
    Copy the full SHA
    235d37e View commit details
    Browse the repository at this point in the history
  4. Add a luafilename config option

    pieterlexis authored and Habbie committed Feb 7, 2017
    Configuration menu
    Copy the full SHA
    1779975 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1b51e16 View commit details
    Browse the repository at this point in the history
  6. fix off by 7

    Habbie committed Feb 7, 2017
    Configuration menu
    Copy the full SHA
    052fb80 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    e883bc5 View commit details
    Browse the repository at this point in the history
  8. delimit

    Habbie committed Feb 7, 2017
    Configuration menu
    Copy the full SHA
    67375d4 View commit details
    Browse the repository at this point in the history
  9. Don't crash on empty TLS SNI

    On empty SNI, -2 is stored in the hostname_len field. Since it's
    an unsigned type (size_t), this leads to an _interesting_ behavior.
    This was correctly handled in the existing parts of sniproxy, but
    not in the new Lua code.
    rgacogne authored and Habbie committed Feb 7, 2017
    Configuration menu
    Copy the full SHA
    7c662a4 View commit details
    Browse the repository at this point in the history
  10. Detect IPv4-mapped and map to IPv4 based on the binary address

    Otherwise we might get in trouble if some platform / version
    decide to change the textual representation of IPv4-mapped addresses.
    rgacogne authored and Habbie committed Feb 7, 2017
    Configuration menu
    Copy the full SHA
    b875701 View commit details
    Browse the repository at this point in the history
  11. unbreak make check

    Habbie committed Feb 7, 2017
    Configuration menu
    Copy the full SHA
    ed521c5 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    9884477 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    1e4d3f1 View commit details
    Browse the repository at this point in the history
  14. remove debugging code

    make sure addr is a valid nul-terminated string
    avoid useless strlen call
    Habbie committed Feb 7, 2017
    Configuration menu
    Copy the full SHA
    1d309c5 View commit details
    Browse the repository at this point in the history
  15. move includes; change to <>

    Habbie committed Feb 7, 2017
    Configuration menu
    Copy the full SHA
    efafec4 View commit details
    Browse the repository at this point in the history
  16. whitespace nit

    Habbie committed Feb 7, 2017
    Configuration menu
    Copy the full SHA
    6f70399 View commit details
    Browse the repository at this point in the history
  17. change example domain

    Habbie committed Feb 7, 2017
    Configuration menu
    Copy the full SHA
    ff5b6ce View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    e1be7f4 View commit details
    Browse the repository at this point in the history