Commit Graph
100 Commits
Author SHA1 Message Date
Chai Feng a273ac9d51 221002-nf_tables 2022-10-02 17:03:51 +08:00
Chai Feng cdad5e2a02 221002-legacy 2022-10-02 17:01:24 +08:00
Chai Feng 9d890ee3ee Add integration tests related to PR #71 2022-09-26 22:00:05 +08:00
Chai Feng e99858510d Update Bach Testing Framework 2022-09-21 08:43:58 +08:00
Chai Feng 712b0e8075 Change to iptables (nf_tables), using Ubuntu 22.04 2022-09-20 21:51:39 +08:00
Chai Feng 5033bf815c Auto select the correct agent image for different version of iptables 2022-09-20 21:38:10 +08:00
Chai Feng d110fc00ff Testing on ubuntu 22.04 2022-09-01 19:53:22 +08:00
Chai Feng c95d51c975 Run integration tests on Apple Silicon with Parallels 2022-07-28 14:53:50 +08:00
Chai Feng 97543811ea Re-indenting ufw-docker--allow 2021-10-23 21:27:37 +08:00
Chai Feng afd62aa96b Version 210925 released 2021-09-25 20:43:12 +08:00
Chai Feng 6986267d30 Revert "Release the new version of ufw-docker-agent image" since the DockerHub
cannot build the image automatically

This reverts commit fc7840efef.
2021-09-25 15:41:17 +08:00
Chai Feng 4833b190ff Update readme 2021-09-25 15:26:02 +08:00
Chai Feng fc7840efef Release the new version of ufw-docker-agent image 2021-09-25 15:25:29 +08:00
Chai Feng 0150af87dc Add Github Actions to run unit tests 2021-09-13 13:46:10 +08:00
Chai Feng cc58088bc5 Update test/bach to the latest version 2021-09-12 08:52:29 +08:00
Chai Feng 2b4a44ff7a Update the vagrant box 2021-04-02 10:42:01 +08:00
Chai FengandGitHub a444fb9457 Update README.md, add a link to the docker image 2020-08-19 17:50:20 +08:00
Chai Feng 347bd313e6 Release Docker Image ufw-docker-agent:200812 2020-08-12 13:50:34 +08:00
Chai Feng e12810d055 Upgrade ufw-docker-agent image to Ubuntu 20.04 & Docker 19.03.12 2020-08-12 13:48:01 +08:00
Chai Feng 173f9659d7 Fix a variable undefined error 2020-08-12 13:48:01 +08:00
Chai Feng 3739f1396b Allow ufw to manage connections from docker containers 2020-08-12 13:48:01 +08:00
Chai Feng 9d7a654a17 Logging blocked connections 2020-08-12 13:48:01 +08:00
Chai Feng 4e16b4d359 Upgrade testing VM to Ubuntu 20.04 & Docker 19.03.11 2020-08-12 13:48:01 +08:00
Chai Feng 6bc7eed24c Forgot to init submodules 2020-08-12 13:48:01 +08:00
Chai Feng d9ee549565 Move fetching submdoule to Testing 2020-08-12 13:48:01 +08:00
Chai Feng 972716443f Set depth to 1 when fetch submodules 2020-08-12 13:48:01 +08:00
Chai Feng 409fb88131 Fetch submodules in Drone CI 2020-08-12 13:48:01 +08:00
Chai Feng 8521a6d1de Add .drone.yml 2020-08-12 13:48:01 +08:00
Chai Feng b7e1f8860e Using Docker 19.03.3, auto-restart webapp 2020-08-12 13:48:01 +08:00
Chai Feng 149e84e8af Update bach 2020-08-12 13:48:01 +08:00
Chai Feng 6d1c5a229b Add tests for ufw-docker--service-delete 2020-08-12 13:48:01 +08:00
Chai Feng 52fa5dc1e1 Add a test case for ufw-docker--get-env-list 2020-08-12 13:48:01 +08:00
Chai Feng 4e6d4332e0 Update readme, add build status 2020-08-12 13:48:01 +08:00
Chai Feng 67bfc771c6 Update travis ci 2020-08-12 13:48:01 +08:00
Chai Feng 95353863b1 Add testing in Vagrant 2020-08-12 13:48:01 +08:00
Chai Feng 36fec96d9f Update vm image to ubuntu 18.04 with docker 19.03 2020-08-12 13:48:01 +08:00
Chai Feng bac764e44e Add Tests for ufw-docker--service-allow 2020-08-12 13:48:01 +08:00
Chai Feng 9137695937 Fix a test case 2020-08-12 13:48:01 +08:00
Chai Feng 2d2b968024 Add tests for ufw-docker--service-allow, failed scenarios 2020-08-12 13:48:01 +08:00
Chai Feng 5be7dfb366 Add tests for ufw-docker--get-service-{id,name} 2020-08-12 13:48:01 +08:00
Chai Feng 6291251734 Add a new test suite for ufw-docker--service commands 2020-08-12 13:48:01 +08:00
Chai Feng b701f6baee Add two tests for ufw-docker--delete 2020-08-12 13:48:01 +08:00
Chai Feng bcfca79758 Add a test case for ufw-docker--list-number 2020-08-12 13:48:01 +08:00
Chai Feng 491324a1f4 Add tests for ufw-docker--list 2020-08-12 13:48:01 +08:00
Chai Feng 1c6dd31de7 Add tests for ufw-docker--instance-name 2020-08-12 13:48:01 +08:00
Chai Feng 8444f87760 Update Bach, add a test case for ufw-docker--allow 2020-08-12 13:48:01 +08:00
Chai Feng aef8f7df82 Run unit testing in Vagrant 2020-08-12 13:48:01 +08:00
Chai Feng 3893c86236 Add test cases for ufw-docker--add-rule 2020-08-12 13:48:01 +08:00
Chai Feng 3598011787 Add a test case for ufw-docker--allow, the proto doesn't match 2020-08-12 13:48:01 +08:00
Chai Feng c79d1ad1a6 Add test cases for ufw-docker--allow 2020-08-12 13:48:01 +08:00
Chai Feng b37d892048 Update slack token 2020-08-12 13:48:01 +08:00
Chai Feng 6c695ed208 Add travis-ci 2020-08-12 13:48:01 +08:00
Chai Feng 22463cbf6e Update bash to 0.2.6 2020-08-12 13:48:01 +08:00
Chai Feng df963fdb31 Add Bach Testing Framework and several basic test cases 2020-08-12 13:48:01 +08:00
Chai Feng 05006bf638 set -exu 2020-08-12 13:48:01 +08:00
Chai Feng 82479773c5 fix sudoers 2020-08-12 13:48:01 +08:00
Chai Feng 0df69e787c change default nic type 2020-08-12 13:48:01 +08:00
Chai Feng f3cf64d598 Enable debug in Vagrant 2020-08-12 13:48:01 +08:00
Chai Feng 0c3da26e83 use local build image in vagrant 2020-08-12 13:48:01 +08:00
Chai Feng 665d3c5a2a Including license and readme in the docker image 2020-08-12 13:48:01 +08:00
Chai Feng 0ad2ebbd47 build ufw-docker-agent image in Vagrant 2020-08-12 13:48:01 +08:00
Chai Feng ab03a6aa64 Always using english to avoid multilingual issue 2020-01-09 13:05:18 +08:00
Chai FengandGitHub e2e6d76187 Merge pull request #27 from tobiashe/master
fixing issue \#25 Doesn't with other locale
2020-01-09 12:14:14 +08:00
Chai FengandGitHub 3d2259125b Merge pull request #13 from kronthto/patch-1
ufw reload
2019-06-03 13:16:47 +08:00
Chai Feng 2545d2977b allow re-provision for vagrant 2018-12-01 12:32:33 +08:00
Chai Feng 8e9a7c20f5 Add a logging rule in firewall rules 2018-12-01 12:31:59 +08:00
Chai Feng d4fbb6685c create the symbolic link if not exist 2018-12-01 12:08:20 +08:00
Chai Feng 10ce4a8dbe fix wrong check command in Vagrantfile 2018-12-01 12:08:01 +08:00
Chai Feng da0738d8c7 include license and readme in the docker image 2018-11-25 13:10:38 +08:00
Chai Feng 2fdeecb4cb update readme, to allow a bigger port range to receive DNS packages 2018-11-25 13:07:59 +08:00
Chai Feng 768d7b0577 refactor check-install function 2018-11-24 13:48:31 +08:00
Chai Feng d831601aa9 update readme, ufw-docker check 2018-11-23 22:10:56 +08:00
Chai Feng ef16648ecb add check sub-command, for checking installation of firewall rules 2018-11-23 22:10:06 +08:00
Chai Feng 766aa9c727 fix receiving DNS packages 2018-11-23 16:46:19 +08:00
Chai Feng 34e84c01b3 try it out 2018-10-07 08:52:47 +08:00
Chai Feng ce5010172a add Vagrantfile, for testing this script 2018-10-07 08:34:16 +08:00
Chai Feng 099f49653c extract function "is-installed" 2018-10-06 21:40:43 +08:00
Chai Feng 1fe82b9560 typo 2018-10-06 16:21:22 +08:00
Chai Feng 81f85aba98 update readme, add docker swarm support 2018-10-06 15:52:55 +08:00
Chai Feng 88683854ab Delete service environment variables with the same service name 2018-10-06 15:25:47 +08:00
Chai Feng 36afb81244 remove "force add" 2018-10-06 13:06:22 +08:00
Chai Feng 4ab8060b92 fix code problems 2018-10-06 13:02:29 +08:00
Chai Feng f16f69a23f check if port list is empty 2018-10-06 06:43:06 +08:00
Chai Feng eafd3b70f9 an unexpected space 2018-10-06 06:38:56 +08:00
Chai Feng b20a989c24 refactor UFW_ACTION 2018-10-05 19:31:09 +08:00
Chai Feng a3195297d7 fix wrong syntax 2018-10-05 19:30:48 +08:00
Chai Feng 0c23335317 using env to find a service which is to be deleted 2018-10-05 18:52:21 +08:00
Chai Feng 8116401b7c fix wrong type of service_env 2018-10-05 18:22:22 +08:00
Chai Feng 965659601c fix typo 2018-10-05 18:21:52 +08:00
Chai Feng ca686dd582 Infinite loop 2018-10-05 18:11:33 +08:00
Chai Feng 8712595939 add service name in the env variable 2018-10-05 18:05:20 +08:00
Chai Feng 7e659b23c9 update entrypoint: update or deny service rule 2018-10-05 16:26:07 +08:00
Chai Feng 8556bb7687 add sub command: add-service-rule 2018-10-05 16:25:44 +08:00
Chai Feng b0aa7318da add internal sub-command raw-command 2018-10-05 14:11:57 +08:00
Chai Feng e92bdff8c3 extract main function 2018-10-05 13:39:57 +08:00
Chai Feng b1aec55699 use published port, not target port 2018-10-05 10:34:08 +08:00
Chai Feng 00bf86f138 fix bug 2018-10-03 15:57:54 +08:00
Chai Feng 589832c221 fix a bug about finding instance name 2018-10-03 15:44:08 +08:00
Chai Feng 52ca7eda4d allow DEBUG env in entrypoint 2018-10-03 15:43:44 +08:00
Chai Feng be9bdf1782 instance names may contains dot 2018-10-03 15:43:11 +08:00