Bachelor Tech
  • Home
  • Tutorials
  • Portfolio
  • About Jan
  • Contact Jan

WAN / LAN Set Up (Before OPNSense Installation)

by Jan Bachelor September 21, 2020

Last Updated on September 21, 2020 by Jan Bachelor

Unless you opted for a PCI Passthrough method for your network cards (only recommended for advanced users), we will use the more standard and more widely used method of setting up two virtual switches in Proxmox, one for LAN and the other for WAN, and then assign network cards, accordingly.

1. Configure the LAN interface

  • Under Datacenter -> proxmox, go to Network. Find vmbr0, which will contain the management port selected during the proxmox’s installation.
  • Create an IPv4 range, e.g. 192.168.1.1/24
  • Set up the IPv4 gateway to be the IP address of the OPNSense VM, e.g. 192.168.1.1
  • Check that the LAN interface has an IPv4 and gateway addresses assigned (should be the starting number of the network that we will assign to OPNSense, not to Proxmox!).
  • Edit the ‘bridge ports’ section and add additional ports that your server will use for the LAN (e.g. on a 6 port QOTOM, if we use port no.1 for WAN, this would be:ย enp2s0 enp3s0 enp4s0 enp5s0 enp6s0 (only space as a delimiter between pot numbers).
  • Add a comment such as ‘LAN’ for future reference.
LAN interface set up in Proxmox

2. Configure the WAN interface

  • Create a new Linux Bridge (e.g. vSwitch in ESXi terminology) .
  • Assign the remaining WAN port to it, e.g. enp1s0 .
  • Assign it an IPv4 address and a comment (no gateway to be specified since that is defined in the LAN bridge).
WAN interface set up in Proxmox

3. Final network configuration state

Below you can find an example overview of the ‘Network’ tab in Proxmox after the above was set up. Note that the virtual bridges are auto-started and so the inidividual ports do not need to be.

Assing virtual network cards to virtual switches (bridges) to specify LAN and WAN ports

Finally, restart your Proxmox server for changes to take an effect.

Note: In case you get locked out, connect directly to the server (e.g. with QOTOM, an HDMI cable, keyboard and mouse) and use the command line interface in /etc/network/interfaces . After all, Proxmox runs on a standard Debian distro and so changes can be made there, directly, esp. in case of a lock out ๐Ÿ™‚

PCI Passthrough Set Up (Optional)
Initial OPNSense Set up in Web GUI
Back to: Build Your Own Router – Proxmox, OPNSense, OpenVPN server and a VPN client all in one!

2 comments

Ed April 21, 2021 - 9:25 pm

How would you do this differently if using PCI pass through?

Reply
Jan Bachelor April 24, 2021 - 8:39 pm

Hi Ed, I have not tested it with PCI passthrough yet, I have to focus on a different project at the moment. If you end up looking it up and would like to contribute, I would be happy to grant you editor rights to this tutorial and co-authorship recognition ๐Ÿ™‚ Jan

Reply

Leave a Comment Cancel Reply

Save my name, email, and website in this browser for the next time I comment.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 comment 0 FacebookWhatsappEmail

Build Your Own Router – Proxmox, OPNSense, OpenVPN server and a VPN client all in one!

  • Previous
  • Next
Collapse
Expand
  • Hardware Considerations
  • Disabling default Proxmox firewall
  • OPNSense VM Set Up
  • OPNSense Installation
  • PCI Passthrough Set Up (Optional)
  • WAN / LAN Set Up (Before OPNSense Installation)
  • Initial OPNSense Set up in Web GUI
  • Dynamic DNS Set Up with DuckDNS on OPNSense
  • Choosing a VPN provider for your OPNSense
  • Is it worth getting VPN on OPNSense?
  • NordVPN installation on OPNSense
  • Multi-WAN Set Up in Proxmox & OPNSense

Search for articles

Other Tips

  • How to mount an NFS share (such as from FreeNAS) from an Android box
  • How to download a Windows 10 ISO on a Windows device – easy work-around

Other Tutorials

  • Build Your Own Router - Proxmox, OPNSense, OpenVPN server and a VPN client all in one!
    12 Steps
  • Dynamically Populate Gravity Forms from Google Sheets (GSheets APIv4)
    6 Steps

Recent Comments

  • Jan Bachelor on Use Integromat to get computer IDs from user email in JamF ProHi Robert, the static groups were created in the p…
  • Robert Petitto on Use Integromat to get computer IDs from user email in JamF ProCan you share how you'd use Make (integromat) to a…
  • Martin on Part 1 – What do we want to do + Required technology (bank feed)This tutorial deserves more credit, I've not seen…
  • Jan Bachelor on WAN / LAN Set Up (Before OPNSense Installation)Hi Ed, I have not tested it with PCI passthrough y…
  • Ed on OPNSense VM Set UpIn step 4 firewall you turned off firewall, should…

Tags

chrome iso windows

Categories

  • Android
  • FreeNAS
  • Linux
  • Windows

Recent Posts

  • How to mount an NFS share (such as from FreeNAS) from an Android box

  • How to download a Windows 10 ISO on a Windows device – easy work-around

Facebook Twitter Instagram Pinterest Linkedin Youtube

@2019 - All Right Reserved. Designed and Developed by PenciDesign

Bachelor Tech
  • Home
  • Tutorials
  • Portfolio
  • About Jan
  • Contact Jan