PFSense Setup with Virtual Box - Gateway Always Offline

Discussions about using non Windows and Linux guests such as FreeBSD, DOS, OS/2, OpenBSD, etc.
Post Reply
kayul
Posts: 3
Joined: 29. Oct 2020, 16:03

PFSense Setup with Virtual Box - Gateway Always Offline

Post by kayul »

Hi im having problem with PFsense setup in Virtual where the Gateway always display as offline

I have two NICS
virtual box setup - both adapter in bridge mode
Virtual Box Host adapter - 10.195.50.18/255.255.254.0/10.195.50.10
Pfsense LAN 10.130.50.4

1st pc network adapter - 10.130.50.5/255.255.255.248/10.130.50.3
2nd pc network adapter - 10.195.50.19/255.255.254.0/10.195.50.10

pfsense gateway 10.195.56.10 is display as offline and vlan pc have no internet

i can browse the internet without problem in my pc by using 10.195.50.10 as gateway and i can access pfsense from pc browser

any pointers on how i can fix this ?
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: PFSense Setup with Virtual Box - Gateway Always Offline

Post by scottgus1 »

We could help to an extent, with the Virtualbox network "hardware". Is it correct to say your pfSense VM is acting as a router/firewall for a physical LAN?

Please right-click the guest in the main Virtualbox window's guest list, choose "Show in Explorer/Finder/File Manager". In the window that opens, zip the guest's .vbox file, and post the zip file, using the forum's Upload Attachment tab.

Also, in the host PC, run 'ipconfig /all' or 'ifconfig' or 'ip address' depending on your host OS. Post the text output on the forum.

On a PC in the 10.130.50.# range, run 'ipconfig /all' or 'ifconfig' or 'ip address' depending on the OS. Post the text output on the forum.

On a PC in the 10.195.50.# range, run 'ipconfig /all' or 'ifconfig' or 'ip address' depending on the OS. Post the text output on the forum.
kayul
Posts: 3
Joined: 29. Oct 2020, 16:03

Re: PFSense Setup with Virtual Box - Gateway Always Offline

Post by kayul »

Hi just would like to update,

i adjusted my virtual box setting

1st pc network adapter - 10.195.50.19/255.255.254.0/10.195.50.10
2nd pc network adapter - 10.130.50.5/255.255.255.248/10.130.50.3
virtual box setup - both adapter in bridge mode
Virtual Box Host adapter - 10.130.50.6/255.255.255.248/10.130.50.3
Pfsense LAN 10.130.50.4

i have internet in this pc and i can access pfsense 10.130.50.4 and my lan gateway 10.130.50.3

the gateway 10.195.50.10 is now online in my pfsense, and i can ping to internet
but now 10.130.50.3 gateway is offline in pfsense
..i can't ping LAN and now i cant access pfsense in my vlan since the static route i made in pfsense failed
10.130.0.0 255.255.0.0 10.130.50.3

im still trying to solved this, ..bear with me..im new with thing and i really hope i can solve this
Last edited by kayul on 31. Oct 2020, 05:48, edited 1 time in total.
kayul
Posts: 3
Joined: 29. Oct 2020, 16:03

Re: PFSense Setup with Virtual Box - Gateway Always Offline

Post by kayul »

scottgus1 wrote:Is it correct to say your pfSense VM is acting as a router/firewall for a physical LAN?
Yes
scottgus1 wrote: Also, in the host PC, run 'ipconfig /all' or 'ifconfig' or 'ip address' depending on your host OS. Post the text output on the forum.
C:\Users\Admin'>ipconfig /all

Windows IP Configuration

Host Name . . . . . . . . . . . . : DESKTOP-0B7J0AA
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter Ethernet:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Realtek PCIe GbE Family Controller
Physical Address. . . . . . . . . : 1C-69-7A-70-B6-91
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::11af:2ad9:9bde:7b16%12(Preferred)
IPv4 Address. . . . . . . . . . . : 10.195.50.19(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.254.0
Default Gateway . . . . . . . . . : 10.195.50.10
DHCPv6 IAID . . . . . . . . . . . : 102525306
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-26-73-C0-11-1C-69-7A-70-B6-91
DNS Servers . . . . . . . . . . . : 8.8.8.8
8.8.4.4
NetBIOS over Tcpip. . . . . . . . : Enabled

Ethernet adapter VirtualBox Host-Only Network:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : VirtualBox Host-Only Ethernet Adapter
Physical Address. . . . . . . . . : 0A-00-27-00-00-12
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::385e:3aff:907c:330%18(Preferred)
IPv4 Address. . . . . . . . . . . : 10.130.50.6(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.248
Default Gateway . . . . . . . . . : 10.130.50.3
DHCPv6 IAID . . . . . . . . . . . : 738852903
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-26-73-C0-11-1C-69-7A-70-B6-91
DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
fec0:0:0:ffff::2%1
fec0:0:0:ffff::3%1
NetBIOS over Tcpip. . . . . . . . : Enabled

Wireless LAN adapter Wi-Fi:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Intel(R) Dual Band Wireless-AC 3168
Physical Address. . . . . . . . . : E4-5E-37-56-A9-28
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes

Wireless LAN adapter Local Area Connection* 1:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft Wi-Fi Direct Virtual Adapter
Physical Address. . . . . . . . . : E4-5E-37-56-A9-29
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes

Wireless LAN adapter Local Area Connection* 2:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft Wi-Fi Direct Virtual Adapter #2
Physical Address. . . . . . . . . : E6-5E-37-56-A9-28
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes

Ethernet adapter Ethernet 2:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : RD9700 USB2.0 To Fast Ethernet Adapter
Physical Address. . . . . . . . . : 00-0A-1A-0E-31-04
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::74a2:ff3c:8dcf:2b09%14(Preferred)
IPv4 Address. . . . . . . . . . . : 10.130.50.5(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.248
Default Gateway . . . . . . . . . : 10.130.50.3
DHCPv6 IAID . . . . . . . . . . . : 687868442
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-26-73-C0-11-1C-69-7A-70-B6-91
DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
fec0:0:0:ffff::2%1
fec0:0:0:ffff::3%1
NetBIOS over Tcpip. . . . . . . . : Enabled
Attachments
vbox.zip
.vbox file
(1.61 KiB) Downloaded 19 times
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: PFSense Setup with Virtual Box - Gateway Always Offline

Post by scottgus1 »

This could be one of your problems:
kayul wrote:virtual box setup - both adapter in bridge mode
pfsense.vbox-prev wrote: <Machine ... name="pfsense"
<Network>
<Adapter slot="0" enabled="true" MACAddress="080027F8F968" cable="true" promiscuousModePolicy="AllowAll" type="82540EM">
<DisabledModes>
<BridgedInterface name="Realtek PCIe GbE Family Controller"/>
<InternalNetwork name="intnet"/>
<HostOnlyInterface name="VirtualBox Host-Only Ethernet Adapter"/>
<NATNetwork name="NatNetwork"/>
</DisabledModes>
<NAT/>
</Adapter>
<Adapter slot="1" enabled="true" MACAddress="080027505338" cable="true" promiscuousModePolicy="AllowAll" type="82540EM">
<DisabledModes>
<InternalNetwork name="intnet"/>
<HostOnlyInterface name="VirtualBox Host-Only Ethernet Adapter"/>
<NATNetwork name="NatNetwork"/>
</DisabledModes>
<BridgedInterface name="RD9700 USB2.0 To Fast Ethernet Adapter"/>
</Adapter>
</Network>
The first adapter is actually set to NAT, which defaults to a 10.0.2.# IP address range. So that channel is:
LAN > NAT router (10.0.2.#) > pfSense adapter (10.195.50.#)
The IP range discrepancy might be an issue.

Of course the zipped file was the '.vbx-prev', not the '.vbox', so it's the previous run not the most recent run, so might be old data.

The setup should look like this:

Internet (public ip address)
v
house router 10.?.?.# please clarify which range is before pfSense)
v
host adapter 1 bridged to pfsense WAN side (either DHCP from house router or static in house router ip range)
v
host adapter 2 (USB device?) on pfSense LAN side (providing DHCP & gateway in other 10.?.?.# range)
v
physical switch for pfSense LAN control & gateway
v
computers filtered by pfSense
Post Reply