Jump to content

Firewall


Guest
 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 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...