httpd firewall inbound and outbound

  Last login: Mon May  8 20:10:10 on ttys000


The default interactive shell is now zsh.

To update your account to use zsh, please run `chsh -s /bin/zsh`.

For more details, please visit https://support.apple.com/kb/HT208050.

balas-MacBook-Pro:~ bala$ ssh bala@192.168.1.100

bala@192.168.1.100's password: 

Last login: Mon May  8 20:08:35 2023

-bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory

[bala@ansserve1 ~]$ sudo -i

[sudo] password for bala: 

[root@ansserve1 ~]# systemctl status firewalld.service 

 firewalld.service - firewalld - dynamic firewall daemon

   Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)

   Active: active (running) since Mon 2023-05-08 20:11:12 IST; 52s ago

     Docs: man:firewalld(1)

 Main PID: 781 (firewalld)

    Tasks: 2

   CGroup: /system.slice/firewalld.service

           └─781 /usr/bin/python2 -Es /usr/sbin/firewalld --nofork --nopid


May 08 20:11:10 ansserve1.examle.com systemd[1]: Starting firewalld - dynamic firewall daemon...

May 08 20:11:12 ansserve1.examle.com systemd[1]: Started firewalld - dynamic firewall daemon.

May 08 20:11:12 ansserve1.examle.com firewalld[781]: WARNING: AllowZoneDrifting is enabled. This is considered an insecure... now.

Hint: Some lines were ellipsized, use -l to show in full.

[root@ansserve1 ~]# firewall-cmd --add-port=80/tcp --permanent

success

[root@ansserve1 ~]# firewall-cmd --add-port=80/tcp --permanent --zone=public

Warning: ALREADY_ENABLED: 80:tcp

success

[root@ansserve1 ~]# firewall-cmd --reload

success

[root@ansserve1 ~]# firewall-cmd --list-all

public (active)

  target: default

  icmp-block-inversion: no

  interfaces: enp0s3

  sources: 

  services: dhcpv6-client ssh

  ports: 80/tcp

  protocols: 

  masquerade: no

  forward-ports: 

  source-ports: 

  icmp-blocks: 

  rich rules: 

Popular posts from this blog

script and validation for the lvm

Important concepts and bits

shell script to create and extending the volume