singh763173 Posted December 17, 2011 Share Posted December 17, 2011 Hi all! I was wondering if anyone had set up PFSense vlans successfully. I followed a guide online but for some reason DHCP never dished out IP addresses and I only got a loopback address. The machine I am using has 4 NICs and I want to setup two vlans. I previously set it up using the LAN port rather than WAN and connected it to my linksys WAG120N Modem/Router. What I want to do is setup two vlans with internet access with dhcp running off the pfsense box and disable dhcp from the wag120n. Its proving harder than I first thought! Quote Link to comment Share on other sites More sharing options...
singh763173 Posted December 17, 2011 Author Share Posted December 17, 2011 just also been looking into ClearOS - would this be easier to implement? Does it allow for vlans? Quote Link to comment Share on other sites More sharing options...
Infiltrator Posted December 18, 2011 Share Posted December 18, 2011 (edited) If you want to create Vlans, I would suggest using a switch that is vlan capable it would be a lot easier to implement. Anyway, I found this Pfsense Vlan tutorial, might want to give it a crack at http://doc.pfsense.org/index.php/Multi-WAN_using_VLANs_with_pfSense Here's Pfsense forum thread. http://forum.pfsense.org/index.php?topic=30917.0 Edited December 18, 2011 by Infiltrator Quote Link to comment Share on other sites More sharing options...
singh763173 Posted December 18, 2011 Author Share Posted December 18, 2011 I have two switches which I was using in the setup to test. But I even bypassed that and connected my laptop straight to the NIC using a standard patch and a xover cable. Still got a loopback add. Reading over those links now, thanks. Have you ever used ClearOS? Quote Link to comment Share on other sites More sharing options...
Infiltrator Posted December 18, 2011 Share Posted December 18, 2011 Have you ever used ClearOS? Not ClearOS, but have used Pfsense and other firewall distros? Quote Link to comment Share on other sites More sharing options...
singh763173 Posted December 18, 2011 Author Share Posted December 18, 2011 Out of all the ones you've used so far, what would you say was the best? I tried to install ClearOS on my machine but had the issue with the screen reso but then VM'd it and was playing it - looks cool but cant see a vLan setup area. Im probably going to go back to PFSense but was a little lazy and couldnt be bothere to burn it to my USB earlier =[ Quote Link to comment Share on other sites More sharing options...
Infiltrator Posted December 19, 2011 Share Posted December 19, 2011 I wouldn't say Untangle was the best, but due to its ease of use and simplicity, it was a firewall distro I liked the most. Quote Link to comment Share on other sites More sharing options...
The Sorrow Posted December 26, 2011 Share Posted December 26, 2011 I use pfSense for my firewall and have yet to see a use for vlans... For a home LAN anyway. I have 4 NICs with a DMZ, Wifi, and LAN. I host a website and only really mess with firewall rules. Quote Link to comment Share on other sites More sharing options...
singh763173 Posted December 26, 2011 Author Share Posted December 26, 2011 I still havent been able to figure it out ahhh. As I host personal sites also - what I want to do is keep my external boxes away from my internal boxes - im sure my personal data/boxes are still accessible but it increases security somewhat Quote Link to comment Share on other sites More sharing options...
The Sorrow Posted December 28, 2011 Share Posted December 28, 2011 (edited) That is the point for your DMZ (Demilitarization Zone) and you can set NAT (Network Address Translation) to forward all your external requests to the DMZ so your LAN isn't on the internet and vulnerable to attack. This walkthrough helped me a lot Link Here's the topology of my setup too... http://forums.hak5.org/index.php?app=core&module=attach§ion=attach&attach_rel_module=post&attach_id=672 Edited December 28, 2011 by The Sorrow Quote Link to comment Share on other sites More sharing options...
digip Posted December 28, 2011 Share Posted December 28, 2011 (edited) Not sure your topology, but each vlan, will need to have a unique vlan ID,vlan trunking on the router and switch ports, and a unique subnet/subnet mask for each segment of the vlan with DHCP for 4 subnets. Depending on the equipment, you need the 802.1q protocol enabled on the router and switches. ex: 192.168.1.0-15 with a mask of 255.255.255.240 for the first subnet and allows up to 14 addresses (192.168.1.1-192.168.1.14). Next subnet would be 192.168.1.16-31 with same mask(allowing nodes on 192.168.1.17-192.168.1.30), etc, etc. you then need to be able to shell out DHCP for the 4 subnets/vlans in the ranges per subnet, and can't overlap. Edited December 28, 2011 by digip Quote Link to comment Share on other sites More sharing options...
singh763173 Posted December 28, 2011 Author Share Posted December 28, 2011 I just want to be able to dish to scopes - 192.168.1.x and 2.x and have them setup on their own individual NICs therefore negating the need for a 802.1q router/switch which are often costly and can be avoided by using multiple standard switches. Cheap and cheerful but it works. I think I might know what the issue is - I think I might not have configured the firewall rules correctly - I will need to rebuild the box (been messing around with other distros) and then re-test. I know for the amount of devices I will be running - running two scopes with the 24 bit subnet is rather excessive but it gives me a little more peace of mind :P Quote Link to comment Share on other sites More sharing options...
digip Posted December 28, 2011 Share Posted December 28, 2011 I just want to be able to dish to scopes - 192.168.1.x and 2.x and have them setup on their own individual NICs therefore negating the need for a 802.1q router/switch which are often costly and can be avoided by using multiple standard switches. Cheap and cheerful but it works. I think I might know what the issue is - I think I might not have configured the firewall rules correctly - I will need to rebuild the box (been messing around with other distros) and then re-test. I know for the amount of devices I will be running - running two scopes with the 24 bit subnet is rather excessive but it gives me a little more peace of mind :P If you are trying 192.168.1.0/24, 192.168.2.0/24, 192.168.3.0/24 and 192.168.4.0/24, that should work without vlans and they shouldn't be able to see each other at all if configured properly. You just need a gateway address unique to each subnet per adapter of the router going out to the switch(es). You mentioned 4 NIC's so each NIC would be need to be configured as the gateway for a different subnet. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.