Chapter 2: Add a network for your website

In Proxmox, click on your server in the left sidebar, then Network -> Create -> Linux bridge

Proxmox create Linux bridge

Type the [Website Domain name] in the Comment field and press OK

Proxmox Linux bridge

Restart Proxmox

Proxmox restart
Proxmox restart

Wait for the system to reboot, then click on the ClearOS VM -> Hardware -> Add -> Network device

Proxmox add network device

Select the new site vmbr and press Add

Proxmox vmbr
Proxmox vmbr

Go to ClearOS -> Network -> Settings -> IP settings, scroll down and click Add in ens20

ClearOS ens20

Use these settings:

  • Role: Hot LAN
  • Connection type: Static
  • IP address: 192.168.180.1
  • Netmask:255.255.255.0
ClearOS ens20

Now the Network Interfaces widget should look like this:

ClearOS network interfaces

Click on Network -> Infrastructure and check the ens20 subnet. It should look like the screenshot below and you shouldn’t need to change anything.

ClearOS Infrastructure
ClearOS Infrastructure
ClearOS ens20 network

Go to the OVH IP control panel and create a MAC address for the IP of the new site

OVH MAC address for new site

Choose to use the same MAC address that you generated before

OVH use same MAC address

Go back to ClearOS -> Network -> Settings -> IP settings, scroll down and click on Add virtual interface

ClearOS 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
ClearOS add IP address

Click on Network -> Firewall -> 1-to-1 NAT Firewall, then click on Add

ClearOS 1-to-1 NAT

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
ClearOS 1-to-1 NAT port 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
ClearOS 1-to-1 NAT port 443

Now the widget should look like this:

ClearOS 1-to-1 NAT
0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *