Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

firewalld redhat

[tcarrigan@server ~]$ firewall-cmd --list-all
public (active)
  target: default
  icmp-block-inversion: no
  interfaces: enp0s3 enp0s8
  sources: 
  services: cockpit dhcpv6-client mountd nfs rpc-bind ssh
  ports: 
  protocols: 
  masquerade: no
  forward-ports: 
  source-ports: 
  icmp-blocks: 
  rich rules: 
Comment

firewalld redhat

[tcarrigan@server ~]$ sudo firewall-cmd --zone=external --list-ports
60001/udp
Comment

firewalld redhat

[tcarrigan@server ~]$ firewall-cmd --get-zones
block dmz drop external home internal libvirt public trusted work
Comment

firewalld redhat

[tcarrigan@server ~]$ firewall-cmd --zone=external --list-all
external
  target: default
  icmp-block-inversion: no
  interfaces: 
  sources: 
  services: ssh
  ports: 
  protocols: 
  masquerade: yes
  forward-ports: 
  source-ports: 
  icmp-blocks: 
  rich rules: 
Comment

firewalld redhat

[tcarrigan@server ~]$ sudo firewall-cmd --zone=external --add-service=ftp
[sudo] password for tcarrigan: 
success
Comment

firewalld redhat

[tcarrigan@server ~]$ firewall-cmd --zone=external --list-services
ftp ssh
Comment

firewalld redhat

[tcarrigan@server ~]$ sudo firewall-cmd --reload
success

[tcarrigan@server ~]$ firewall-cmd --zone=external --list-all
external
  target: default
  icmp-block-inversion: no
  interfaces: 
  sources: 
  services: ssh
  ports: 
  protocols: 
  masquerade: yes
  forward-ports: 
  source-ports: 
  icmp-blocks: 
  rich rules: 
Comment

firewalld redhat

[tcarrigan@server ~]$ sudo firewall-cmd --permanent --zone=external --remove-service=ftp
Warning: NOT_ENABLED: ftp
success
Comment

firewalld redhat

[tcarrigan@server ~]$ sudo firewall-cmd --permanent --zone=external --add-port=60001/udp
success
Comment

firewalld redhat

[tcarrigan@server ~]$ sudo firewall-cmd --permanent --zone=external --remove-port=60001/udp
success
Comment

PREVIOUS NEXT
Code Example
Shell :: install lc ubuntu 
Shell :: xfce apt install xfce4-xkb-plugin 
Shell :: tgz terminal 
Shell :: kontiki 
Shell :: linux ls sort by biggest file first 
Shell :: install docker ce on centos 
Shell :: how to change ssh key for git 
Shell :: Kubernetes cluster unreachable: Get "https://192.168.56.10:6443/version?timeout=32s": net/http: TLS handshake timeout 
Shell :: wget in backround 
Shell :: chown to current user 
Shell :: close sessin git cli 
Shell :: linux How do you find files that have specific permissions? 
Shell :: screen 
Shell :: ssh-keygen not interactive 
Shell :: install tailwind using yarn 
Shell :: node-gyp rebuild error ubuntu 20.04 
Shell :: What command can you type to perform a system state backup? 
Shell :: error: RPC failed; curl 56 GnuTLS recv error (-110): The TLS connection was non-properly terminated. 
Shell :: storybook vite installtion 
Shell :: activar htaccess en apache 
Shell :: fast downloader command line 
Shell :: create branch git command 
Shell :: shell run in background no output 
Shell :: xstate install 
Shell :: how to check pia checksum 
Shell :: curl detailed response 
Shell :: Unable to correct problems, you have held broken packages installing cuda 
Shell :: linux move everything except 
Shell :: Install nomachine in jetson nano 
Shell :: /bin/bash: ./darknet: No such file or directory 
ADD CONTENT
Topic
Content
Source link
Name
2+1 =