Jump to content

Cloudc2.service dropped


cr38g

Recommended Posts

Greetings,

 

Everything went well after installing Cloud C2, getting the server to auto-service after reboot, and running services.

When I tried to connect for the second time, it said on the Cloud C2 MKVII side, offline "gray button."

When checking the system status with "sudo systemctl status cloudc2.service."

Mar 01 15:49:57 ip-x.x.x.x c2-3.3.0_amd64_linux[722]: 2024/03/01 15:49:57 http: TLS handshake error from x.x.x.x:36570: acme/autocert: host "x.x.x.x" not configured in HostWhitelist

 

 

Thank you for any assistance.

Edited by cr38g
Link to comment
Share on other sites

Hmmm, ok, so... the content of the post doesn't sync with the topic anymore. Guess the first "issue" was resolved then.

In what way are you starting your C2 server? Using the -https parameter I guess, since it's a log message that related to TLS. Are you using a domain name along with the https parameter? From previous posts, it seems as if you do. (You might also try not posting IP addresses that are "live", but that's your choice if you want to display that kind of information or not).

Also, you've posted about something very similar recently in another thread. In that thread you posted that you got a solution. Didn't that solution work?

 

Link to comment
Share on other sites

After Cloud C2 installation I ran the command; ".c2-3.3.0_amd64_linux -hostname mypage.com -https."

1. Everything went fine. I went to mypage.com

2. Hak5 Cloud C2 page appeared entered all the information required.

3. Download the device.conf file and install it in the MKVII.

4. I set the server to auto-reboot service;

  • sudo mv c2-3.2.0_amd64_linux /usr/local/bin
  • sudo mkdir /var/cloudc2
  • sudo mv c2.db /var/cloudc2/
  • sudo vi /etc/systemd/system/cloudc2.service
  • Created a c2.db file; 
    [Unit]
     
    Description=Hak5 Cloud C2
     
    After=cloudc2.service
     
    [Service]
     
    Type=idle
     
    ExecStart=/usr/local/bin/c2-3.2.0_amd64_linux -hostname mypage.com -https -db /var/cloudc2/c2.db
     
    [Install]
     
    WantedBy=multi-user.target
     
    Then Reload, enable and reboot with;
    • sudo systemctl daemon-reload
    • sudo systemctl enable cloudc2.service
    • sudo systemctl start cloudc2.service
    • sudo systemctl status cloudc2.service

    Everything worked great until I tried to connect for the second time. I came across this error;

    Mar 01 15:49:57 ip-x.x.x.x c2-3.3.0_amd64_linux[722]: 2024/03/01 15:49:57 http: TLS handshake error from x.x.x.x:36570: acme/autocert: host "x.x.x.x" not configured in HostWhitelist

    "Also, you've posted about something very similar recently in another thread. In that thread you posted that you got a solution. Didn't that solution work?"

     I did when I updated the firmware on the MKVII. Thanks for asking.

    Thank you for reminding me to be cautious of what information to share.

    I do not know why I am getting this error when nothing has changed on the setup.

    P.S. Sorry, I couldn't find a way to change the topic name. It was not intentional.

     

Link to comment
Share on other sites

  • 2 weeks later...

I decided to reinstall everything on the Pineapple Mark VII and the server. Now, everything seems to work. Sometimes, when I connect to my webpage, it looks like it's offline, but after some minutes, it's online.

Thank you for your help and patience.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...