Installing virtual pfsense after update broke router hardware
Post related to the original attempt to fix the upgraded pfSense on hardware https://forum.netgate.com/topic/139237/pfsense-router-not-connecting-after-update-continued/5
So, going virtual, however I have no router in the mean time.
This computer is connected to a switch to the ISP modem.
This computer's IP address: 192.168.0.2 Bcast:192.168,0.255 Mask:255.255.255.0. DHCP.
ISP modem's IP address: 192.168.0.1.
Host for new virtualised pfSense's IP address: 192.168.1.140 static IP.
How can I connect this computer to the new host via SSH?
Otherwise I can drag out the host which has a VGA and USB port for GUI management.
If you want to use pfSense in a VM to protect the host as well as other VMs then you need to set the pfSense VM to use the NIC exclusively. Only the pfSense WAN should be in the same subnet as the modem. Everything else including the host should be on the LAN side subnet of pfSense.
It was your install that broke not the hardware. A software upgrade will never break hardware unless it does something like overclock it, which wasn't the case here.
Yes, re update breaking the software.
I followed this guide https://www.netgate.com/docs/pfsense/virtualization/virtualizing-pfsense-with-proxmox.html to setup the LXC VM pfSense, however I think the LAN and WAN are mixed up with the vmbr0, vmbr1, vmbr2 and the port/slaves eth0, eth1 and eth2?
eth0 Network Device. (physical NIC, not sure if LAN or WAN).
eth1 Network Device. (physical NIC, not sure if LAN or WAN).
vmbr0 Linux Bridge
inet addr:192.168.1.140 Bcast:192.168.1.255 Mask:255.255.255.0 Gateway:192.168.1.170.
vmbr1 Linux Bridge
This is the LXC host’s physical NIC WAN, that the ISP’s modem connects to.
vmbr2 Linux Bridge
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0.
This is the LXC host’s physical NIC LAN, that the 24 port switch connects to.
LAN PC connected to the switch:
inet addr:192.168.1.120 Bcast:192.168.1.255 Mask:255.255.255.0.
Some testing results:
LAN PC 192.168.1.120 could ping LXC host 192.168.1.140.
LAN PC could ssh into LXC host.
LAN PC could not scp into LXC host.
So I scp’ed from the LXC host to the LAN PC to pull the pfSense.iso image.
On LXC, created VM and installed pfSense like a charm.
However, unclear how to connect LAN PC to pfSense GUI and Internet?
I can only view pfSense welcome screen (black and white shell) in LXC VM pfSense console.
LAN PC can ping 192.168.1.1, but cannot browse the GUI to configure pfSense.
Sorry, here’s the VM pfSense details:
WAN -> vtnet0 (vmbr1)
LAN -> vtnet1 (vmbr2) -> v4: 192.168.1.1/24.
Also, I think the LXC host machine’s physical NICs May be mixed up?
eth0 has RX bytes:16217889 (15.4 MiB) and TX bytes:16914884 (16.1 MiB).
eth1 has RX bytes:0 (0.0 B) and TX bytes:0 (0.0 B).
I think the traffic is between my LAN PC and the LXC host, with no traffic to or from the Internet modem WAN.
johnpoz LAYER 8 Global Moderator last edited by
How many previous threads are we suppose to weed through to try and put together a story..
Here is what I can tell you for fact.. Pfsense didn't freaking break your hardware..
I have tried reading through these previous thread and all they do is make my head hurt... There is no comprehensible info here to follow.
Create a thread with a story of what is your problem and what you have done without 1 liner comments to what works or doesn't work and you might get some people to help you.
Please ignore other threads, this is why this is a new thread. This thread is relevant about how to set up a vm pfSense.
The broken router is no longer relevant and will be superseded by the new vm pfSense routing.
LXC is probably the wrong terminology here since pfSense is not Linux.
You should not have assigned any IP information to the Linux bridge for the LAN. That should all be in pfSense.
What is eth2? It looks like you expect that to be the LAN IP but at the top say say eth0 and eth1 and WAN and LAN.
@stephenw10 okay, when I have a computer with Internet access, I will update LXC with Proxmox.
It’s difficult to communicate on a small mobile screen.
I followed post 1’s instructions re eth0, eth1 and eth2.
There is a step that says connect another computer to the Proxmox host.
I do that, but don’t understand how to connect to pfSense’s GUI?
It appears the Netgate guide is for 3 NICs rather than the 2 NICs I thought the guide’s assumptions were suggesting.
I have 2 NICs and am trying to configure access to the vm pfSense’s GUI.
So, using 2 NICs, how can one fix the vm pfSense WHEN it fails? Proxmox access would be down if the network’s router is down?
What do you need to protect with pfSense here? Just internal VMs? Or other local real clients on the LAN also?
I expect you to be able to share a physical connection between the host and VMs.
If you have dhcp enabled in pfSense are clients on the LAN getting an IP from that?
If you remove the IP address assigned as the pfSense LAN from the Proxmox config the host itself will not respond on that IP which should allow pfSense to respond if it's configured on that address.
Both vm’s and real clients...everything will be behind the pfSense firewall.
I do not yet have access to the pfSense GUI.
This is where I’m stuck.
All fixed and working.
The big problem is the Netgate guide suggesting the guide is for 2 NICs (like my setup), however the guide is for 3 NICs. A big difference and complication if it’s your first time.
The guide is like that because running with only two NICs total is not recommended.
Host has at least two network interfaces available for WAN and LAN.
If you have used a NIC for the management port then you don't have two available.
However it should work with two NICs total and no dedicated management port as you found.