Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save flayder/f0394f37a749444adb973200f426c761 to your computer and use it in GitHub Desktop.
Save flayder/f0394f37a749444adb973200f426c761 to your computer and use it in GitHub Desktop.
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