Last active
January 1, 2022 08:38
-
-
Save flayder/f0394f37a749444adb973200f426c761 to your computer and use it in GitHub Desktop.
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
iptables -A INPUT -d [ip - сервера]/32 -p tcp -m tcp --dport [номер порта] -j ACCEPT | |
или дать разрешение для всех портов | |
сохранить текущие настройки | |
iptables-save > название файла | |
затем | |
iptables -P INPUT ACCEPT | |
iptables -P OUTPUT ACCEPT | |
iptables -P FORWARD ACCEPT | |
iptables -F |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment