Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
RunOnFluxBot committed Jan 20, 2024
1 parent 9536b3d commit 3f1befe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/fluxNetworkHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -1341,7 +1341,7 @@ async function removeDockerContainerAccessToHost() {
await cmdAsync(dropAccessToHostNetwork).catch((error) => log.error(`Error executing dropAccessToHostNetwork command:${error}`));
const giveHostAccessToDockerNetwork = "sudo iptables -I FORWARD -i DOCKER-USER -d $(ip route | grep \"src $(ip addr show dev $(ip route | awk '/default/ {print $5}') | grep \"inet\" | awk 'NR==1{print $2}' | cut -d'/' -f 1)\" | awk '{print $1}') -m state --state ESTABLISHED,RELATED -j ACCEPT";
await cmdAsync(giveHostAccessToDockerNetwork).catch((error) => log.error(`Error executing giveHostAccessToDockerNetwork command:${error}`));
log.info('Firewall is not active. Purging UFW not necessary');
log.info('Access to host from containers removed');
} catch (error) {
log.error(error);
}
Expand Down

0 comments on commit 3f1befe

Please sign in to comment.