Jump to content

Adding a wireless interface to VM as a wireless interface.

Shammikit

Hello, I'm in need of setting up my USB wireless interface for my pfsense running in Virtual box and so far I have tried the usual way of bridging the adapter to the VM. This however gets detected as a wired interface by pfsense and i dont want it that way. I need it as a wireless interface. So far I have tried adding the interface as a USB device, but it doesnt get detected by pfsense when i tried to assign it. What other options do I have to achieve my need? Im also open to trying out different VM software if it has the necessary features to do this. Thanks.

 

  

no detect.PNG

usb int.PNG

Link to comment
Share on other sites

Link to post
Share on other sites

What are you trying to do? Is this the lan or wan for the pfsense system?

 

hthe pfsense picture shows it seeing the wifi card, is that card supported?

 

Whats the host os?

Link to comment
Share on other sites

Link to post
Share on other sites

Working under the assumption that you've verified pfSense works with that NIC at all I'd use a different hypervisor and either pass-though the device as a whole or pass-though a USB controller and connect the NIC that way.

 

What are you looking to set up here? If you plan on implementing this for any legitimate network management use I'd advise using pfSense on bare metal.

Link to comment
Share on other sites

Link to post
Share on other sites

5 minutes ago, Electronics Wizardy said:

What are you trying to do? Is this the lan or wan for the pfsense system?

 

hthe pfsense picture shows it seeing the wifi card, is that card supported?

 

Whats the host os?

This is for the LAN interface. I want to setup an AP using the Wireless interface so that devices can connect to the pfsense using WIFI and access internet through it. And yes, i have verified that the USB interface is working with the pfsense as it worked as a wired interface when it was bridged to the VM. The host is a windows 10 machine.

 

Link to comment
Share on other sites

Link to post
Share on other sites

2 minutes ago, Shammikit said:

This is for the LAN interface. I want to setup an AP using the Wireless interface so that devices can connect to the pfsense using WIFI and access internet through it. And yes, i have verified that the USB interface is working with the pfsense as it worked as a wired interface when it was bridged to the VM. The host is a windows 10 machine.

 

SO does it work when its added with usb passthrough?

 

Id really suggest getting a wifi access point or router, there much better as a ap than a wifi card and really don't cost much.

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, Electronics Wizardy said:

SO does it work when its added with usb passthrough?

U mean like this as shown in the screenshot. Well im not sure tbh, when i plug it in it says 802.11 WLAN at usb but it cannot be added as it says no link detected.

usb int.PNG

Link to comment
Share on other sites

Link to post
Share on other sites

Are you sure that's something you really want to do? last I heard pfsense was terrible for WLAN.

Current LTT F@H Rank: 90    Score: 2,503,680,659    Stats

Yes, I have 9 monitors.

My main PC (Hybrid Windows 10/Arch Linux):

OS: Arch Linux w/ XFCE DE (VFIO-Patched Kernel) as host OS, windows 10 as guest

CPU: Ryzen 9 3900X w/PBO on (6c 12t for host, 6c 12t for guest)

Cooler: Noctua NH-D15

Mobo: Asus X470-F Gaming

RAM: 32GB G-Skill Ripjaws V @ 3200MHz (12GB for host, 20GB for guest)

GPU: Guest: EVGA RTX 3070 FTW3 ULTRA Host: 2x Radeon HD 8470

PSU: EVGA G2 650W

SSDs: Guest: Samsung 850 evo 120 GB, Samsung 860 evo 1TB Host: Samsung 970 evo 500GB NVME

HDD: Guest: WD Caviar Blue 1 TB

Case: Fractal Design Define R5 Black w/ Tempered Glass Side Panel Upgrade

Other: White LED strip to illuminate the interior. Extra fractal intake fan for positive pressure.

 

unRAID server (Plex, Windows 10 VM, NAS, Duplicati, game servers):

OS: unRAID 6.11.2

CPU: Ryzen R7 2700x @ Stock

Cooler: Noctua NH-U9S

Mobo: Asus Prime X470-Pro

RAM: 16GB G-Skill Ripjaws V + 16GB Hyperx Fury Black @ stock

GPU: EVGA GTX 1080 FTW2

PSU: EVGA G3 850W

SSD: Samsung 970 evo NVME 250GB, Samsung 860 evo SATA 1TB 

HDDs: 4x HGST Dekstar NAS 4TB @ 7200RPM (3 data, 1 parity)

Case: Sillverstone GD08B

Other: Added 3x Noctua NF-F12 intake, 2x Noctua NF-A8 exhaust, Inatek 5 port USB 3.0 expansion card with usb 3.0 front panel header

Details: 12GB ram, GTX 1080, USB card passed through to windows 10 VM. VM's OS drive is the SATA SSD. Rest of resources are for Plex, Duplicati, Spaghettidetective, Nextcloud, and game servers.

Link to comment
Share on other sites

Link to post
Share on other sites

4 minutes ago, Shammikit said:

U mean like this as shown in the screenshot. Well im not sure tbh, when i plug it in it says 802.11 WLAN at usb but it cannot be added as it says no link detected.

Well in your pfsense screenshot above, it saw the wifi card.

 

Can you show a screenshot of the error?

 

Link to comment
Share on other sites

Link to post
Share on other sites

4 minutes ago, Electronics Wizardy said:

Id really suggest getting a wifi access point or router

in this setup, u connect the LAN output from an Ethernet to an AP, yes? Sadly my Ethernet interface in the old laptop im setting this up doesnt work anymore.

Link to comment
Share on other sites

Link to post
Share on other sites

2 minutes ago, Shammikit said:

in this setup, u connect the LAN output from an Ethernet to an AP, yes? Sadly my Ethernet interface in the old laptop im setting this up doesnt work anymore.

add a usb ethernet adapter?

 

Or just get a router? Why do you want a laptop to be a router?

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, Electronics Wizardy said:

Can you show a screenshot of the error?

 

This is the only visible error: 

38 minutes ago, Shammikit said:

  no detect.PNG

 

 In the web configurator, the interface doesnt show up at all. 

Link to comment
Share on other sites

Link to post
Share on other sites

Does pfsense even have a driver for the card you are passing through?

Current LTT F@H Rank: 90    Score: 2,503,680,659    Stats

Yes, I have 9 monitors.

My main PC (Hybrid Windows 10/Arch Linux):

OS: Arch Linux w/ XFCE DE (VFIO-Patched Kernel) as host OS, windows 10 as guest

CPU: Ryzen 9 3900X w/PBO on (6c 12t for host, 6c 12t for guest)

Cooler: Noctua NH-D15

Mobo: Asus X470-F Gaming

RAM: 32GB G-Skill Ripjaws V @ 3200MHz (12GB for host, 20GB for guest)

GPU: Guest: EVGA RTX 3070 FTW3 ULTRA Host: 2x Radeon HD 8470

PSU: EVGA G2 650W

SSDs: Guest: Samsung 850 evo 120 GB, Samsung 860 evo 1TB Host: Samsung 970 evo 500GB NVME

HDD: Guest: WD Caviar Blue 1 TB

Case: Fractal Design Define R5 Black w/ Tempered Glass Side Panel Upgrade

Other: White LED strip to illuminate the interior. Extra fractal intake fan for positive pressure.

 

unRAID server (Plex, Windows 10 VM, NAS, Duplicati, game servers):

OS: unRAID 6.11.2

CPU: Ryzen R7 2700x @ Stock

Cooler: Noctua NH-U9S

Mobo: Asus Prime X470-Pro

RAM: 16GB G-Skill Ripjaws V + 16GB Hyperx Fury Black @ stock

GPU: EVGA GTX 1080 FTW2

PSU: EVGA G3 850W

SSD: Samsung 970 evo NVME 250GB, Samsung 860 evo SATA 1TB 

HDDs: 4x HGST Dekstar NAS 4TB @ 7200RPM (3 data, 1 parity)

Case: Sillverstone GD08B

Other: Added 3x Noctua NF-F12 intake, 2x Noctua NF-A8 exhaust, Inatek 5 port USB 3.0 expansion card with usb 3.0 front panel header

Details: 12GB ram, GTX 1080, USB card passed through to windows 10 VM. VM's OS drive is the SATA SSD. Rest of resources are for Plex, Duplicati, Spaghettidetective, Nextcloud, and game servers.

Link to comment
Share on other sites

Link to post
Share on other sites

2 minutes ago, Shammikit said:

This is the only visible error: 

 In the web configurator, the interface doesnt show up at all. 

My guess is that it just isn't supported in freebsd well. Do you have nouther wifi card to test?

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, Electronics Wizardy said:

add a usb ethernet adapter?

 

Or just get a router? Why do you want a laptop to be a router?

yes, usb ethernet adapter is my last option. first would like to give a shot to see if this works using what i have.

 

I want the laptop to be a firewall as i have used it to only setup some rules. i have another router which is the ISP router that connects to the WAN interface so the devices can get to the internet.

 

I drew this diagram which i have in my mind of the setup im trying:

pfsense wifihotspot.PNG

Link to comment
Share on other sites

Link to post
Share on other sites

3 minutes ago, Electronics Wizardy said:

My guess is that it just isn't supported in freebsd well. Do you have nouther wifi card to test?

yes, i have 2.  A TP Link and a Prolink one. both of them didnt work, go the same message.

Link to comment
Share on other sites

Link to post
Share on other sites

2 minutes ago, Shammikit said:

 

I want the laptop to be a firewall as i have used it to only setup some rules. i have another router which is the ISP router that connects to the WAN interface so the devices can get to the internet.

You don't want dual nat, so make sure you don't do that.

 

What type of firewall rules do you need? A basic home rouer should be fine for this use. I don't think you need pfsense here.

Link to comment
Share on other sites

Link to post
Share on other sites

5 minutes ago, sazrocks said:

Does pfsense even have a driver for the card you are passing through?

Im not sure about that, i thought they were plug & play. Is there a way to check this?

Link to comment
Share on other sites

Link to post
Share on other sites

2 minutes ago, Shammikit said:

Im not sure about that, i thought they were plug & play. Is there a way to check this?

look up the chipset the cards use and see if there supported on freebsd.

 

Or make your router wired only, and use another access point.

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, Electronics Wizardy said:

You don't want dual nat, so make sure you don't do that.

 

What type of firewall rules do you need? A basic home rouer should be fine for this use. I don't think you need pfsense here.

I have setup some QOS, bandwidth controls and data usage limiters. these settings are not available in the ISP router. And i have tried  putting that ISP SIM in a different router and thy dont work. There arent any APN settings shown in their router as thy r set to auto and the ISP doesnt disclose that info for some reason. So that SIM only works in that router thy give us. so theres no way of eliminating it. 

Link to comment
Share on other sites

Link to post
Share on other sites

2 minutes ago, Shammikit said:

I have setup some QOS, bandwidth controls and data usage limiters. these settings are not available in the ISP router. And i have tried  putting that ISP SIM in a different router and thy dont work. There arent any APN settings shown in their router as thy r set to auto and the ISP doesnt disclose that info for some reason. So that SIM only works in that router thy give us. so theres no way of eliminating it. 

THen Id make the pfsense system wired only, and use your other router of computer do wireless.

Link to comment
Share on other sites

Link to post
Share on other sites

40 minutes ago, Windows7ge said:

I'd use a different hypervisor

What other hypervisor do u recommend? 

Link to comment
Share on other sites

Link to post
Share on other sites

2 minutes ago, Shammikit said:

What other hypervisor do u recommend? 

If your on windows hyper-v works best normally, but since its passing usb correctly, the hypervisor won't change anything here. 

 

Have you tried untangle or anouther linux based router/firewall distro?

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, Electronics Wizardy said:

Have you tried untangle or anouther linux based router/firewall distro?

no, still only pfsense. I'll do some research on those too

Link to comment
Share on other sites

Link to post
Share on other sites

6 minutes ago, Electronics Wizardy said:

THen Id make the pfsense system wired only, and use your other router of computer do wireless.

 

 

pewds.gif

Link to comment
Share on other sites

Link to post
Share on other sites

9 hours ago, Shammikit said:

What other hypervisor do u recommend? 

I would test this configuration on bare metal before trying to do it in a VM. Right now the issue could be anything between the virtualization process or potentially pfSense's ability to use that NIC at all. Eliminate that it's virtualization problem then try to virtualize it. It'll tell you what the problem is.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×