• news
  • pics
  • linux
  • windows
  • proxmox
  • game
  • news
  • pics
  • linux
  • windows
  • proxmox
  • game
Home
linux

centos firewall configuration

1 check firewall service status
systemctl status firewalld

2 check firewall status
firewall-cmd --state

3 open,restart,close firewalld service

# start
service firewalld start
# restart
service firewalld restart
# close
service firewalld stop

4 check firewall rules
firewall-cmd --list-all

5 edit rules

# check open port
firewall-cmd --query-port=8080/tcp
# open 80 port
firewall-cmd --permanent --add-port=80/tcp
# remove port
firewall-cmd --permanent --remove-port=8080/tcp
#restart firewall (need restart firewall after config change)
firewall-cmd --reload 
Previous article how to cancel display of usb disk on file manger in win10
Next article how to get real ip of user when you enable Cloudflare CDN for Nginx/Apache

therock

4 Comments

  1. Usescedge
    June 14, 2021 at 10:53 pm

  2. Usescedge
    June 13, 2021 at 7:03 pm

    buy nolvadex online

  3. tinder Not logging Into Facebook
    May 16, 2021 at 4:24 pm

    tinder Not logging Into Facebook

    centos firewall configuration – rock funs

  4. baby name tinder
    May 16, 2021 at 3:10 pm

    baby name tinder

    centos firewall configuration – rock funs

Meta
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Categories
  • game
  • linux
  • news
  • pics
  • proxmox
  • windows
Recent Posts
  • proxmox7.3直通显卡
  • Proxmox VE 直通显卡方案及解决N卡Code43
  • Linux系统出现:You have new mail in /var/spool/mail/root 的原因及解决办法
  • debian系统解决中文乱码
  • pve添加git和pvetools
Recent Comments
  • EdgarTot on proxmox7.3直通显卡
  • Ashvem on proxmox7.3直通显卡
  • Tedvem on proxmox7.3直通显卡
  • Jackvem on proxmox7.3直通显卡
  • Miavem on proxmox7.3直通显卡
Archives
  • March 2023 (1)
  • December 2022 (4)
  • November 2022 (6)
  • April 2022 (1)
  • February 2022 (5)
  • January 2022 (2)
  • December 2021 (3)
  • November 2021 (1)
  • October 2021 (2)
  • September 2021 (1)
  • August 2021 (1)
  • July 2021 (8)
  • June 2021 (14)
  • May 2021 (2)
  • April 2021 (2)
  • March 2021 (10)
  • January 2021 (4)
  • December 2020 (4)
  • November 2020 (13)
  • April 2020 (276)
  • March 2020 (1)
  • June 2019 (5)
  • May 2019 (10)
  • December 2015 (1)