Skip to content
Snippets Groups Projects
Select Git revision
  • bb114304e80b72b52d57aa6fa8471bb7bd4c8960
  • quarto-refactor default
  • main protected
  • master
4 results

ubuntu-shellinabox.yaml

Blame
  • Forked from CAN / UNIX command line
    110 commits behind the upstream repository.
    ubuntu-shellinabox.yaml 654 B
    - hosts: all
      tasks:
    
      - name: Update the system
        apt:
          upgrade: dist
    
      - name: Install requirements
        apt:
          name: 
            - openssl
            - shellinabox
            - stress
          state: latest
    
      - name: Configure shell in a box 
        shell: sed -i 's|SHELLINABOX_PORT=4200|SHELLINABOX_PORT=443|' /etc/default/shellinabox
    
      - name: Configure network
        shell: iptables -t filter -A INPUT -p tcp --dport 443 -j ACCEPT && iptables -t filter -A OUTPUT -p tcp --dport 443 -j ACCEPT && iptables-save
    
      - name: Restart services
        systemd:
          name: "{{ item }}" 
          enabled: yes
          state: restarted
        loop:
          - shellinabox