Skip to content
Merged
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
4 changes: 2 additions & 2 deletions lib/iptables.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ iptables::run_rules() {

# drop all new traffic from container ip to runnable infra
iptables -I FORWARD -s ${DOCKER_NETWORK} -d 10.0.0.0/8 -m state --state NEW -j DROP
# log container traffic for PSAD
iptables -I FORWARD -s ${DOCKER_NETWORK} -j LOG

# drop all local container to container traffic
iptables -I FORWARD -s ${DOCKER_NETWORK} -d ${DOCKER_NETWORK} -j DROP

# allow consul access (should be before drop)
iptables -I FORWARD -s ${DOCKER_NETWORK} -d ${CONSUL_HOSTNAME} -j ACCEPT

Expand Down