VLANs with Pfsense and DD-wrt

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Author Message
tipjohn
DD-WRT User


Joined: 17 Dec 2018
Posts: 65

PostPosted: Wed Jan 22, 2020 12:14    Post subject: VLANs with Pfsense and DD-wrt Reply with quote
I am going to set up two VLANs in my home network.
I have a Pfsense machine as a firewall, and I connected a DD-wrt router (a tp-link tl- Wr841N) to it, which in turn supports VLANs.
The first step would be to set up and name the two VLANs in my Pfsense, which seems to be kind of a straightforward process.
Unfortunately, I am still struggling to make sense of how VLANs work in a DD-wrt device.
I hope that someone can help me figure it out and to set up VLANS for my little home network.
This is my project:
1)In one of dd-wrt router ports it will be connected another switch/AP (not a dd-wrt device) to enable my smart tv and my guests to get access to internet from my dining room.
2) on other 2 ports will be wire connected two PCs of mine, which are placed in my room
3) on my DD-wrt, I want to set the Wireless Physical Interface as my private wireless network, and a virtual network for guests, just in case.

So, I'ld like to put the main Wireless Physical Interface and my PCs (point 2 above) in a, say, VLAN5 and the rest (point 1 above + the virtual network) in VLAN10.
Could you please help me?
Thanks
Sponsor
devopsmyth
DD-WRT Novice


Joined: 18 Jun 2019
Posts: 18
Location: Maryland - US

PostPosted: Fri Jan 24, 2020 21:57    Post subject: Re: VLANs with Pfsense and DD-wrt Reply with quote
tipjohn wrote:
I am going to set up two VLANs in my home network.
I have a Pfsense machine as a firewall, and I connected a DD-wrt router (a tp-link tl- Wr841N) to it, which in turn supports VLANs.
The first step would be to set up and name the two VLANs in my Pfsense, which seems to be kind of a straightforward process.
Unfortunately, I am still struggling to make sense of how VLANs work in a DD-wrt device.
I hope that someone can help me figure it out and to set up VLANS for my little home network.
This is my project:
1)In one of dd-wrt router ports it will be connected another switch/AP (not a dd-wrt device) to enable my smart tv and my guests to get access to internet from my dining room.
2) on other 2 ports will be wire connected two PCs of mine, which are placed in my room
3) on my DD-wrt, I want to set the Wireless Physical Interface as my private wireless network, and a virtual network for guests, just in case.

So, I'ld like to put the main Wireless Physical Interface and my PCs (point 2 above) in a, say, VLAN5 and the rest (point 1 above + the virtual network) in VLAN10.
Could you please help me?
Thanks


I just accomplished this very thing using an OpnSense FW appliance and DD-WRT. It was quite the ordeal but I've finally got it working and I know more about DD-WRT VLANs than I ever thought I wanted to.

What have you done so far?

Can you post screenshots [800x600 pixels]?

Run this command from the CLI and post the output...
Code:
nvram show | grep 'port.*vlans\|vlan.*.port\|vlan.*hwname' | sort


What version of DD-WRT are you running?

Check my post here:
https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=1189163#1189163

and see if you understand what I did to configure the NVRAM? If you don't and you can't make it work, I'll write up a walkthrough.
tipjohn
DD-WRT User


Joined: 17 Dec 2018
Posts: 65

PostPosted: Sat Jan 25, 2020 12:24    Post subject: Reply with quote
@devopsmyth

Ok, thanks

I need to fix a problem with my dd-wrt device first.
I'll be right back here at this thread ASAP.
Please stay tuned.
devopsmyth
DD-WRT Novice


Joined: 18 Jun 2019
Posts: 18
Location: Maryland - US

PostPosted: Mon Jan 27, 2020 15:34    Post subject: Reply with quote
tipjohn wrote:
@devopsmyth

Ok, thanks

I need to fix a problem with my dd-wrt device first.
I'll be right back here at this thread ASAP.
Please stay tuned.


Question How's it coming along?

Here's a great resource to follow along with, only a couple of minor differences between your setup and this guy's here: https://coertvonk.com/sw/networking/dd-wrt-heading-two-networks-asus-rt-ac68u-11717

For your setup you're going to want more than one VLAN over a physical link to your pfSense firewall, and you won't need the DHCP or IPTables portions of this guy's config since pfSense can/should be handling that for you.
tipjohn
DD-WRT User


Joined: 17 Dec 2018
Posts: 65

PostPosted: Mon Jan 27, 2020 22:40    Post subject: Reply with quote
devopsmyth wrote:
tipjohn wrote:
@devopsmyth

Ok, thanks

I need to fix a problem with my dd-wrt device first.
I'll be right back here at this thread ASAP.
Please stay tuned.


Question How's it coming along?

Here's a great resource to follow along with, only a couple of minor differences between your setup and this guy's here: https://coertvonk.com/sw/networking/dd-wrt-heading-two-networks-asus-rt-ac68u-11717

For your setup you're going to want more than one VLAN over a physical link to your pfSense firewall, and you won't need the DHCP or IPTables portions of this guy's config since pfSense can/should be handling that for you.


I'll read it through with care. Thanks
tipjohn
DD-WRT User


Joined: 17 Dec 2018
Posts: 65

PostPosted: Tue Jan 28, 2020 10:42    Post subject: Re: VLANs with Pfsense and DD-wrt Reply with quote
devopsmyth wrote:

What have you done so far?

Can you post screenshots [800x600 pixels]?

Run this command from the CLI and post the output...
Code:
nvram show | grep 'port.*vlans\|vlan.*.port\|vlan.*hwname' | sort


What version of DD-WRT are you running?


- I decided to start from scratch

- Which screenshots do you need in particular?

- ok, I run the command:
nvram show | grep 'port.*vlans\|vlan.*.port\|vlan.*hwname' | sort

got this:

Code:

size: 18728 bytes (46808 left)
ping_ip=nvram show | grep 'port.*vlans|vlan.*.port|vlan.*hwname' | sort
port0vlans=2
port1vlans=1
port2vlans=1
port3vlans=1
port4vlans=1
port5vlans=1 2 16
vlan0hwname=et0
vlan0ports=1 2 3 4 5*
vlan1hwname=et0
vlan1ports=0 5



Quote:

and see if you understand what I did to configure the NVRAM? If you don't and you can't make it work, I'll write up a walkthrough.


That would be very much appreciated. Thanks
devopsmyth
DD-WRT Novice


Joined: 18 Jun 2019
Posts: 18
Location: Maryland - US

PostPosted: Fri Feb 14, 2020 2:15    Post subject: Re: VLANs with Pfsense and DD-wrt Reply with quote
tipjohn wrote:
devopsmyth wrote:

What have you done so far?

Can you post screenshots [800x600 pixels]?

Run this command from the CLI and post the output...
Code:
nvram show | grep 'port.*vlans\|vlan.*.port\|vlan.*hwname' | sort


What version of DD-WRT are you running?


- I decided to start from scratch

- Which screenshots do you need in particular?

- ok, I run the command:
nvram show | grep 'port.*vlans\|vlan.*.port\|vlan.*hwname' | sort

got this:

Code:

size: 18728 bytes (46808 left)
ping_ip=nvram show | grep 'port.*vlans|vlan.*.port|vlan.*hwname' | sort
port0vlans=2
port1vlans=1
port2vlans=1
port3vlans=1
port4vlans=1
port5vlans=1 2 16
vlan0hwname=et0
vlan0ports=1 2 3 4 5*
vlan1hwname=et0
vlan1ports=0 5



Quote:

and see if you understand what I did to configure the NVRAM? If you don't and you can't make it work, I'll write up a walkthrough.


That would be very much appreciated. Thanks


So sorry for the delay. I've been away and haven't checked the forum in a couple weeks.

Have you made any progress since your last post? Just trying to see where I need to start with instructions. I'll make sure to check this site regularly for your response.

_________________
----------------------------------------
| "we see things not as they are, but |
| as we are." -Talmud | ----------------------------------------

devopsmyth
Per Yngve Berg
DD-WRT Guru


Joined: 13 Aug 2013
Posts: 6870
Location: Romerike, Norway

PostPosted: Fri Feb 14, 2020 8:07    Post subject: Reply with quote
VLAN in dd-wrt is chip-set dependant. You should post in the chip-set specific forum i.e. Atheros, Broadcom etc and not here in the General Forum.
devopsmyth
DD-WRT Novice


Joined: 18 Jun 2019
Posts: 18
Location: Maryland - US

PostPosted: Sun Feb 16, 2020 20:17    Post subject: Reply with quote
Per Yngve Berg wrote:
VLAN in dd-wrt is chip-set dependant. You should post in the chip-set specific forum i.e. Atheros, Broadcom etc and not here in the General Forum.


Will do, if the OP ever responds. Don't suppose you know the chipset he's working with? With Wikidevi being down, I'm not sure where to easily find that info.

_________________
----------------------------------------
| "we see things not as they are, but |
| as we are." -Talmud | ----------------------------------------

devopsmyth
Per Yngve Berg
DD-WRT Guru


Joined: 13 Aug 2013
Posts: 6870
Location: Romerike, Norway

PostPosted: Sun Feb 16, 2020 20:54    Post subject: Reply with quote
Most of them are Atheros, but V13 and V14 is Mediatek.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum