{"id":18960610,"url":"https://github.com/adel-bz/proxmox-private-network","last_synced_at":"2026-01-25T09:32:37.964Z","repository":{"id":251045997,"uuid":"822560184","full_name":"adel-bz/Proxmox-Private-Network","owner":"adel-bz","description":"Create and Settings a NAT network on a single IP address","archived":false,"fork":false,"pushed_at":"2024-07-31T10:54:16.000Z","size":13,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-02T05:59:22.516Z","etag":null,"topics":["cloud-init","kubernetes-cluster","nat","network","proxmox"],"latest_commit_sha":null,"homepage":"https://youtube.com","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adel-bz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-07-01T11:29:37.000Z","updated_at":"2025-01-31T14:29:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"efee8d8a-4f30-4525-b55c-1390f36dde2c","html_url":"https://github.com/adel-bz/Proxmox-Private-Network","commit_stats":null,"previous_names":["adel-bz/proxmox-private-network"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/adel-bz/Proxmox-Private-Network","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adel-bz%2FProxmox-Private-Network","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adel-bz%2FProxmox-Private-Network/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adel-bz%2FProxmox-Private-Network/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adel-bz%2FProxmox-Private-Network/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adel-bz","download_url":"https://codeload.github.com/adel-bz/Proxmox-Private-Network/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adel-bz%2FProxmox-Private-Network/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28750875,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T09:00:19.176Z","status":"ssl_error","status_checked_at":"2026-01-25T09:00:04.131Z","response_time":113,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloud-init","kubernetes-cluster","nat","network","proxmox"],"created_at":"2024-11-08T14:08:36.104Z","updated_at":"2026-01-25T09:32:37.958Z","avatar_url":"https://github.com/adel-bz.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Proxmox-Private-Network\n\n# Introduction\n\nThe Proxmox-Private-Network guide provides a comprehensive step-by-step tutorial for setting up a private network within a Proxmox environment. This process involves configuring a virtual network bridge, modifying network settings through SSH or the Proxmox shell, and ensuring proper NAT settings for network address translation. By following this guide, users can effectively establish a private network to manage VMs with isolated network environments. This can be useful when creating Highly Available Kubernetes clusters that need at least 6 Servers (3 Master and 3 Workers).\n\n# Instruction\n#### 1. Create a VM (if it doesn't exist).\n\n#### 2. Create a Virtual Network (e.g., vmbr1)\n\n- Select the node (Proxmox Host) under Datacenter.\n\n- Navigate to the \"Network\" section in the \"System\" tab.\n  \n- Click \"Create\" and choose \"Linux Bridge\"\n\n- Enter your network IP (e.g., \"192.168.1.1/24\") in the IP4/CIDR box.\n\n- Click \"Apply Configuration\"\n\n![Screenshot 2024-07-01 at 10 42 00](https://github.com/adel-bz/Proxmox-Private-Network/assets/45201934/26af5bf1-dc10-4ef5-90ec-63832f328d06)\n\n\n### 3. SSH into Proxmox Host\n- Use SSH or the \"Shell\" option on the Proxmox panel to connect to the Proxmox host.\n \n### 4. Update Network Interfaces\n- Add the following code to ```/etc/network/interfaces``` (adjust network name and IPs as needed):\n  \n```\nauto vmbr1\niface vmbr1 inet static\n        address 192.168.1.1\n        netmask 255.255.255.0\n        bridge-ports none\n        bridge-stp off\n        bridge-fd 0\n\n# NAT SETTINGS\npost-up echo 1 \u003e /proc/sys/net/ipv4/ip_forward\npost-up iptables -t nat -A POSTROUTING -s '192.168.1.0/24' -o enp6s0 -j MASQUERADE\npost-down iptables -t nat -D POSTROUTING -s '192.168.1.0/24' -o enp6s0 -j MASQUERADE\n```\n\n![Screenshot 2024-07-01 at 10 58 17](https://github.com/adel-bz/Proxmox-Private-Network/assets/45201934/86c269d1-e237-4688-91f3-70c3f9487a09)\n\n\n#### 5. Restart Network:\n```\n# sudo systemctl restart networking\n```\n\n#### 6. Configure VM Network Device\n- In the Proxmox panel, select your VM.\n\n- In the \"Hardware\" section, change the network device to ```vmbr1```.\n\n#### 7. Set IP and Gateway (for Cloud-init)\n- Under the Hardware tab, go to the Cloud-Init tab.\n\n- Edit the IP Config option with your specific IP.\n\n![Screenshot 2024-07-01 at 11 13 23](https://github.com/adel-bz/Proxmox-Private-Network/assets/45201934/23b2d626-8e9b-4c70-a45f-f060b9e85b4b)\n\n\n#### 8. Start VM and Verify Connection\n- Start your machine\n\n- check the internet connection with:\n\n```\n# Ping 4.2.2.4 \n```\n\nFor a visual reference, you can watch this example video on [YouTube](https://youtu.be/gmAMq52Q-94) (see: it may not follow these exact steps).\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadel-bz%2Fproxmox-private-network","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadel-bz%2Fproxmox-private-network","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadel-bz%2Fproxmox-private-network/lists"}