Jump to content

Firewall


xarx
 Share

Recommended Posts

ma

firewall-cmd --help

kilka przydatnych opcji:

--state
--get-active-zones
--get-default-zone
--list     
--get-services
--list-all
--list-ports
--list-forward-ports
--add-port=2575/tcp --zone=public [--permanent]

--zone=public --add-masquerade
--add-forward-port=port=222:proto=tcp:toaddr=172.x.x.x:toport=22 [--permanent]

--reload

dodanie do zaufanych
firewall-cmd --zone=public --permanent --add-source=192.168.1.0/24

całkowite wyczyszczenie:
firewall-cmd --zone=public --permanent --add-source=0.0.0.0/0

 

dobrej zabawy

  • Upvote 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...