W3cubDocs

/SaltStack

salt.states.firewall module

State to check firewall configurations

New in version 2016.3.0.

salt.states.firewall.check(name, port=None, **kwargs)

Checks if there is an open connection from the minion to the defined host on a specific port.

name
host name or ip address to test connection to
port
The port to test the connection on
kwargs
Additional parameters, parameters allowed are:
proto (tcp or udp) family (ipv4 or ipv6) timeout
testgoogle:
  firewall.check:
    - name: 'google.com'
    - port: 80
    - proto: 'tcp'

© 2019 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltstack.com/en/latest/ref/states/all/salt.states.firewall.html