Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
21.1 Legacy Series
»
New to OPNSense - VLAN / Gateway / Network question
« previous
next »
Print
Pages: [
1
]
Author
Topic: New to OPNSense - VLAN / Gateway / Network question (Read 5225 times)
Shihatsu
Newbie
Posts: 25
Karma: 0
New to OPNSense - VLAN / Gateway / Network question
«
on:
May 25, 2021, 04:02:53 pm »
Heya, I am quite new to OPNSense. I will use the Firewall as router in my network. It will take the control, while I use a Mikrotik Switch as my backbone. For added security in my Homelab I intend to use VLANs, and currently I am doing the first steps.
Basic VLAN-Setup on the Mikrotik is done, and I have my VLANs added on the OPNSense. Here comes my problem: I have added the VLAN, assigned it to the LAN-port, set up the IP-range and acivated DHCP on the VLAN. I then tagged a port on the Mikrotik accordingly and connected a test client to this port. The client then performs a DHCP discovery succesfully and gets an IP within the correct range of the newly created VLAN. But here is the thing: The client cannot get any network connection. I f I ping the .1 address of the segment from the client I get timeouts, if I nmap the network it is only answered by the client itself. If I ping the same addresses from the default VLAN or the firewall itself I get positive responses. Whats the issue here?
Logged
Greelan
Hero Member
Posts: 1028
Karma: 72
Re: New to OPNSense - VLAN / Gateway / Network question
«
Reply #1 on:
May 25, 2021, 10:19:56 pm »
You need to create firewall rules on the VLAN interface on OPNsense to allow traffic
Logged
Shihatsu
Newbie
Posts: 25
Karma: 0
Re: New to OPNSense - VLAN / Gateway / Network question
«
Reply #2 on:
May 25, 2021, 10:53:11 pm »
Quote from: Greelan on May 25, 2021, 10:19:56 pm
You need to create firewall rules on the VLAN interface on OPNsense to allow traffic
A, thanks for pointing it out, I forgot to mention that I copied the two "allow all" rules from the LAN interface onto the VLAN interface, I just changed Interface to the VLAN Interface and soruce to the VLAN net. I did this both for IP4 and IP6.
Logged
Greelan
Hero Member
Posts: 1028
Karma: 72
Re: New to OPNSense - VLAN / Gateway / Network question
«
Reply #3 on:
May 25, 2021, 11:48:44 pm »
Sounds like a switch issue then. Have you also tagged the VLAN on the switch port that is connected to OPNsense?
Logged
Shihatsu
Newbie
Posts: 25
Karma: 0
Re: New to OPNSense - VLAN / Gateway / Network question
«
Reply #4 on:
May 26, 2021, 09:04:48 am »
Well, I tagged every port (that is currently in use) for the respective VLAN ID to make it easier at the moment, so - yes it is tagged. I also believe that this tagging is working, because I can ping the respective 10.2.0.1 "gateway" IP of the VLAN from my default VLAN (1) which is 10.10.0.x. - the diagnosis part is that whats difficult here - how to know what is wrong and whats not. Any help much appreciated.
Logged
Greelan
Hero Member
Posts: 1028
Karma: 72
Re: New to OPNSense - VLAN / Gateway / Network question
«
Reply #5 on:
May 26, 2021, 11:45:10 am »
Not sure that ping proves that, but maybe show your firewall rules
Logged
Shihatsu
Newbie
Posts: 25
Karma: 0
Re: New to OPNSense - VLAN / Gateway / Network question
«
Reply #6 on:
May 26, 2021, 11:59:15 am »
Here are my rules:
(I have two rules, this is just the IPV4 rule, the v6 is the same, but different tcp/ip version ofc
«
Last Edit: May 26, 2021, 12:01:21 pm by Shihatsu
»
Logged
Greelan
Hero Member
Posts: 1028
Karma: 72
Re: New to OPNSense - VLAN / Gateway / Network question
«
Reply #7 on:
May 26, 2021, 12:13:54 pm »
Based on all you have said, I can’t find anything wrong on OPNsense, sorry
Logged
chr
Newbie
Posts: 11
Karma: 0
Re: New to OPNSense - VLAN / Gateway / Network question
«
Reply #8 on:
May 26, 2021, 01:48:51 pm »
If it is an option, you can try and use a separate dedicated interface for VLAN.
Sent from my iPhone using Tapatalk
Logged
FullyBorked
Sr. Member
Posts: 343
Karma: 24
Re: New to OPNSense - VLAN / Gateway / Network question
«
Reply #9 on:
May 27, 2021, 12:47:06 am »
This sounds goofy but did you click apply settings in the upper right after added your firewall rules? I refuse to admit how many times this has gotten me.
Logged
FullyBorked
Sr. Member
Posts: 343
Karma: 24
Re: New to OPNSense - VLAN / Gateway / Network question
«
Reply #10 on:
May 27, 2021, 12:50:50 am »
I don't think this is the case since you were able to pull DHCP but does that switch need to have trunking enabled on the uplink port that connects to your firewall?
Have you verified that the client has the correct default gateway and proper routes in place?
Logged
Shihatsu
Newbie
Posts: 25
Karma: 0
Re: New to OPNSense - VLAN / Gateway / Network question
«
Reply #11 on:
June 06, 2021, 05:15:40 pm »
Sorry for my late reply, I just dumped the goram Switch and jumped the rope over to a decent one (a Mikrotik CRS 328, which suits my needs far better and is easier to handle. Thank you nevertheless for your help!
In the meantime I have killed my OPNsense and replaced it with... well, two OPNsenses in HA mode - I just love this capability of the OPNsense. But with new possibilities there are new questions: How do I do VLANs in an HA scenario? The documentation about this is sparse, to say the least. Sparse in non existent or nearly impossible to find. From what I have found I learned to basic things:
VLANs aren't synchronized from the Master to the Backup and I need some kind of VIPs. Is there any documentation or howto about it? I'd rather avoid "trial and error"...
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
21.1 Legacy Series
»
New to OPNSense - VLAN / Gateway / Network question