Virtual Router / Remove Host Connectivity
-
I've looked at video's on how to set up different things like dd-wrt and pfsense on a virtual machine, but all their intentions are to use it as an internal network between vm's, which isn't what i'd like to do.
-
With a config that hacky, I'm not surprised you're having problems. Have you confirmed that FreeBSD supports your wireless NICs? Do you also have a wired connection?
-
im not sure freebsd supports them but they do show up in pfsense as adapters, and i have accessed the web configuration tool thingy on the host machine it just stops working when ever i try to edit anything using the wizard.
-
Do you also have a wired connection? What are these wireless NICs connected to? One is your LAN AP. What is the WAN one connected to?
-
I have no access to wired connection, they are both wifi adapters
-
What is the WAN nic connected to?
-
the WAN nic is connected to the hotel's wifi, obviously via wifi, what i hoped my plan would be was to use the wan nic, connected to hotel wifi, as the internet coming into the router, then use the second nic as to distribute the wifi to the other devices, and i think thats how i got the web configurator working before, but i cant remember, is there something we can use to get this resolved quicker? not saying this isn't ok, just would like some more security and get this thing working, been ripping my hair out..
(im new to networking, but would love to get into it as a career one day)
-
OK, so you've got a WAN that gets an IP via DHCP from the hotel. I'm not great with wifi but with a regular NIC you would give it a static IP address in the private range eg 192.168.100.1/24 and no gateway. Enable a DHCP server and give it a range of usable addresses and that should be about it.
A lot of hotels use a voucher system with their guest wifi, and this involves going to a portal page and getting a voucher. I have no idea how you would handle that if that's the case.
How do you currently have your WAN and LAN configured in pfSense?
-
There isn't, it just straight to internet.. and so let me get this straight, two nics on the vm, give my host pc a static ip, make a NAT nic on the vm as WAN, then make a bridged nic for LAN?
and currently there is no configuration, id like to start over so im not fussing with a mess.
-
give my host pc a static ip
Give your pfSense LAN NIC a static IP. Your host computer will get a dynamic IP from the hotel.
make a NAT nic on the vm as WAN, then make a bridged nic for LAN?
Yes.
-
the thing is, im not sure how to specify the virtual nic, to connect to the physical nic in my pc, i dont see the option to give it the physical nic.. also i've booted up pfsense with a NAT was wan, and a bridged as lan, given the lan a 192.168.2.100 ip, and it told me to go to that to configure it, i also set up wan with dhcp, and it gave it 192.168.159.129/24, both wan and lan are /24 bit
-
i dont see the option to give it the physical nic
I don't have a multi-NIC rig so I don't know about that. Virtualbox allows you to select which NIC to map to. I assume VMware must have the same thing. Check your NIC config (I assume you added a second NIC to the VM?) and see if the vNIC properties let you choose your physical NIC.
it told me to go to that to configure it
That's right. You have to have a system on the LAN network to get access to the WebGUI. Try it from a wireless device that is not your PC. Make sure you have configured a DHCP server on LAN or your devices won't get an IP address.
-
ok ill get lan set up with dhcp, and ill try it with my tablet, (it runs normal windows), thank you so much for you help if this works, i really appreciate it.
also, will i be able to connect my host pc, my main host pc to this new virtual router? (i can use a third USB wifi adapter if need be)
-
btw in VMware, to ma a physical NIC to a vNIC, you need to use their Virtual Network Editor. I found this:
https://www.pluralsight.com/blog/it-ops/vm-workstation-advanced-networking
Look under the Custom Networking section.
-
I've set up everything how you said, second physical nic assigned to virtual nic, via bridging, assigning dhcp to wan and lan, assigning bridged nic to lan, nat to wan, and i still can't seem to get to the web configurator, im not sure how to access the network to get to it.
How are you testing? You can't use your PC. You have to use a device that is connected to the AP.
-
well i think i figured it out, i set it up just like you said, use my win 10 VM to set up the AP via webconfig, THEN, i can connect to it.. sorry if im acting stupid
-
I am inside the web config, and it seems to be working on my win 10 VM, but there isn't any internet getting through, wont let me hit google or anything, any idea's?
-
https://doc.pfsense.org/index.php/Connectivity_Troubleshooting
It could be lots of things.