Tag: windows

  • Cntlm gateway mode setup for docker

    Cntlm gateway mode setup for docker

    In CNTLM we need to allow Gateway mode to allow other computers to connect trough our proxy. We used this in our corporate environment to allow docker images to be pulled from the web as docker does not have a nice way to hange proxies with NTLM authentication.

    We changed cntlm.ini around line 70.

    Uncommented Gateway flag

    # Enable to allow access from other computers
    #
    Gateway yes
    

    And for additional security specify specified who is allowed to connect to our proxy.

    # Useful in Gateway mode to allow/restrict certain IPs
    # Specifiy individual IPs or subnets one rule per line.
    #
    Allow 10.10.10.1
    Allow 127.0.0.1
    Allow 10.0.75.0/24
    Deny 0/0
    

    Be careful as docker for windows (not talking about docker toolbox) is not running under localhost, but its running in its own vhost environment. This means that you must specify the proxy in docker as http://10.10.10.1:3128/ and not use localhost or 127.0.0.1.

    Have a nice day.

  • Fastest way to create a file list

    Dir helpThe fastest way on Windows to create a file with a list of all files in a directory and its subdirectories  is pretty simple. This should work on most windows desktops. Open the Command Prompt ( Start button -> cmd ) and run the following command.
    The /S switch searches all subdirectories.
    The /B switch ommits all header and other stuff.
    The > forwards all output to the specified filelist.txt file.

     

    dir /B /S > filelist.txt
    

    * For other switches check the output of

    dir /?

    Tested on a structure composed of 1,5M files. Works flawlessly.