Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@Radar:~/itn1_cluster_repo/itn1_cluster/scripts/itn1_helpers# firewall-cmd --permanent --zone=public --add-service=ssh
- Warning: ALREADY_ENABLED: ssh
- success
- root@Radar:~/itn1_cluster_repo/itn1_cluster/scripts/itn1_helpers# firewall-cmd --permanent --zone=public --add-port=5269/tcp
- success
- root@Radar:~/itn1_cluster_repo/itn1_cluster/scripts/itn1_helpers# ./itn1_prepare --set-firewall
- success
- success
- success
- Reloading firewall
- Error: COMMAND_FAILED: '/usr/sbin/iptables-restore -w -n' failed: iptables-restore v1.8.2 (nf_tables):
- line 4: RULE_REPLACE failed (No such file or directory): rule in chain INPUT
- line 4: RULE_REPLACE failed (No such file or directory): rule in chain OUTPUT
- These are your new firewall rules:
- public
- target: default
- icmp-block-inversion: no
- interfaces:
- sources:
- services:
- ports:
- protocols:
- masquerade: no
- forward-ports:
- source-ports:
- icmp-blocks:
- rich rules:
- root@Radar:~/itn1_cluster_repo/itn1_cluster/scripts/itn1_helpers# firewall-cmd --list-all
- public
- target: default
- icmp-block-inversion: no
- interfaces:
- sources:
- services:
- ports:
- protocols:
- masquerade: no
- forward-ports:
- source-ports:
- icmp-blocks:
- rich rules:
- root@Radar:~/itn1_cluster_repo/itn1_cluster/scripts/itn1_helpers# reboot
- Connection to 94.23.207.116 closed by remote host.
- Connection to 94.23.207.116 closed.
- PS C:\Users\Griff0> ssh griff@94.23.207.116
- ssh: connect to host 94.23.207.116 port 22: Connection timed out
- PS C:\Users\Griff0> ssh griff@94.23.207.116
- Linux Radar 4.19.0-8-amd64 #1 SMP Debian 4.19.98-1 (2020-01-26) x86_64
- The programs included with the Debian GNU/Linux system are free software;
- the exact distribution terms for each program are described in the
- individual files in /usr/share/doc/*/copyright.
- Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
- permitted by applicable law.
- Last login: Wed Apr 1 02:16:08 2020 from 199.229.250.183
- Linux Radar 4.19.0-8-amd64 #1 SMP Debian 4.19.98-1 (2020-01-26) x86_64
- The programs included with the Debian GNU/Linux system are free software;
- the exact distribution terms for each program are described in the
- individual files in /usr/share/doc/*/copyright.
- Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
- permitted by applicable law.
- Last login: Wed Apr 1 02:16:08 2020 from 199.229.250.183
- griff@Radar:~$ sudo su
- [sudo] password for griff:
- root@Radar:/home/griff# su -
- root@Radar:~# cd /root/itn1_cluster_repo/itn1_cluster/scripts/itn1_helpers/
- root@Radar:~/itn1_cluster_repo/itn1_cluster/scripts/itn1_helpers# firewall-cmd --list-all
- public
- target: default
- icmp-block-inversion: no
- interfaces:
- sources:
- services: dhcpv6-client ssh
- ports: 5269/tcp 3001/tcp 3002/tcp 3003/tcp
- protocols:
- masquerade: no
- forward-ports:
- source-ports:
- icmp-blocks:
- rich rules:
- root@Radar:~/itn1_cluster_repo/itn1_cluster/scripts/itn1_helpers#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement