Tassos

ESTABLISHED,RELATED - Pure Task

Dec 6th, 2019
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 16.93 KB | None | 0 0
  1. TASK [firewall/iptables : test ESTABLISHED/RELATED] ***************************************************************************************************************************************************************
  2. task path: /home/tas-sos/Nextcloud/Documents/Work/GRNET/Notes/Ansible/tests/Roles/roles/firewall/iptables/tasks/debian.yml:63
  3. <debianCloud2-Knossos> ESTABLISH SSH CONNECTION FOR USER: ansible
  4. <debianCloud2-Knossos> SSH: ansible.cfg set ssh_args: (-C)(-o)(ControlMaster=auto)(-o)(ControlPersist=60s)
  5. <debianCloud2-Knossos> SSH: ansible_password/ansible_ssh_pass not set: (-o)(KbdInteractiveAuthentication=no)(-o)(PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey)(-o)(PasswordAuthentication=no)
  6. <debianCloud2-Knossos> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u set: (-o)(User=ansible)
  7. <debianCloud2-Knossos> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10)
  8. <debianCloud2-Knossos> SSH: found only ControlPersist; added ControlPath: (-o)(ControlPath=/home/tas-sos/.ansible/cp/ba3fa52aac)
  9. <debianCloud2-Knossos> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ansible -o ConnectTimeout=10 -o ControlPath=/home/tas-sos/.ansible/cp/ba3fa52aac debianCloud2-Knossos '/bin/sh -c '"'"'echo ~ansible && sleep 0'"'"''
  10. <debianCloud2-Knossos> (0, b'/home/ansible\n', b'OpenSSH_7.9p1 Debian-10+deb10u1, OpenSSL 1.1.1d  10 Sep 2019\r\ndebug1: Reading configuration data /home/tas-sos/.ssh/config\r\ndebug1: /home/tas-sos/.ssh/config line 49: Applying options for debianCloud2-Knossos\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: Applying options for *\r\ndebug2: resolve_canonicalize: hostname 83.212.72.56 is address\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 13660\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
  11. <debianCloud2-Knossos> ESTABLISH SSH CONNECTION FOR USER: ansible
  12. <debianCloud2-Knossos> SSH: ansible.cfg set ssh_args: (-C)(-o)(ControlMaster=auto)(-o)(ControlPersist=60s)
  13. <debianCloud2-Knossos> SSH: ansible_password/ansible_ssh_pass not set: (-o)(KbdInteractiveAuthentication=no)(-o)(PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey)(-o)(PasswordAuthentication=no)
  14. <debianCloud2-Knossos> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u set: (-o)(User=ansible)
  15. <debianCloud2-Knossos> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10)
  16. <debianCloud2-Knossos> SSH: found only ControlPersist; added ControlPath: (-o)(ControlPath=/home/tas-sos/.ansible/cp/ba3fa52aac)
  17. <debianCloud2-Knossos> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ansible -o ConnectTimeout=10 -o ControlPath=/home/tas-sos/.ansible/cp/ba3fa52aac debianCloud2-Knossos '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/ansible/.ansible/tmp/ansible-tmp-1575645080.7218568-87115344299 `" && echo ansible-tmp-1575645080.7218568-87115344299="` echo /home/ansible/.ansible/tmp/ansible-tmp-1575645080.7218568-87115344299 `" ) && sleep 0'"'"''
  18. <debianCloud2-Knossos> (0, b'ansible-tmp-1575645080.7218568-87115344299=/home/ansible/.ansible/tmp/ansible-tmp-1575645080.7218568-87115344299\n', b'OpenSSH_7.9p1 Debian-10+deb10u1, OpenSSL 1.1.1d  10 Sep 2019\r\ndebug1: Reading configuration data /home/tas-sos/.ssh/config\r\ndebug1: /home/tas-sos/.ssh/config line 49: Applying options for debianCloud2-Knossos\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: Applying options for *\r\ndebug2: resolve_canonicalize: hostname 83.212.72.56 is address\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 13660\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
  19. Using module file /usr/lib/python3/dist-packages/ansible/modules/system/iptables.py
  20. <debianCloud2-Knossos> PUT /home/tas-sos/.ansible/tmp/ansible-local-14045bsczquix/tmpx_5kwx3t TO /home/ansible/.ansible/tmp/ansible-tmp-1575645080.7218568-87115344299/AnsiballZ_iptables.py
  21. <debianCloud2-Knossos> SSH: ansible.cfg set ssh_args: (-C)(-o)(ControlMaster=auto)(-o)(ControlPersist=60s)
  22. <debianCloud2-Knossos> SSH: ansible_password/ansible_ssh_pass not set: (-o)(KbdInteractiveAuthentication=no)(-o)(PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey)(-o)(PasswordAuthentication=no)
  23. <debianCloud2-Knossos> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u set: (-o)(User=ansible)
  24. <debianCloud2-Knossos> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10)
  25. <debianCloud2-Knossos> SSH: found only ControlPersist; added ControlPath: (-o)(ControlPath=/home/tas-sos/.ansible/cp/ba3fa52aac)
  26. <debianCloud2-Knossos> SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ansible -o ConnectTimeout=10 -o ControlPath=/home/tas-sos/.ansible/cp/ba3fa52aac '[debianCloud2-Knossos]'
  27. <debianCloud2-Knossos> (0, b'sftp> put /home/tas-sos/.ansible/tmp/ansible-local-14045bsczquix/tmpx_5kwx3t /home/ansible/.ansible/tmp/ansible-tmp-1575645080.7218568-87115344299/AnsiballZ_iptables.py\n', b'OpenSSH_7.9p1 Debian-10+deb10u1, OpenSSL 1.1.1d  10 Sep 2019\r\ndebug1: Reading configuration data /home/tas-sos/.ssh/config\r\ndebug1: /home/tas-sos/.ssh/config line 49: Applying options for debianCloud2-Knossos\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: Applying options for *\r\ndebug2: resolve_canonicalize: hostname 83.212.72.56 is address\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 13660\r\ndebug3: mux_client_request_session: session request sent\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension "[email protected]" revision 1\r\ndebug2: Server supports extension "[email protected]" revision 2\r\ndebug2: Server supports extension "[email protected]" revision 2\r\ndebug2: Server supports extension "[email protected]" revision 1\r\ndebug2: Server supports extension "[email protected]" revision 1\r\ndebug3: Sent message fd 3 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -> /home/ansible size 0\r\ndebug3: Looking up /home/tas-sos/.ansible/tmp/ansible-local-14045bsczquix/tmpx_5kwx3t\r\ndebug3: Sent message fd 3 T:17 I:2\r\ndebug3: Received stat reply T:101 I:2\r\ndebug1: Couldn\'t stat remote file: No such file or directory\r\ndebug3: Sent message SSH2_FXP_OPEN I:3 P:/home/ansible/.ansible/tmp/ansible-tmp-1575645080.7218568-87115344299/AnsiballZ_iptables.py\r\ndebug3: Sent message SSH2_FXP_WRITE I:4 O:0 S:32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 4 32768 bytes at 0\r\ndebug3: Sent message SSH2_FXP_WRITE I:5 O:32768 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:6 O:65536 S:11467\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 5 32768 bytes at 32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 6 11467 bytes at 65536\r\ndebug3: Sent message SSH2_FXP_CLOSE I:4\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
  28. <debianCloud2-Knossos> ESTABLISH SSH CONNECTION FOR USER: ansible
  29. <debianCloud2-Knossos> SSH: ansible.cfg set ssh_args: (-C)(-o)(ControlMaster=auto)(-o)(ControlPersist=60s)
  30. <debianCloud2-Knossos> SSH: ansible_password/ansible_ssh_pass not set: (-o)(KbdInteractiveAuthentication=no)(-o)(PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey)(-o)(PasswordAuthentication=no)
  31. <debianCloud2-Knossos> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u set: (-o)(User=ansible)
  32. <debianCloud2-Knossos> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10)
  33. <debianCloud2-Knossos> SSH: found only ControlPersist; added ControlPath: (-o)(ControlPath=/home/tas-sos/.ansible/cp/ba3fa52aac)
  34. <debianCloud2-Knossos> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ansible -o ConnectTimeout=10 -o ControlPath=/home/tas-sos/.ansible/cp/ba3fa52aac debianCloud2-Knossos '/bin/sh -c '"'"'chmod u+x /home/ansible/.ansible/tmp/ansible-tmp-1575645080.7218568-87115344299/ /home/ansible/.ansible/tmp/ansible-tmp-1575645080.7218568-87115344299/AnsiballZ_iptables.py && sleep 0'"'"''
  35. <debianCloud2-Knossos> (0, b'', b'OpenSSH_7.9p1 Debian-10+deb10u1, OpenSSL 1.1.1d  10 Sep 2019\r\ndebug1: Reading configuration data /home/tas-sos/.ssh/config\r\ndebug1: /home/tas-sos/.ssh/config line 49: Applying options for debianCloud2-Knossos\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: Applying options for *\r\ndebug2: resolve_canonicalize: hostname 83.212.72.56 is address\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 13660\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
  36. <debianCloud2-Knossos> ESTABLISH SSH CONNECTION FOR USER: ansible
  37. <debianCloud2-Knossos> SSH: ansible.cfg set ssh_args: (-C)(-o)(ControlMaster=auto)(-o)(ControlPersist=60s)
  38. <debianCloud2-Knossos> SSH: ansible_password/ansible_ssh_pass not set: (-o)(KbdInteractiveAuthentication=no)(-o)(PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey)(-o)(PasswordAuthentication=no)
  39. <debianCloud2-Knossos> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u set: (-o)(User=ansible)
  40. <debianCloud2-Knossos> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10)
  41. <debianCloud2-Knossos> SSH: found only ControlPersist; added ControlPath: (-o)(ControlPath=/home/tas-sos/.ansible/cp/ba3fa52aac)
  42. <debianCloud2-Knossos> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ansible -o ConnectTimeout=10 -o ControlPath=/home/tas-sos/.ansible/cp/ba3fa52aac -tt debianCloud2-Knossos '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-pmlkjygcytokurufikqtfkzhcgkfnkeb; /usr/bin/python /home/ansible/.ansible/tmp/ansible-tmp-1575645080.7218568-87115344299/AnsiballZ_iptables.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
  43. Escalation succeeded
  44. <debianCloud2-Knossos> (0, b'\r\n{"chain": "INPUT", "changed": true, "rule": "-j ACCEPT -m conntrack --ctstate ESTABLISHED,RELATED", "failed": false, "state": "present", "flush": false, "invocation": {"module_args": {"comment": null, "tcp_flags": null, "log_prefix": null, "set_counters": null, "chain": "INPUT", "out_interface": null, "limit_burst": null, "ctstate": ["ESTABLISHED", "RELATED"], "jump": "ACCEPT", "to_ports": null, "flush": false, "table": "filter", "icmp_type": null, "to_destination": null, "action": "append", "uid_owner": null, "set_dscp_mark_class": null, "destination": null, "state": "present", "protocol": null, "source": null, "set_dscp_mark": null, "policy": null, "match": [], "goto": null, "fragment": null, "to_source": null, "syn": "ignore", "ip_version": "ipv4", "rule_num": null, "destination_port": null, "reject_with": null, "limit": null, "source_port": null, "in_interface": null}}, "table": "filter", "ip_version": "ipv4"}\r\n', b'OpenSSH_7.9p1 Debian-10+deb10u1, OpenSSL 1.1.1d  10 Sep 2019\r\ndebug1: Reading configuration data /home/tas-sos/.ssh/config\r\ndebug1: /home/tas-sos/.ssh/config line 49: Applying options for debianCloud2-Knossos\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: Applying options for *\r\ndebug2: resolve_canonicalize: hostname 83.212.72.56 is address\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 13660\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to 83.212.72.56 closed.\r\n')
  45. <debianCloud2-Knossos> ESTABLISH SSH CONNECTION FOR USER: ansible
  46. <debianCloud2-Knossos> SSH: ansible.cfg set ssh_args: (-C)(-o)(ControlMaster=auto)(-o)(ControlPersist=60s)
  47. <debianCloud2-Knossos> SSH: ansible_password/ansible_ssh_pass not set: (-o)(KbdInteractiveAuthentication=no)(-o)(PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey)(-o)(PasswordAuthentication=no)
  48. <debianCloud2-Knossos> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u set: (-o)(User=ansible)
  49. <debianCloud2-Knossos> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10)
  50. <debianCloud2-Knossos> SSH: found only ControlPersist; added ControlPath: (-o)(ControlPath=/home/tas-sos/.ansible/cp/ba3fa52aac)
  51. <debianCloud2-Knossos> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ansible -o ConnectTimeout=10 -o ControlPath=/home/tas-sos/.ansible/cp/ba3fa52aac debianCloud2-Knossos '/bin/sh -c '"'"'rm -f -r /home/ansible/.ansible/tmp/ansible-tmp-1575645080.7218568-87115344299/ > /dev/null 2>&1 && sleep 0'"'"''
  52. <debianCloud2-Knossos> (0, b'', b'OpenSSH_7.9p1 Debian-10+deb10u1, OpenSSL 1.1.1d  10 Sep 2019\r\ndebug1: Reading configuration data /home/tas-sos/.ssh/config\r\ndebug1: /home/tas-sos/.ssh/config line 49: Applying options for debianCloud2-Knossos\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: Applying options for *\r\ndebug2: resolve_canonicalize: hostname 83.212.72.56 is address\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 13660\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
  53. changed: [debianCloud2-Knossos] => changed=true
  54.  chain: INPUT
  55.  flush: false
  56.  invocation:
  57.    module_args:
  58.      action: append
  59.      chain: INPUT
  60.      comment: null
  61.      ctstate:
  62.      - ESTABLISHED
  63.      - RELATED
  64.      destination: null
  65.      destination_port: null
  66.      flush: false
  67.      fragment: null
  68.      goto: null
  69.      icmp_type: null
  70.      in_interface: null
  71.      ip_version: ipv4
  72.      jump: ACCEPT
  73.      limit: null
  74.      limit_burst: null
  75.      log_prefix: null
  76.      match: []
  77.      out_interface: null
  78.      policy: null
  79.      protocol: null
  80.      reject_with: null
  81.      rule_num: null
  82.      set_counters: null
  83.      set_dscp_mark: null
  84.      set_dscp_mark_class: null
  85.      source: null
  86.      source_port: null
  87.      state: present
  88.      syn: ignore
  89.      table: filter
  90.      tcp_flags: null
  91.      to_destination: null
  92.      to_ports: null
  93.      to_source: null
  94.      uid_owner: null
  95.  ip_version: ipv4
  96.  rule: -j ACCEPT -m conntrack --ctstate ESTABLISHED,RELATED
  97.  state: present
  98.  table: filter
Advertisement
Add Comment
Please, Sign In to add comment