Chapter 2: Add a network for your website
In Proxmox, click on your server in the left sidebar, then Network -> Create -> Linux bridge
Type the [Website Domain name] in the Comment field and press OK
Restart Proxmox
Wait for the system to reboot, then click on the ClearOS VM -> Hardware -> Add -> Network device
Select the new site vmbr and press Add
Go to ClearOS -> Network -> Settings -> IP settings, scroll down and click Add in ens20
Use these settings:
- Role: Hot LAN
- Connection type: Static
- IP address: 192.168.180.1
- Netmask:255.255.255.0
Now the Network Interfaces widget should look like this:
Click on Network -> Infrastructure and check the ens20 subnet. It should look like the screenshot below and you shouldn’t need to change anything.
Go to the OVH IP control panel and create a MAC address for the IP of the new site
Choose to use the same MAC address that you generated before
Go back to ClearOS -> Network -> Settings -> IP settings, scroll down and click on Add virtual interface
Use this settings and hit Add:
- IP address: type in the IP address for the new site
- Netmask: 255.255.255.255
Click on Network -> Firewall -> 1-to-1 NAT Firewall, then click on Add
Then click on Add and use these settings:
- Nickname: [Website Domain name]_80
- Public IP: type in you new site IP address
- Private IP: 192.168.180.100
- Protocol: TCP
- Port or port range: 80
Click on Add again and use these settings:
- Nickname: [Website Domain name]_443
- Public IP: type in you new site IP address
- Private IP: 192.168.180.100
- Protocol: TCP
- Port or port range: 443
Now the widget should look like this: