Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| user:nadir [2023/07/30 09:53] – nadir | user:nadir [2025/08/10 13:32] (current) – nadir | ||
|---|---|---|---|
| Line 146: | Line 146: | ||
| This guide provides step-by-step instructions for installing Docker on Debian. | This guide provides step-by-step instructions for installing Docker on Debian. | ||
| - | ===== Prerequisites | + | === Prerequisites === |
| * A Debian-based system | * A Debian-based system | ||
| * Administrative privileges (sudo access) | * Administrative privileges (sudo access) | ||
| - | ===== Step 1: Update Package Index ===== | + | === Step 1: Update Package Index === |
| Open a terminal and update the package index on your Debian system: | Open a terminal and update the package index on your Debian system: | ||
| Line 159: | Line 159: | ||
| </ | </ | ||
| - | ===== Step 2: Install Dependencies | + | === Step 2: Install Dependencies === |
| Install the necessary packages to enable APT to use repositories over HTTPS and handle certificates: | Install the necessary packages to enable APT to use repositories over HTTPS and handle certificates: | ||
| Line 167: | Line 167: | ||
| </ | </ | ||
| - | ===== Step 3: Add Docker' | + | === Step 3: Add Docker' |
| Download and add Docker' | Download and add Docker' | ||
| Line 175: | Line 175: | ||
| </ | </ | ||
| - | ===== Step 4: Add Docker Repository | + | === Step 4: Add Docker Repository === |
| Add the Docker repository to your APT sources by creating a new file: | Add the Docker repository to your APT sources by creating a new file: | ||
| Line 184: | Line 184: | ||
| </ | </ | ||
| - | ===== Step 5: Update Package Index Again ===== | + | === Step 5: Update Package Index Again === |
| Update the package index to reflect the newly added Docker repository: | Update the package index to reflect the newly added Docker repository: | ||
| Line 192: | Line 192: | ||
| </ | </ | ||
| - | ===== Step 6: Install Docker | + | === Step 6: Install Docker === |
| Install Docker on your Debian system: | Install Docker on your Debian system: | ||
| Line 200: | Line 200: | ||
| </ | </ | ||
| - | ===== Step 7: Add user to the docker group ===== | + | === Step 7: Add user to the docker group === |
| Add your username to the docker group: | Add your username to the docker group: | ||
| Line 208: | Line 208: | ||
| </ | </ | ||
| - | ===== Step 8: Add docker to user groups | + | === Step 8: Add docker to user groups === |
| You can do that by logging out and logging back in or simply by creating a group named docker in your groups list | You can do that by logging out and logging back in or simply by creating a group named docker in your groups list | ||
| Line 216: | Line 216: | ||
| </ | </ | ||
| - | ===== Step 9: Verify Docker Installation | + | === Step 9: Verify Docker Installation === |
| Verify that Docker is installed correctly by running a test container: | Verify that Docker is installed correctly by running a test container: | ||
| Line 489: | Line 489: | ||
| * Creates the Odoo database (if it was completely deleted) and restores the database backup. | * Creates the Odoo database (if it was completely deleted) and restores the database backup. | ||
| + | [[http:// | ||
| + | === GRANT ALL PREVILEGES TO A USER === | ||
| + | <cli> | ||
| + | GRANT USAGE ON SCHEMA public TO postgres; | ||
| + | GRANT SELECT ON ALL TABLES IN SCHEMA public TO postgres; | ||
| + | GRANT SELECT ON ALL SEQUENCES IN SCHEMA public TO postgres; | ||
| + | ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO postgres; | ||
| + | ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON SEQUENCES TO postgres; | ||
| + | </ | ||
| + | ===Command to Stop Spoofing Attacks === | ||
| + | <cli> | ||
| + | sudo iptables -A INPUT -p udp --dport 53 -m recent --name dns_flood --set | ||
| + | |||
| + | sudo iptables -A INPUT -p udp --dport 53 -m recent --name dns_flood --update --seconds 60 --hitcount 10 -j DROP | ||
| + | |||
| + | </ | ||
| + | this should limit the number of queries to 10 per second | ||