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
7 changes: 5 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
version: "3"

networks:
default:
enable_ipv6: true
services:
NetWatchSSHAttackPod:
image: netwatchteam/netwatch_ssh-attackpod:latest
Expand All @@ -12,7 +14,8 @@ services:
NETWATCH_TEST_MODE: ${NETWATCH_TEST_MODE:-false}
restart: unless-stopped
ports:
- "${NETWATCH_PORT:-22}:22"
- "${NETWATCH_PORT:-22}:2222"
- "[::]:${NETWATCH_PORT:-22}:2222"
deploy:
resources:
limits:
Expand Down
8 changes: 7 additions & 1 deletion src/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,14 @@ ENV PATH="/home/appuser/venv/bin:$PATH"
# Copy application code
COPY monitor.py /home/appuser/code/

# Move sshd to Port 2222
# change /etc/ssh/sshd_config by uncommenting Port 22 and changing it to Port 2222
RUN sed -i.orig -e 's/^#\(Port 22\)/\122/' \
-e 's/^#\(AddressFamily\).*$/\1 any/' /etc/ssh/sshd_config

# Expose SSH port
EXPOSE 22
# Changed from 22 to 2222
EXPOSE 2222

# Report the version of the openSSH server
RUN sshd -V
Expand Down