PARALLAX

cpm_iptables_config

Set network IPTables parameters in WTI OOB and PDU devices

Collection: wti.remote

Full Name: wti.remote.cpm_iptables_config

Synopsis

Set network IPTables parameters in WTI OOB and PDU devices

Parameters

NameTypeRequiredDefaultDescription
cpm_urlstringyesWTI device host or host:port
cpm_usernamestringyesWTI username; an empty username selects an API token
cpm_passwordstringyesWTI password or API token
protocolint0 for IPv4 and 1 for IPv6
indexlistOne-based rule indexes
commandlistyesIPTables commands
clearintClear the table before applying commands
use_httpsbooltrueUse HTTPS instead of HTTP
validate_certsbooltrueValidate the device TLS certificate
use_proxyboolfalseObserve HTTP proxy environment variables

Example

yaml
- name: Replace one IPTables entry on a WTI device
  wti.remote.cpm_iptables_config:
    cpm_url: nonexist.wti.com
    cpm_username: super
    cpm_password: super
    protocol: 0
    index:
      - 1
    command:
      - iptables -A INPUT -p tcp --dport 443 -j ACCEPT
    use_https: true
    validate_certs: false
Search
    ↑ ↓ move↵ openesc close