Difference between revisions of "RMU build Gen-1.5: II. Proxmox - E. Add LAN Network Device"

From Internet Computer Wiki
Jump to: navigation, search
(Creating page)
 
(Finished page)
Line 4: Line 4:
  
 
== E. Add LAN Network Device ==
 
== E. Add LAN Network Device ==
 +
 +
#Select <code>RMU</code> > <code>Network</code>
 +
#Select <code>Create</code> > <code>Linux Bridge</code>
 +
#*[[File:Add Network Bridge.png|800x800px]]
 +
#Bridge <code>vmbr1</code> with IP <code>10.10.100.1/24</code> (CIDR is required) on Bridge port <code>eno2</code>, comment <code>LAN</code>
 +
#*[[File:Screenshot 2023-12-20 at 10.39.05 AM.png|800x800px]]
 +
#Create another Bridge and set Name to <code>vmbr2</code> with IP <code>empty</code> on Bridge port <code>eno5</code>, comment <code>WAN</code>.
 +
#*[[File:Eno5.png]]
 +
#After creating the bridge, select the <code>Apply Configuration</code> button
 +
#*[[File:Apply Networking Configuration.png]]
 +
#Select your RMU device on the left side. (Note: Everything below this step is not needed when creating the linux bridge vmbr2)
 +
#Select <code>Shell</code>
 +
#*[[File:Screenshot 2023-12-18 at 3.17.40 PM.png|800x800px]]
 +
#Open the following file with your favorite text editor (vi, nano, emacs etc) <code>/etc/network/interfaces</code>
 +
#Add the following lines at the end of the <code>vmbr1</code> section (before the <code>LAN</code> comment):
 +
#*Ensure that the spacing is correct:
 +
#*[[File:Screenshot 2023-12-18 at 3.18.59 PM.png|800x800px]]
 +
#*<syntaxhighlight line="1">post-up  echo 1 > /proc/sys/net/ipv4/ip_forward
 +
        post-up  iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 443 -j DNAT --to 10.10.100.22:443
 +
        post-up  iptables -t nat -A POSTROUTING -s '10.10.100.0/24' -o vmbr0 -j MASQUERADE
 +
        post-down iptables -t nat -A POSTROUTING -s '10.10.100.0/24' -o vmbr0 -j MASQUERADE</syntaxhighlight>
 +
#*[[File:Screenshot 2023-12-18 at 3.22.14 PM.png|800x800px]]
  
  
 
==Continue to next section: [[RMU build Gen-1.5: II. Teleport - A. Create Teleport CT|II. Teleport - A. Create Teleport CT]]==
 
==Continue to next section: [[RMU build Gen-1.5: II. Teleport - A. Create Teleport CT|II. Teleport - A. Create Teleport CT]]==
 
Go to the index of the [[RMU build Gen-1.5|Gen-1.5 RMU build runbook]].
 
Go to the index of the [[RMU build Gen-1.5|Gen-1.5 RMU build runbook]].

Revision as of 17:26, 23 February 2024

This page is part of the Gen-1.5 RMU build runbook.

Go back to the previous section: D. Download ISO Images

E. Add LAN Network Device

  1. Select RMU > Network
  2. Select Create > Linux Bridge
    • Add Network Bridge.png
  3. Bridge vmbr1 with IP 10.10.100.1/24 (CIDR is required) on Bridge port eno2, comment LAN
    • Screenshot 2023-12-20 at 10.39.05 AM.png
  4. Create another Bridge and set Name to vmbr2 with IP empty on Bridge port eno5, comment WAN.
    • Eno5.png
  5. After creating the bridge, select the Apply Configuration button
    • Apply Networking Configuration.png
  6. Select your RMU device on the left side. (Note: Everything below this step is not needed when creating the linux bridge vmbr2)
  7. Select Shell
    • Screenshot 2023-12-18 at 3.17.40 PM.png
  8. Open the following file with your favorite text editor (vi, nano, emacs etc) /etc/network/interfaces
  9. Add the following lines at the end of the vmbr1 section (before the LAN comment):
    • Ensure that the spacing is correct:
    • Screenshot 2023-12-18 at 3.18.59 PM.png
    • post-up   echo 1 > /proc/sys/net/ipv4/ip_forward
              post-up   iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 443 -j DNAT --to 10.10.100.22:443
              post-up   iptables -t nat -A POSTROUTING -s '10.10.100.0/24' -o vmbr0 -j MASQUERADE
              post-down iptables -t nat -A POSTROUTING -s '10.10.100.0/24' -o vmbr0 -j MASQUERADE
    • Screenshot 2023-12-18 at 3.22.14 PM.png


Continue to next section: II. Teleport - A. Create Teleport CT

Go to the index of the Gen-1.5 RMU build runbook.