Advertisement
Gryph_The_Grey

set firewall

Mar 31st, 2020
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.92 KB | None | 0 0
  1. root@Radar:~/itn1_cluster_repo/itn1_cluster/scripts/itn1_helpers# firewall-cmd --permanent --zone=public --add-service=ssh
  2. Warning: ALREADY_ENABLED: ssh
  3. success
  4. root@Radar:~/itn1_cluster_repo/itn1_cluster/scripts/itn1_helpers# firewall-cmd --permanent --zone=public --add-port=5269/tcp
  5. success
  6. root@Radar:~/itn1_cluster_repo/itn1_cluster/scripts/itn1_helpers# ./itn1_prepare --set-firewall
  7. success
  8. success
  9. success
  10.  
  11. Reloading firewall
  12. Error: COMMAND_FAILED: '/usr/sbin/iptables-restore -w -n' failed: iptables-restore v1.8.2 (nf_tables):
  13. line 4: RULE_REPLACE failed (No such file or directory): rule in chain INPUT
  14. line 4: RULE_REPLACE failed (No such file or directory): rule in chain OUTPUT
  15.  
  16.  
  17. These are your new firewall rules:
  18. public
  19. target: default
  20. icmp-block-inversion: no
  21. interfaces:
  22. sources:
  23. services:
  24. ports:
  25. protocols:
  26. masquerade: no
  27. forward-ports:
  28. source-ports:
  29. icmp-blocks:
  30. rich rules:
  31.  
  32. root@Radar:~/itn1_cluster_repo/itn1_cluster/scripts/itn1_helpers# firewall-cmd --list-all
  33. public
  34. target: default
  35. icmp-block-inversion: no
  36. interfaces:
  37. sources:
  38. services:
  39. ports:
  40. protocols:
  41. masquerade: no
  42. forward-ports:
  43. source-ports:
  44. icmp-blocks:
  45. rich rules:
  46.  
  47. root@Radar:~/itn1_cluster_repo/itn1_cluster/scripts/itn1_helpers# reboot
  48. Connection to 94.23.207.116 closed by remote host.
  49. Connection to 94.23.207.116 closed.
  50. PS C:\Users\Griff0> ssh griff@94.23.207.116
  51. ssh: connect to host 94.23.207.116 port 22: Connection timed out
  52. PS C:\Users\Griff0> ssh griff@94.23.207.116
  53. Linux Radar 4.19.0-8-amd64 #1 SMP Debian 4.19.98-1 (2020-01-26) x86_64
  54.  
  55. The programs included with the Debian GNU/Linux system are free software;
  56. the exact distribution terms for each program are described in the
  57. individual files in /usr/share/doc/*/copyright.
  58.  
  59. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
  60. permitted by applicable law.
  61. Last login: Wed Apr 1 02:16:08 2020 from 199.229.250.183
  62. Linux Radar 4.19.0-8-amd64 #1 SMP Debian 4.19.98-1 (2020-01-26) x86_64
  63.  
  64. The programs included with the Debian GNU/Linux system are free software;
  65. the exact distribution terms for each program are described in the
  66. individual files in /usr/share/doc/*/copyright.
  67.  
  68. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
  69. permitted by applicable law.
  70. Last login: Wed Apr 1 02:16:08 2020 from 199.229.250.183
  71. griff@Radar:~$ sudo su
  72. [sudo] password for griff:
  73. root@Radar:/home/griff# su -
  74. root@Radar:~# cd /root/itn1_cluster_repo/itn1_cluster/scripts/itn1_helpers/
  75. root@Radar:~/itn1_cluster_repo/itn1_cluster/scripts/itn1_helpers# firewall-cmd --list-all
  76. public
  77. target: default
  78. icmp-block-inversion: no
  79. interfaces:
  80. sources:
  81. services: dhcpv6-client ssh
  82. ports: 5269/tcp 3001/tcp 3002/tcp 3003/tcp
  83. protocols:
  84. masquerade: no
  85. forward-ports:
  86. source-ports:
  87. icmp-blocks:
  88. rich rules:
  89.  
  90. root@Radar:~/itn1_cluster_repo/itn1_cluster/scripts/itn1_helpers#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement