Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
21.1 Legacy Series
»
VLAN to VLAN FW allow
« previous
next »
Print
Pages: [
1
]
2
Author
Topic: VLAN to VLAN FW allow (Read 5377 times)
iBROX
Newbie
Posts: 48
Karma: 2
VLAN to VLAN FW allow
«
on:
March 15, 2021, 08:22:34 am »
Hi,
This should be a simple rule but for some reason it aint working, I'll give a rundown of my setup :
VLAN 10 (Secure)
VLAN 15 (Guest)
Pc on vlan 15 with ip 192.168.15.55
I want to be able to pc 192.168.15.55 (3389) from a range of PCs on VLAN 10.
I thought it would've been a simple addition of a FW rule in the GuestNetwork in FW rules allowing this, but it doesn't seem to work, for some reason the traffic is coming from my WAN interface (Internet) instead of the internal network (VLAN 10).
Any ideaS?
Logged
Greelan
Hero Member
Posts: 1028
Karma: 72
Re: VLAN to VLAN FW allow
«
Reply #1 on:
March 15, 2021, 09:21:39 am »
Put your rule(s) on the VLAN10 interface, allowing traffic from the VLAN10 PCs to the VLAN15 PC
Logged
iBROX
Newbie
Posts: 48
Karma: 2
Re: VLAN to VLAN FW allow
«
Reply #2 on:
March 15, 2021, 09:45:02 am »
Thanks, just tried that, still nothing.
I suspect it could be a routing issue as if I do a trace from vlan10 to vlan15 it actually tries to go out of the WAN (internet) interface rather than guest network 192.16.15.1 IP/interface
Logged
Greelan
Hero Member
Posts: 1028
Karma: 72
Re: VLAN to VLAN FW allow
«
Reply #3 on:
March 15, 2021, 09:46:57 am »
Post screenshots of your config and rules
Logged
iBROX
Newbie
Posts: 48
Karma: 2
Re: VLAN to VLAN FW allow
«
Reply #4 on:
March 15, 2021, 09:54:37 am »
Secure Network = vlan10
Guest = VLan 15
Logged
iBROX
Newbie
Posts: 48
Karma: 2
Re: VLAN to VLAN FW allow
«
Reply #5 on:
March 15, 2021, 09:54:58 am »
.
Logged
iBROX
Newbie
Posts: 48
Karma: 2
Re: VLAN to VLAN FW allow
«
Reply #6 on:
March 15, 2021, 09:55:18 am »
.
Logged
Greelan
Hero Member
Posts: 1028
Karma: 72
Re: VLAN to VLAN FW allow
«
Reply #7 on:
March 15, 2021, 09:57:42 am »
As I said in my first post you need to create the rule in your first screenshot on the secure network interface not the guest network interface
Logged
iBROX
Newbie
Posts: 48
Karma: 2
Re: VLAN to VLAN FW allow
«
Reply #8 on:
March 15, 2021, 09:59:47 am »
Sorry had already tried that as well and no go..
So on secure interface (vlan 10)
Direction in or out ?
Logged
Greelan
Hero Member
Posts: 1028
Karma: 72
Re: VLAN to VLAN FW allow
«
Reply #9 on:
March 15, 2021, 10:00:01 am »
You’ve also got an allow any rule on your guest network - which would include it being allowed to access secure network. Presumably not what you want, judging from the names?
Logged
Greelan
Hero Member
Posts: 1028
Karma: 72
Re: VLAN to VLAN FW allow
«
Reply #10 on:
March 15, 2021, 10:00:15 am »
Direction IN
Logged
iBROX
Newbie
Posts: 48
Karma: 2
Re: VLAN to VLAN FW allow
«
Reply #11 on:
March 15, 2021, 10:05:28 am »
THank you! I seem to be reading the interface direction the wrong way and I had to move the rule in the order as well, but this seems to have fixed it.
Logged
Greelan
Hero Member
Posts: 1028
Karma: 72
Re: VLAN to VLAN FW allow
«
Reply #12 on:
March 15, 2021, 10:27:18 am »
A lot of people get confused by that, tho it is explained in the docs. The directions are from the perspective of the interface on the firewall - so into the LAN is coming from the LAN hosts, into the WAN is coming from the internet, out of the LAN is to the LAN hosts etc. Basically your rules should always be IN unless you have a special use case in which event you probably know what you are doing lol
Logged
iBROX
Newbie
Posts: 48
Karma: 2
Re: VLAN to VLAN FW allow
«
Reply #13 on:
March 15, 2021, 10:28:30 am »
Got it, thanks again.
One other thing if I wanted to block say port 80 from IP 192.168.15.55 (vlan 15)
Would that be a rule on the Guestnetwork (vlan 15) outbound ?
Logged
Greelan
Hero Member
Posts: 1028
Karma: 72
Re: VLAN to VLAN FW allow
«
Reply #14 on:
March 15, 2021, 10:30:37 am »
You haven’t quite got it...
Yes rule on Guestnetwork but IN - it is coming from the PC INto the interface on OPNsense
Logged
Print
Pages: [
1
]
2
« previous
next »
OPNsense Forum
»
Archive
»
21.1 Legacy Series
»
VLAN to VLAN FW allow