Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TASK [firewall/iptables : test ESTABLISHED/RELATED] ***************************************************************************************************************************************************************
- task path: /home/tas-sos/Nextcloud/Documents/Work/GRNET/Notes/Ansible/tests/Roles/roles/firewall/iptables/tasks/debian.yml:63
- <debianCloud2-Knossos> ESTABLISH SSH CONNECTION FOR USER: ansible
- <debianCloud2-Knossos> SSH: ansible.cfg set ssh_args: (-C)(-o)(ControlMaster=auto)(-o)(ControlPersist=60s)
- <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)
- <debianCloud2-Knossos> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u set: (-o)(User=ansible)
- <debianCloud2-Knossos> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10)
- <debianCloud2-Knossos> SSH: found only ControlPersist; added ControlPath: (-o)(ControlPath=/home/tas-sos/.ansible/cp/ba3fa52aac)
- <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'"'"''
- <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')
- <debianCloud2-Knossos> ESTABLISH SSH CONNECTION FOR USER: ansible
- <debianCloud2-Knossos> SSH: ansible.cfg set ssh_args: (-C)(-o)(ControlMaster=auto)(-o)(ControlPersist=60s)
- <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)
- <debianCloud2-Knossos> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u set: (-o)(User=ansible)
- <debianCloud2-Knossos> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10)
- <debianCloud2-Knossos> SSH: found only ControlPersist; added ControlPath: (-o)(ControlPath=/home/tas-sos/.ansible/cp/ba3fa52aac)
- <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'"'"''
- <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')
- Using module file /usr/lib/python3/dist-packages/ansible/modules/system/iptables.py
- <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
- <debianCloud2-Knossos> SSH: ansible.cfg set ssh_args: (-C)(-o)(ControlMaster=auto)(-o)(ControlPersist=60s)
- <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)
- <debianCloud2-Knossos> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u set: (-o)(User=ansible)
- <debianCloud2-Knossos> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10)
- <debianCloud2-Knossos> SSH: found only ControlPersist; added ControlPath: (-o)(ControlPath=/home/tas-sos/.ansible/cp/ba3fa52aac)
- <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]'
- <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')
- <debianCloud2-Knossos> ESTABLISH SSH CONNECTION FOR USER: ansible
- <debianCloud2-Knossos> SSH: ansible.cfg set ssh_args: (-C)(-o)(ControlMaster=auto)(-o)(ControlPersist=60s)
- <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)
- <debianCloud2-Knossos> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u set: (-o)(User=ansible)
- <debianCloud2-Knossos> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10)
- <debianCloud2-Knossos> SSH: found only ControlPersist; added ControlPath: (-o)(ControlPath=/home/tas-sos/.ansible/cp/ba3fa52aac)
- <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'"'"''
- <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')
- <debianCloud2-Knossos> ESTABLISH SSH CONNECTION FOR USER: ansible
- <debianCloud2-Knossos> SSH: ansible.cfg set ssh_args: (-C)(-o)(ControlMaster=auto)(-o)(ControlPersist=60s)
- <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)
- <debianCloud2-Knossos> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u set: (-o)(User=ansible)
- <debianCloud2-Knossos> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10)
- <debianCloud2-Knossos> SSH: found only ControlPersist; added ControlPath: (-o)(ControlPath=/home/tas-sos/.ansible/cp/ba3fa52aac)
- <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'"'"''
- Escalation succeeded
- <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')
- <debianCloud2-Knossos> ESTABLISH SSH CONNECTION FOR USER: ansible
- <debianCloud2-Knossos> SSH: ansible.cfg set ssh_args: (-C)(-o)(ControlMaster=auto)(-o)(ControlPersist=60s)
- <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)
- <debianCloud2-Knossos> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u set: (-o)(User=ansible)
- <debianCloud2-Knossos> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10)
- <debianCloud2-Knossos> SSH: found only ControlPersist; added ControlPath: (-o)(ControlPath=/home/tas-sos/.ansible/cp/ba3fa52aac)
- <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'"'"''
- <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')
- changed: [debianCloud2-Knossos] => changed=true
- chain: INPUT
- flush: false
- invocation:
- module_args:
- action: append
- chain: INPUT
- comment: null
- ctstate:
- - ESTABLISHED
- - RELATED
- destination: null
- destination_port: null
- flush: false
- fragment: null
- goto: null
- icmp_type: null
- in_interface: null
- ip_version: ipv4
- jump: ACCEPT
- limit: null
- limit_burst: null
- log_prefix: null
- match: []
- out_interface: null
- policy: null
- protocol: null
- reject_with: null
- rule_num: null
- set_counters: null
- set_dscp_mark: null
- set_dscp_mark_class: null
- source: null
- source_port: null
- state: present
- syn: ignore
- table: filter
- tcp_flags: null
- to_destination: null
- to_ports: null
- to_source: null
- uid_owner: null
- ip_version: ipv4
- rule: -j ACCEPT -m conntrack --ctstate ESTABLISHED,RELATED
- state: present
- table: filter
Advertisement
Add Comment
Please, Sign In to add comment