Recommended Posts

So after putting up with crappy WiFi around the house and after months of debating, I finally caved and decided to do something about it. 

 

IMG_20180828_162807.thumb.jpg.48d4a00df30bc48cca75a3c7db9f96d5.jpg

I went away and bought a couple of Ubiquiti APs plus an old desktop for pfSense.

 

Now I did a bit of reading up on best ways to set up, common pit falls and watched a few video tutorials. I arrogantly thought this would be a piece of cake, and of course I was wrong ;)

 

Credit to Ubiquiti, the APs were a doddle to set up, even with my lack of networking knowledge. The pfSense box on the other hand not so easy. After struggling to install it, configure the NIC and get any kind of basic connection, I gave up after 3 hours of tearing my hair out. 

 

There was clearly more to to the set up than I'd anticipated. If anyone has any pointers or things to read up on before I make another attempt at the weekend, please feel free to post. Keep an eye out for an update later this week ;)

 

Here's what I'm working with. 

  • UniFi AC Lite AP (x2)
  • HP Compaq 8200 Elite SFF (this is being used for the pfSense box)

    • Intel Core i5 2400 3.1GHz

    • 2GB RAM (DDR3)

    • Intel Pro 1000 PT

  • TP-LINK TL-SG108E

 

Here's what I'm trying to achieve

1504056070_UntitledDiagram.thumb.png.1867b7e972560bfb8d8b6a87bed77388.png

 

and the issues :P

 

  • When I had pfSense working, WAN was reporting 1000BaseTx, LAN however was only reporting 100BaseTx. I have 200Mpbs internet so really need Gigabit. 
  • After setting up and attaching the switch to the pfSense box, I was not able to access the switch. It was throwing an error with the message "Host IP address and switch IP address must be on the same subnet" I hadn't changed any of the subnet settings, so not sure why this was happening :(
Link to comment
https://www.neowin.net/forum/topic/1371566-my-networking-adventure/
Share on other sites

Just now, Jason S. said:

i've seen the name "pfSense" before, but i dont know what it is.... software firewall?

Yeah it's an open source software firewall. It can be run on pretty much any hardware for the basics, but it's pretty powerful. 

are there any VLANs in your config? did you bridge your modem to the box, or did you leave it DHCP?

 

This seems to be a pretty good guide to setting pfsense as a router https://www.tecmint.com/installation-and-configuration-of-pfsense-firewall-router/

Edited by Circaflex

The ip of the switch must be on the same subnet as the host/gateway

 

In simpler terms if you have a 192.168.1.x network with a network subnet mask of 255.255.255.0, all of your devices must have a unique number starting with 192.168.1 and ending with a unique final number on the network.  This is its address.  

 

Think of 192.168.1 as your street and the final number as your street address...It is hard for two houses to sit on top of each other so you can't have two of the same final numbers...the network won't like it.  And if you have anything other than 192.168.1, it would exist on a different street and have no way of knowing how to get there (this is where routing comes into play and instructing traffic on how to get to where it wants to get to...without that instruction it will create errors or simply not work.    Traffic can easily find where it needs to go if it is on the same subnet (street), when traffic needs to go to different subnets (streets) it needs a router/route tables to assist with knowing where to go.

  • Thanks 1

Your going to have to give some details of what your doing exactly... Because you install pfsense and then follow the bouncing ball.. I would think my 8 year old grand daughter could follow a bouncing ball..

 

3 hours ago, dipsylalapo said:
    • Intel Pro 1000 PT 

  • TP-LINK TL-SG108E 

So you have 1 nic?  And your trying to do vlans with a switch that doesn't really support them - What version and firmware are you running on this tp-link 108e?  If its v3 and latest firmware you might be in luck.  But if its v2 or before good luck they don't let you remove vlan 1 from every port.

 

Happy to walk you through your install, But your going to have to give us more to work with other than you tried for X hours.. What are you plugging the wan into?  Are you able to access the gui once you install pfsense? etc. etc..  If you really have only 1 nic in that box I would suggest getting another one, and get a switch that actually handles vlans correctly.  The dlink DGS-1100-08 does.. Same price point tp-link.

 

I have run pfsense since version 1 of it.. So pretty sure we can get you up and running if you don't have hardware problems - like ###### POS that can not do vlans and you only have 1 nic ;)

5 minutes ago, BudMan said:

So you have 1 nic?

Would it matter if that NIC is a dual port? Or would it still be recommended to have two separate NICs? I know most of the cookie cutter guides suggest two separate NICs and I'll be honest, I did not search all that much for that model and if it works that well with pfsense.

if you have dual port your good..

 

But I read

>Intel Pro 1000 PT

 

As 1 port nic.. Which sure you can do if your switch supports vlans - but his drawing doesn't even show that.. So really at a loss to what he is doing without some more details.

 

edit: So just noticed this

>WAN was reporting 1000BaseTx, LAN however was only r eporting 100Base T x

 

So that kind of says he has 2 nics?  Or dual port?  if its not coming up gig then you have problem with cable or switch/nic - and yeah what IP range your using very helpful.. And what you setup on the switch for a gui as well..

3 minutes ago, BudMan said:

if you have dual port your good..

Got it, we'll have to see what OP has. There is both a Intel Pro 1000 PT single and dual port model available. Unless he is pairing that with the onboard NIC, guess we'll need clarification. 

If that switch is v2 or v1 - shoot even v3 I would return it... The latest firmware is suppose to fix it.. But not so sure.. I don't think they understand how to do vlans to be honest on their low end consumer stuff.. Its really broken that you can not remove a port from vlan1.. It makes not possible to isolate your vlans, and pretty much just junk - really not any different than just a dumb switch.. There are plenty of other options that are at the same price point.

 

Because if he wanting to do vlans with his AP he is going to want switch that can actually do vlans.

 

V3 has this

Published Date: 2018-01-05     Language: English     File Size: 421.27 KB

Modifications and Bug Fixes:

New Features/Enhancement:
1.The port can be removed from VLAN1
2.The port of VLAN1 can choose tagged/untagged

Notes:

1. For TL-SG108E_V3
2. Your device's configuration will not be lost after upgrading, which means you don't need to configure your device again after upgrading.

 

Seems they have V4 out now - you would hope it has fix.. But they do not update the v2 or v1...

 

15 hours ago, Circaflex said:

are there any VLANs in your config? did you bridge your modem to the box, or did you leave it DHCP?

 

This seems to be a pretty good guide to setting pfsense as a router https://www.tecmint.com/installation-and-configuration-of-pfsense-firewall-router/

No VLANs at the moment. Modem was set to bridge only. That's one of the guides that I was using. 

15 hours ago, sc302 said:

The ip of the switch must be on the same subnet as the host/gateway

 

In simpler terms if you have a 192.168.1.x network with a network subnet mask of 255.255.255.0, all of your devices must have a unique number starting with 192.168.1 and ending with a unique final number on the network.  This is its address.  

 

Think of 192.168.1 as your street and the final number as your street address...It is hard for two houses to sit on top of each other so you can't have two of the same final numbers...the network won't like it.  And if you have anything other than 192.168.1, it would exist on a different street and have no way of knowing how to get there (this is where routing comes into play and instructing traffic on how to get to where it wants to get to...without that instruction it will create errors or simply not work.    Traffic can easily find where it needs to go if it is on the same subnet (street), when traffic needs to go to different subnets (streets) it needs a router/route tables to assist with knowing where to go.

Great explanation, thanks. If I remember correctly, pfSense was set to 192.168.1.x and the switch (as it was something that I'd already had) was set to 192.168.0.x. I'll have a look at correcting that :) 

13 hours ago, BudMan said:

if you have dual port your good..

 

But I read

>Intel Pro 1000 PT

 

As 1 port nic.. Which sure you can do if your switch supports vlans - but his drawing doesn't even show that.. So really at a loss to what he is doing without some more details.

 

edit: So just noticed this

>WAN was reporting 1000BaseTx, LAN however was only r eporting 100Base T x

 

So that kind of says he has 2 nics?  Or dual port?  if its not coming up gig then you have problem with cable or switch/nic - and yeah what IP range your using very helpful.. And what you setup on the switch for a gui as well..

There are three NICs in total, one onboard, plus two on the card. Another issue I had was trying to set up the WAN and LAN on the dual NIC card, but for some reason, during the pfSense setup, I wasn't able to use only the NIC

13 hours ago, BudMan said:

If that switch is v2 or v1 - shoot even v3 I would return it... The latest firmware is suppose to fix it.. But not so sure.. I don't think they understand how to do vlans to be honest on their low end consumer stuff.. Its really broken that you can not remove a port from vlan1.. It makes not possible to isolate your vlans, and pretty much just junk - really not any different than just a dumb switch.. There are plenty of other options that are at the same price point.

 

Because if he wanting to do vlans with his AP he is going to want switch that can actually do vlans.

 

V3 has this

Published Date: 2018-01-05     Language: English     File Size: 421.27 KB

Modifications and Bug Fixes:

New Features/Enhancement:
1.The port can be removed from VLAN1
2.The port of VLAN1 can choose tagged/untagged

Notes:

1. For TL-SG108E_V3
2. Your device's configuration will not be lost after upgrading, which means you don't need to configure your device again after upgrading.

 

Seems they have V4 out now - you would hope it has fix.. But they do not update the v2 or v1...

 

I'd bought the switch a while back so am stuck with it for now. I'll check the FW version and see if it's something that can be fixed. 

 

Is it better to create the VLANs using pfSense, the switch or even the APs? Eventually I'd like to have all my smart devices on their own VLANs. 

If you want to use vlan then you need switch and AP that support them.  The unifi sure do, so you need a switch that supports them as well.  The only question is if that switch you have actually does, if you can not remove vlan 1 from specific ports then it doesn't  Its really no better than some dumb switch if all ports are forced to be in vlan 1 even when you add other vlans too them.

 

The hardest part of about setting up dual nic is actually knowing which nic is which ;)  Its best to figure out the mac of the specific nic, then when you setup the interfaces you can tell by the mac listed which interface you want as what, ie wan or lan.. Its very common to flip them and then have issues.

8 minutes ago, BudMan said:

If you want to use vlan then you need switch and AP that support them.  The unifi sure do, so you need a switch that supports them as well.  The only question is if that switch you have actually does, if you can not remove vlan 1 from specific ports then it doesn't  Its really no better than some dumb switch if all ports are forced to be in vlan 1 even when you add other vlans too them.

 

The hardest part of about setting up dual nic is actually knowing which nic is which ;)  Its best to figure out the mac of the specific nic, then when you setup the interfaces you can tell by the mac listed which interface you want as what, ie wan or lan.. Its very common to flip them and then have issues.

I'll take a look at the switch when I get back tonight. 

 

To be fair, I think with pfSense, if you have a display hooked you can figure them out with a bit of trial and error. 

 

More stupid questions..

 

Am I correct in understanding that you can segregate networks either via a VLAN or subnets? Is there a preference or best practice or does it depend on what I want to do?

 

I feel like there are some fundamental questions that I need to answer about exactly what I'm after before I try again.  

VLANs are almost like having physically separate networks for each vlan - each device can only see traffic on the vlan that they're on.

 

Subnets are slightly different. You can't communicate with other devices on a different subnet without going through a router, but if you were to have a network configured as 192.168.0.x for example, and connect a PC to it with it's IP set to 192.168.1.5, you'd still be able to see any broadcast traffic on 192.168.0.x if you used a sniffing tool in promiscuous mode (e.g. Wireshark).

 

VLANs give you actual isolation, if the port you're connected to doesn't output traffic for a specific vlan, there's no way you're seeing any of the traffic on that vlan.

16 hours ago, DaveLegg said:

if the port you're connected to doesn't output traffic for a specific vlan, there's no way you're seeing any of the traffic on that vlan.

Unless your using that POS switch from tplink that doesn't actually isolate the vlans - and every port is part of vlan 1 without any way to remove it ;)

 

Dave gave pretty good run down.. This can be confusing to someone new to networking for sure.  A vlan and network are really the same thing.. They are used interchangeable.. When you say your going to vlan your network... You could be doing it with a switch that supports vlans and doing all on say 1 switch, or sure you could use multiple dumb switches and use a different switch for each vlan/networrk.. 

 

Where it can get even more confusing for new to networking is a vlan can be tagged or untagged/native..   If all your doing is connecting your dumb switch to an interface in pfsense it would all be untagged traffic..  If your going to put more than 1 network on the same physical interface then your going to have to tag the vlans so that the router/nic can know which traffic belongs to which vlan/network.. You can still have a vlan that is untagged/native - but all other vlans on that interface have to be "tagged" or will not be able to isolate them.

 

Same goes for a switch.. You put your ports into whatever vlan you want.. Connect to a device they will be untagged.  Connected to another switch or router and this port going to have more than 1 vlan on it - then they have to be tagged.  Picture always worth 10,000 words.. You create multiple networks/subnets all physical like this..

 

So you could do it with physical isolation of your network/subnets... Lets say 192.168.0/24 and 192.168.1/24

 

phsisolation.thumb.png.35ad51622358122ff5ccba45d04860f4.png

 

You route between these networks but all devices that are on the same network are isolated with just dumb switches, not vlan capable.. You have 3 physical interfaces, 1 for your wan/internet and 1 each for your 2 networks..

 

Then you can do with with vlan capable switches and AP... And now you can put any device on any network/vlan you want via configuration of the port on the switch or what SSID you connect to on your wireless.. All of these vlans will be different networks at layer 3, ie 192.168.0, .1, .2 /24 etc..

vlanisolation.thumb.png.2b9d87bd29853d2acb1e6c7c13834538.png

 

Now all these vlans if tagged can connect to just 1 physical interface on the Router.. And router knows what traffic is on which network via the tag... Or you could use physical interfaces for your different vlans to the router without tagging them..

 

tagandnative.thumb.png.0ec2bc3f3310f26a3f9b4a35da2222ec.png

 

Does that help?  So you See here there are some vlan/networks that are all on the 1 physical interface and tagged so router/firewall can tell them apart.  While vlan 80 comes in on its own physical interface an not tagged (it could be - but that is for later time).. So you can create networks with physical isolation where all devices connected to the same "wire" lets call it.. At layer 2.. Or you can vlan it (virtual network) and isolate the wire of each network virtually with "tags" on the traffic so the routers and switches can keep the different networks isolated.

 

In the above examples with vlans 50,60 etc.. Those would all be different networks... Lets say 192.168.50/24 and 192.168.60/24 etc..  The vlan ID, the number you assign to the vlan when you configure it in your switch/router is nothing more than an ID.. just some number (within specific range of numbers) Most the time you try and match those up.. So for example my network/vlan that is 192.168.9/24 uses vlan ID 9..

 

So you see here, while I have only 3 vlans defined on my router (pfsense) there are other networks connected to different physical interfaces.

 

vlan-interfaces.thumb.png.6c68f9bfd290822f1f9e3680c7f2fdc1.png

 

So for example my Lan network, which is 192.168.9/24 is setup on my switch as vlan 9, so some ports on the switch are on vlan 9.. Some are on other vlans..

 

switchvlans.thumb.png.a3a43f065d28c98b02b54bea393c84c1.png

 

I hope that is not too much information at once... Any questions just ask!!!

 

 

 

No that helps a lot! These posts have been way more useful than the stuff that I've been reading. I'll have to read it all through a few more times just to make sure that I do understand it all. 

 

I had a look at my switch at the weekend and it's a v1 so I'll have to replace that to implement VLANs. 

Any questions just ask, been doing this stuff a long time and running pfsense since its version 1.01

 

The switch is still usable as a dumb switch.. But yeah it can't actually do vlans..  Its no different then trying to run vlans over a dumb switch..  Which is just borked, but if all your devices understand tags you could do it.. Just not secure at all.. Just have to setup every device to understand what vlan your wanting it to be on via tag..  That is if the device nic driver/os supports it, etc.

 

 

This topic is now closed to further replies.
  • Posts

    • Nothing kills CMF Phone 2 Pro's successor due to rising memory prices by Hamid Ganji Storage and RAM prices have been rising over the past year, leading to a significant increase in the cost of electronics for customers around the world. Many companies are now revising their plans for upcoming devices due to higher component costs and overall production expenses. CMF is the latest company to cancel the successor to one of its best-selling phones due to rising memory prices. CMF is a sub-brand of Nothing and focuses on making budget smartphones for growing markets. The brand launched the CMF Phone 2 Pro last year with some eye-catching specifications and an affordable price. While many customers may have been waiting for a successor this year, one of the company’s executives has announced that CMF will not release a new smartphone this year. And AI is to blame. As Nothing co-founder Akis Evangelidis announced on X, the company has been working on a successor to the CMF Phone 2 Pro, but with current memory prices, it cannot “build a phone that feels like a genuine step forward at a price that makes sense for CMF.” So, no new CMF phone will be launched this year. Meanwhile, Evangelidis said the company still has several new products in the pipeline, including some in entirely new categories. He added that the Nothing brand will also continue launching new products through 2026. Budget smartphones are among the first victims of the surge in RAM and memory prices, as they have become more expensive to build. The sharp increase in memory costs could also reshape the traditional price ranges associated with budget phones. Apple CEO Tim Cook also recently said that price increases for some of the company’s products are unavoidable because RAM and memory have become significantly more expensive this year. Analysts estimate that the base price of the upcoming iPhone 18 Pro could rise to $1,399 due to current market shortages.
    • Nudge me when they bring back hardware audio acceleration so I can get my EAX 5 back. We've evolved graphics to real-time path tracing, but regressed audio some 15 years back in time with this stupid software audio stack.
    • Ocenaudio 3.19.4 by Razvan Serea  Ocenaudio is a full featured, fast and easy to use audio and music editor. It is the ideal software for people who need to edit and analyze audio files without complications. Ocenaudio also has powerful features that will please more advanced users. To assist ocenaudio development, a powerful toolset of audio editing, analysis and manipulation called Ocen Framework was created. ocenaudio is also based on Qt framework, a well known library for cross-platform development. Cross-platform support ocenaudio is available for all major operating systems: Microsoft Windows, Mac OS X and Linux. Native applications are generated for each platform from a common source, in order to achieve excelent performance and seamless integration with the operating system. All versions of ocenaudio have a uniform set of features and the same graphical interface, so the skills you learn in one platform can be used in the others. VST plugins support Ocenaudio supports VST (Virtual Studio Technology) plugins, giving its users access to numerous effects. Like the native effects, VST effects can use real-time preview to aide configuration. Real-time preview of effects Applying effects such as EQ, gain and filtering is an important part of audio editing. However, it is very tricky to get the desired result by adjusting the controls configuration alone: you must listen the processed audio. To ease the configuration of audio effects, ocenaudio has a real time preview feature: you hear the processed signal while adjusting the controls. The effect configuration window also includes a miniature view of the selected audio signal. You can navigate on this miniature view in the same way as you do on the main interface, selecting parts that interest you and listening to the effect result in real time. Multiselection for delicate editions To speed up complex audio files editing, ocenaudio includes multi-selection. With this amazing tool, you can simultaneously select different portions of an audio file and listen, edit or even apply an effect to them. For example, if you want to normalize only the excerpts of an interview where the interviewee is talking, just select them and apply the effect. Eficient edition of large files With ocenaudio, there is no limit to the length or the quantity of the audio files you can edit. Using an advanced memory management system, the application keeps your files open without wasting any of your computer's memory. Even in files several hours long, common editing operations such as copy, cut or paste happen almost instantly. Fully featured spectrogram Besides offering an incredible waveform view of your audio files, ocenaudio has a powerful and complete spectrogram view. In this view, you can analyze the spectral content of your audio signal with maximum clarity. Advanced users will be surprised to find that the spectrogram settings are applied in real time. The display is updated immediately when altering features such as the number of frequency bands, window type and size and dynamic range of the display. Ocenaudio 3.19.4 changelog: Adds fallback fonts so every language and symbol displays correctly Improves autosave and session recovery stability Improves region navigation and display Fixes a crash when the level meter is used on displays with a scaling greater than 200% Fixes memory corruption when using the silence selection tools Fixes crashes when closing a file while effects are still being processed Fixes a freeze when applying effects to many files at once (macOS) Fixes crashes related to audio devices on Windows Fixes invalid file names when exporting regions whose label is used as the file name Other bug fixes and improvements Download: Ocenaudio 64-bit | Portable | ~40.0 MB (Freeware) Download: Ocenaudio for Linux and Mac OS View: Ocenaudio Homepage | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Hasleo Disk Clone 5.8.2.1 by Razvan Serea Hasleo Disk Clone is a free and all-in-one disk cloning software for Windows 11/10/8/7/Vista and Windows Server that can help you migrate Windows OS to another disk, clone one disk to another disk or clone one partition to another location quickly and efficiently. Completely Free Windows Migration and Disk/Partition Cloning Software Migrate Windows from one disk to another without reinstalling Windows, apps. Clone one disk to another and makes the data on 2 disks are exactly the same. Clone a partition to another location without losing any data. Easily adjust the size and location of the destination partition. Convert MBR to GPT or convert GPT to MBR by cloning. Creation of Windows PE emergency disk. Extremely fast cloning speed and multi-language support. Supported OS: Windows Vista/Server 2008 or later, fully compatible with GPT and UEFI. Hasleo Disk Clone 5.8.2.1 changelog: Fixed an issue that caused disk enumeration to fail Fixed an issue where WinPE created under Windows ARM64 26H1 did not work properly Download: Hasleo Disk Clone 5.8.2.1 | 32.3 MB (Freeware) Link: Hasleo Disk Clone Home Page | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • This got me thinking, would you rather a self driving car prioritise protecting its passengers or everyone else? I'd choose the one that keeps me and my kids safest. At some point, these cars have to make those choices already, don't they? Wonder if we have a way to find out what way they lean.
  • Recent Achievements

    • Collaborator
      ryansurfer98 went up a rank
      Collaborator
    • Week One Done
      Eurosoft10 earned a badge
      Week One Done
    • One Month Later
      Eurosoft10 earned a badge
      One Month Later
    • One Year In
      Skeet Campbell earned a badge
      One Year In
    • One Month Later
      Sharbel earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      552
    2. 2
      +Edouard
      188
    3. 3
      Michael Scrip
      78
    4. 4
      PsYcHoKiLLa
      74
    5. 5
      neufuse
      71
  • Tell a friend

    Love Neowin? Tell a friend!