Skip to content

Conversation

@nickhammond
Copy link
Contributor

Thought this might be a nice addition to help people a little bit when getting a new server up and running.

This is specifically for Ubuntu and adds some default UFW rules and a basic fail2ban install.

$ .kamal/hooks/docker-setup
Running 'ufw allow ssh &&   ufw allow http &&   ufw allow https &&   ufw --force enable &&   apt-get install fail2ban -y &&   systemctl start fail2ban &&   systemctl enable fail2ban' on 867.53.0.9...
  INFO [e818ecd1] Running ufw allow ssh &&   ufw allow http &&   ufw allow https &&   ufw --force enable &&   apt-get install fail2ban -y &&   systemctl start fail2ban &&   systemctl enable fail2ban on 867.53.0.9
  INFO [e818ecd1] Finished in 2.468 seconds with exit status 0 (successful).

@ronald2wing
Copy link

How about optional server upgrade?

@ronald2wing
Copy link

Also add example to create a Docker private network

@ronald2wing
Copy link

This is interesting. If people want extra security, here you go https://gist.github.com/anthonynsimon/3487c7f6069aa00611011c2696059cbe

@ronald2wing
Copy link

Another thing is how fail2ban is going to parse your container log?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants