PF Sense Setup
-
@johnpoz Currently I believe PFSense isnt even physically connected properly because WAN and LAN are both going to my switch. I just wanted to get the box physically setup and started somewhat. I want to learn what I am setting up and why. The diagram helps me explain things better. Thank you for the information, its really helpful. I will put everything behind PFSense.
When I go isp device -- pfsense-- everything else, would I be putting my modem/router combo in bridge mode so PFsense hands out DHCP?
Or would I just leave the modem/router as is and disable DHCP in the router and enable DHCP in PFSense?
*As I am typing this out, I am thinking, I have most of the ports on the back of the ISP device used (hardwired to other switches)...So I am under the impression, I would have to plug those all in the switch the pfsense box would run off of instead of having them plugged into the isp device ports....which makes me think I would have to put the isp device in bridge mode before connecting it to pfsense..
Sorry, learning as I go. Thank you again for your input.
-
You don’t need PFsense in that setup.
As noted PFSense is designed to be the 2nd device, modem first, in your network. That’s why it’s THE firewall of firewalls. It controls what does or does not pass through to devices attached to it.
Would you disable DHCP…enable in PFSense?
Not if your setup remains as your diagram.
-
Here's what putting PFSense 2nd looks like. You have a switch with nothing attached to it so not sure how you're using it. PFSense is the DHCP/DNS server for everything down stream from it. PFSense is smart, modem is dumb. PFSense does the heavy lifting, modem does none.
-
@travelmore said in PF Sense Setup:
which makes me think I would have to put the isp device in bridge mode before connecting it to pfsense..
No you could always double nat.. You just need to make sure the network being used by your isp device, ie this would be pfsense wan, does not overlap with the network you use on pfsense lan.
But sure in a more optimal setup, pfsense would get a public IP on its wan.
-
Here's what my network topology looks like. Funny as it sounds like I'm some IT guy. I'm only showing you this because given I can figure this out, ANYONE can figure it out. The red lines are 2.5gb. My cable based ISP rarely gets over 2. I'll take 1,5, 1.8 gbs. I feel for some of the users here on DSL. Wish I could donate bandwidth to them. Purple is 1gb. Wireless AP is Asus AX86U which has one 2.5gb port. 5 ethernet ports. Wireless clients that connect AX/Wifi6 are actually using the higher speeds for throughput. Just love these guys that brag about 2.1gbs wireless that are hanging on 300mbs ISP connection.
One wired client is 2.5gb as well. New Intel NUC with Intel 2.5gb LAN.
I took advantage of the multiple pci-e slots in the Dell and put three Intel based 2.5gb NIC's in. One goes to the modem, one to the AP, one to the back office. The two LAN NIC's are in PFSense's bridge modem. The 2 are one big happy family. I have a spare 1gb built-in LAN port, as I'm sure you do as well, I did have and could again add to the bridged family.
You could do the same even if only thinking 1gb NIC's. Some PFSense users crap on us bridged folks because it does make the PFSense box a switch of sorts. It works very well though. Could also use multiple NIC's setup in VLAN's, etc. But I am not going there. Don't want to tackle that learning curve.
Again given I can figure this out, anyone can mostly because of the community support on this forum.
-
@jsmiddleton4 said in PF Sense Setup:
one to the AP
What AP are you running that has 2.5ge interface? So wifi router your using as AP.. How many ports does it have.. Looks like 6?
-
Asus AX-86U. Great AX router. Not outrageously expensive. Can run RMerlin's firmware. In AP mode doesn't need to but can if want to.
2 laptops into which I've put Intel AX210's, their Wifi6E cards, connect 2.1gbs and don't break a sweat.
The laptop I'm on is about 70-80 feet from router.
When converting to AP you tell the 2.5gbe port its a LAN/Ethernet port. The remaining ones are live and 1gb which leaves 5 1gb. Also have a USB 3 external drive plugged into it. In testing probably not as fast as my NAS but from a user perspective, I can't tell any speed difference. Stream video off it easily.
-
Looks like about $300... Not bad for a box that has 6 ports, 2.5g and also supports lacp.. Other than it looks like a freaking monster ;) And you can run 3rd party firmware on it.. Not bad..
I wouldn't mind updating to wifi6, but none of the unifi ap have 2.5ge interfaces yet.. So really don't see the point in updating. I only have 2 devices that could do ax anyway. new phone and new desktop - but the desktop is wired, I would never put it on wireless even if was ax ;)
No offense but that thing is ugly ;) I like my AP on the ceiling out of the way and not really noticeable..
-
Is now. Chip shortage.....
Wasn't. Won't be. I got mine for 189 on sale at Best Buy.
Its rather small actually. Plus antenna's are easily changed. They're standard threaded jacks. I put a three antenna external pack on it, hung high on a wall. Can't see it either. The router itself is no taller than my Synology NAS.
Don't know about unifi's but there's ceiling mounted AP's with 2.5gb POE ports out there.
Edit: because I can attach a third party antenna set the router is unseen. Lives on a middle shelf with my cable modem and the NAS. You can put the router anywhere and string antenna's to it.
-
Back to Travelmore.....
"So really don't see the point in updating"
In my opinion its only worth doing so if you're ISP is fast enough to warrant it. Even if all clients were 1gb, if your ISP was faster than 1gbs, you'd be taking advantage for your clients. All clients would be fed through a 2.5gb pipe. If I had 2.5gb clients but still at 1gb or slower ISP, I'd not have messed with updating.
-
@jsmiddleton4 said in PF Sense Setup:
because I can attach a third party antenna set the router is unseen
quite true.. for under $200 be a nice piece of hardware to play with I am sure..
-
Current speed test. For 2.5gb hard wire I'm using a QNAP 2.5gb switch. Gave an Amazon refurb a shot. Works great. Half price.
-
Really didn't intend to take over helping Travelmore.
Hope he'll get back in the thread......
-
@jsmiddleton4 No worries! Thank you for your help and info you provided. As you stated I have a switch w/nothing attached in one of my diagrams. I realized that was a mistake on my part. There are many things coming to that switch, the diagram was wrong and it should look like this. I altered it a little more because if I put PF Sense 2nd and then a switch, everything else needs to be coming off of that switch as well (shown in adjusted diagram) and added a few more devices from my network.
So, please correct me if Im wrong on the below:
-
In order to have PFSense monitor bandwidth/devices, whatever else, it has to be THE firewall and has to hand out DHCP and this is why it has to be 2nd in line (correct?).
-
Router/Modem combo- If PF sense is going to hand out DHCP to be able to monitor bandwidth, then I would HAVE TO put my router into bridge mode correct?....
.....OR would I just leave it as is and Disable DHCP on my router/modem and enable DHCP on PFSense? -
If, 2 is correct and I am enabling DHCP on PF Sense and NOT enabling it on my router, can I mirror my routers current settings (such as the IP address and gateway etc, or how should I set that up?) This part has always been tricky and one of the reasons why I am hesitant because I don't fully understand all of it really well yet and I don't want to break everything when I have to work from home.
-
FYI, I DO plan on adding a home lab area off of my existing setup down the road so I can mess w/PFsense and other things w/out bricking my home network. The best thing that describes that is this link I found here (not my post but exactly what I am looking for):
https://community.spiceworks.com/topic/1012232-best-way-to-set-up-home-test-lab-network
This is later down the road.
I can give more details or even current settings of things rn if needed. I just don't want to start something and then come Monday find out something isn't right and be in a mess when I need to work. (Luckily if I get in a super bad jam I could turn on a hotspot to make it but id prefer to not be dead in water during the work week). This is one reason why I don't want to rush this but have a clear understanding of what needs to be done and why.
All, thank you again for your input and feedback I really appreciate it and thank you for being kind.
-
-
-
Short answer is yes. That’s the point of the PFSense router. There are longer answers in which it isn’t 2nd. Defeats the purpose of the firewall though.
-
Again short answer is yes. Longer answer is the double NAT setup. I know nothing about doing double NAT. In terms of the options for the modem usually its transparent bridge. Its only job is to connect to your ISP and pass it along to the PFSense router. Disabling DHCP/DNS might work though. I’m not sure about that.
I think the main issue is not the LAN DHCP/DNS. You turn it off, PFSense provides it. No biggy. I think the main issue is passing the WAN information through the modem to the WAN port on the PFSense box. That has to be working otherwise its double NAT, I think…… Get the WAN information to the WAN port on the PFSense box. Everything after that is easy.
-
I’m not sure what your asking. PFSense will hand out DHCP/DNS information to all clients down stream. If you have reserved IP’s in PFSense or static IP’s in clients its a little different. DHCP still involved unless statically assigned in the client. For those type mine are still in the same subnet, etc., just outside the DHCP range. My DHCP range is 192.168.2.9-50. Static IP’s are either .1-.7 or .51-up.
-
If you want to play with PFSense and not impact your live network, my opinion is pick up another Dell for nothing or next to nothing and use it for playground. Around me, Fort Wayne, Indiana, there’s a handful right now on Facebook Market Place. One for free. The others for less than 100.
I’ve had Harmony Logitech remotes for quite some time. Took a bit to get past the mindset of individual remotes, devices, and think like a Harmony remote and activities. Once I shifted my mind set, programming and using the Harmony was a piece of cake.
I went through the same thing with PFSense. Its NOT a premade router like Asus, TPLink, Netgear, etc. It took me a bit to change my mindset to the PFSense frame of mind. Once I did, boom, was easier than I imagined. At first it was like, “How am I going to figure this out…?” Now I wouldn’t go back to any other router setup.
And I’m just touching the surface of its capability. Some of the guys on this forum setups while complicated beyond my ability to comprehend are at the same time amazing.
-
-
@jsmiddleton4 Thank you for the information. It really helps. I honestly didn't realize/understand PFSense was a router I just thought it was an open-source program that ppl added to the network for XYZ, I knew it was a firewall but I never thought of it as a router because it seems to do SO much more than what a normal router can do (at least it seems like it).
For 3. What I am trying to say is so currently on my ISP router/modem in LAN setup:
It has a Private LAN 192.168.x.x
Subnet mask of 255.255.255.0
LAN DHCP is enabled. The starting DHCP is 192.168.x.10 and ending is .200.
I DO have a handful of static addresses assigned w/in the LAN DHCP, that I would like to keep the same.*If I am being honest, I don't recall why it starts at .10 to .200. I know a friend of mine was helping me setup PFsense in the past and I'm thinking we set it as that so anything above .10 could be used for something else (cameras or other equipment?)...that something else IDK what because this is the part that i don't understand w/the IP addresses.
In WAN setup, Assign WAN IP manually is disabled. WAN IP address is 72.270.x.x/24 (I do not understand this 72.270.x.x IP address.) not even my wireless devices have that.....My impression is that the 72.240.x.x is the public IP that the devices display when they are posting out to the outside world, so you don't see there actual IP address (which I would think would be 192.x.x.x)
WAN DNS Server has some IP addresses in it.
Gateway Function tab, residential gateway function IS enabled (I do know that when I disable this it puts the modem/router into bridge mode and it keeps all my settings as is when I bring it back out of bridge mode)
UPNP enabled
SIP ALG enabled (idk what this is)
Wireless TAB, my ssid etc.DMZ Settings is disabled (dont understand this)
DNS is set to my pihole IP and a 2nd DNS ip.
I don't understand the IP address classes and the subnets etc. I know a little about it but I don't understand it a whole lot and I am also trying to be careful to not leave something setup incorrectly and leave me vulnerable or open to be hacked.
As you mentioned your DHCP range is 192.168.2.9-50, like why is it not 192.168.0.x?
I know that you have to be careful when assigning IP addresses classes and ranges etc. and subnets because you dont want to cause conflict and Ive read up on these things but it still is confusing to me so when I start working on something like this it helps me understand more of how things function.**Can I/ Should I mirror these settings that my LAN tab and WAN tab have?
- Yes I have another PC computer I will setup w/pf sense in the lab, which i also have some OLD Cisco switches and devices that I will plan on setting up in the lab as well, when i get to that point.
The part of all this for me is I dont know what i dont know, so i will set everything up that we've discussed in the post (and I'll share if i had issues or if i was able to get it working etc.), but that being said i can set up all of this and dont know if i left myself open on my network somewhere in the process, that is one reason why I try to share as much info etc.
- Another thing I am thinking as I write this, the time prior when I set my ISP device in bridge mode, to test I just wanted to see what would happen when I plugged in a laptop to the back of the isp device when it was in bridge mode and it came up as a public local connection...I dont know if that is a normal thing or if that isn't supposed to happen?
Was curious because does that mean someone could plug the device into the back of the ISP device in bridge mode and get out to the internet or should those ports on the back of it not work at all once its in bridge mode?
*I dont see anyone plugging anything into that device w/out me knowing but I was just curious when I saw that and i tried to look it up to see why and couldn't really find anything.
Thank you again for your help.
-
Your modem is still doing too much.
All you want it to do is get the WAN IP, IPV4/IPV6 address your ISP gives it and hand that off to the PFSense WAN port. That's all.
I use the .2 address to be different than the defaults.
Your modem needs to be dumb, dumb, dumb. You keep looking for ways to keep it smart and then how do you configure it?
Beyond setting it to pass just the WAN on to the PFSense WAN's port, you don't do anything in it. There's no answer to your "How do I configure it" questions beyond make it a dumb transparent bridge.
"I have a WAN address from the ISP. Now what?"
"Hand it off to the PFSense box."
When setup correctly you may in fact have to boot your modem and then the PFSense box. That's often how both devices know what each is going to do. The modem gets and passes along the WAN ISP IP information. The PFSense box looks for and gets that WAN IP address information being handed to it from the modem for the PFSense WAN interface.
-
About the 3020. Of course the beefing up of components not needed for PFSense.
https://www.youtube.com/watch?v=bRl5N_M9AvA
-
@jsmiddleton4 Thank you for the information/explanations. I will set it up and if I have issues, I am sure I'll add to this post w/specifics.
-
Great. My box is down at the moment. I’m upgrading some of its hardware and pulled it to do so. Back to just my Asus router for now.