Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
20.7 Legacy Series
»
Block subnets
« previous
next »
Print
Pages: [
1
]
Author
Topic: Block subnets (Read 1857 times)
dcol
Hero Member
Posts: 635
Karma: 51
Block subnets
«
on:
September 29, 2020, 08:14:29 pm »
I have a basic default setup with two LAN interfaces and one WAN gateway. Everything works fine, except LAN1 can ping and get to shares on LAN2 and vice versa. I do not want the LAN's to have any connection between them.
I have NAT outbound set from each subnet going to the same NAT address, which is the WAN IP address. I assume this is where the connection is since no LAN block rule works.
How do I block the subnets?
«
Last Edit: September 29, 2020, 10:39:08 pm by dcol
»
Logged
mikeb78
Newbie
Posts: 5
Karma: 0
Re: Block subnets
«
Reply #1 on:
October 02, 2020, 02:20:20 am »
This is interesting, I have the opposite. Lan1 routes to wan and works as you would expect. The opt1 interface can route route but does not have any ability to see lan1. The firewall is set to default on both networks lan1 and opt1, only difference opt1 base a gateway definition to wan. Not sure how this happened since I did a fresh install 20.7.1 and upgraded to 20.7.3 before I started working configurations.
Logged
Pocket_Sevens
Jr. Member
Posts: 73
Karma: 2
Re: Block subnets
«
Reply #2 on:
October 02, 2020, 04:48:38 am »
I set up a firewall rule for the LAN2 connection so it can talk to anything BUT the LAN1 connection. Screen shot enclosed.
I assume you can also create a firewall rule on LAN1 so it can't talk to LAN2.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
20.7 Legacy Series
»
Block subnets