1
0
mirror of https://github.com/juliengk/csf-post-docker.git synced 2023-10-10 13:37:41 +02:00
Commit Graph

12 Commits

Author SHA1 Message Date
David Snopek
1d69597f6b Attempt to get rules matching what the docker daemon produces with regard to bridges 2016-11-09 08:46:49 -06:00
Julien Kassar
fabdd8010b Fix order of rules 2016-11-01 17:48:40 -04:00
Julien Kassar
4c4fa1fe63 Refactor one iptables rule 2016-11-01 17:46:17 -04:00
Julien Kassar
26b38436db Fix support of Docker Network 2016-10-25 23:08:35 -04:00
Julien Kassar
f542ba9ec1 Update condition equal 2016-10-23 23:49:21 -04:00
Julien Kassar
e30511af13 Add support of Docker Network 2016-10-23 23:46:11 -04:00
Julien Kassar
e78db14fbf Add verification of NetworkMode setting when getting IP address value 2016-09-26 08:58:27 -04:00
Julien Kassar
7c303d7c3c Merge pull request #6 from johnou/correct_shebang
Correct shebang to avoid confusion
2016-04-27 22:38:21 -04:00
Johno Crawford
751b5d2930 Correct shebang to avoid confusion
In this case the shebang isn't even used as the script is invoked with /bin/sh &syscommand(__LINE__,"/bin/sh /etc/csf/csfpost.sh"); (even with the csf-pre_post_sh project as it just sources the script).
2016-04-27 07:30:26 +02:00
Ian Oswald
f251e54859 Ensure dockers IP bindings are maintained for ip:port forwarding.
When exposing a port only to a particular IP address with `-p 127.0.0.1:3005:3000` after a csf restart previously this would expose port 3005 to the world. With this change, ports that aren't exposed to 0.0.0.0 are limited.
2016-04-27 14:51:40 +10:00
Johno Crawford
1e18b36add Ensure required paths are available when post script is executed.
I observed when csf is updated via cron [1] that the rules csfpost.sh should generate are not present, I suspect the path to the binaries invoked are not available.

[1] cat /etc/cron.d/csf_update
SHELL=/bin/sh
27 4 * * * root /usr/sbin/csf -u
2016-04-13 12:19:29 +02:00
Julien Kassar
ba316685f6 Add install script 2016-03-12 14:25:09 -05:00