Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ At least one of the following parameters is mandatory. Please make sure you chec
- **CNTLM_PASSLM**
- **CNTLM_PASSNT**
- **CNTLM_PASSNTLMv2**


Note that in this case we are not passing the plain text password of the user, but its hash, which can be generated with the following command:
```bash
Expand All @@ -170,6 +171,7 @@ $ sudo cntlm -H
The following parameters are optional. If not provided, they will be assigned default values:

- **CNTLM_PROXY_PORT**: it defaults to 3128
- **CNTLM_NOPROXY**: it default to localhost, 127.0.0.*, 10.*, 192.168.*

```bash
sudo docker run --name cntlm -e CNTLM_USERNAME=jascha -e CNTLM_DOMAIN=lostinmalloc -e CNTLM_PROXY_URL=proxy.lostinmalloc.com -e CNTLM_PROXY_PORT=3128 -e CNTLM_PASSNTLMv2=62229EA8B6C0EEC4D887AD048960CC01 -d jaschac/cntlm
Expand Down
3 changes: 2 additions & 1 deletion files/etc/cntlm.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Domain <CNTLM_DOMAIN>
PassLM <CNTLM_PASSLM>
PassNT <CNTLM_PASSNT>
PassNTLMv2 <CNTLM_PASSNTLMv2>
NoProxy <CNTLM_NOPROXY>

# Specify the netbios hostname cntlm will send to the parent
# proxies. Normally the value is auto-guessed.
Expand All @@ -19,7 +20,7 @@ PassNTLMv2 <CNTLM_PASSNTLMv2>
# List of parent proxies to use. More proxies can be defined
# one per line in format <proxy_ip>:<proxy_port>
#
Proxy <CNTLM_PROXY_URL>:<CNTLM_PROXY_PORT>
#Proxy <CNTLM_PROXY_URL>:<CNTLM_PROXY_PORT>

# List addresses you do not want to pass to parent proxies
# * and ? wildcards can be used
Expand Down
3 changes: 3 additions & 0 deletions scripts/init_container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ set -e
: ${CNTLM_PROXY_PORT:="3128"}
: ${CNTLM_PROXY_URL:=""}
: ${CNTLM_USERNAME:=""}
: ${CNTLM_NOPROXY:="localhost, 127.0.0.*, 10.*, 192.168.*"}


# Check if mandatory args were passed
if [[ -z $CNTLM_USERNAME || -z $CNTLM_DOMAIN || -z $CNTLM_PROXY_URL ]]
Expand All @@ -38,6 +40,7 @@ then
sed -i 's/<CNTLM_PROXY_PORT>/'${CNTLM_PROXY_PORT}/g /etc/cntlm.conf
sed -i 's/<CNTLM_PROXY_URL>/'${CNTLM_PROXY_URL}/g /etc/cntlm.conf
sed -i 's/<CNTLM_USERNAME>/'${CNTLM_USERNAME}/g /etc/cntlm.conf
sed -i 's/<CNTLM_NOPROXY>/'${CNTLM_NOPROXY}/g /etc/cntlm.conf
fi

# Build and install cntlm
Expand Down