This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| ## save existing rules | |
| sudo iptables-save > ~/iptables-rules | |
| ## modify rules, remove drop and reject lines | |
| grep -v "DROP" iptables-rules > tmpfile && mv tmpfile iptables-rules-mod | |
| grep -v "REJECT" iptables-rules-mod > tmpfile && mv tmpfile iptables-rules-mod | |
| ## apply the modifications | |
| sudo iptables-restore < ~/iptables-rules-mod | |
| ## check |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| ################# LFD459:1.25.1 s_02/k8sWorker.sh ################ | |
| # The code herein is: Copyright the Linux Foundation, 2022 | |
| # | |
| # This Copyright is retained for the purpose of protecting free | |
| # redistribution of source. | |
| # | |
| # URL: https://training.linuxfoundation.org | |
| # email: info@linuxfoundation.org | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # ############################################################### | |
| # NOTE: This script was slightly edited by Jakub Kindermann on 16/11/2023 to run the script on arm64-linux architecture | |
| ################# LFD459:1.25.1 s_02/k8scp.sh ################ | |
| # The code herein is: Copyright the Linux Foundation, 2022 | |
| # | |
| # This Copyright is retained for the purpose of protecting free | |
| # redistribution of source. | |
| # | |
| # URL: https://training.linuxfoundation.org |