Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
Block IP address from local LAN network
« previous
next »
Print
Pages: [
1
]
Author
Topic: Block IP address from local LAN network (Read 1338 times)
HatalaTitla48
Newbie
Posts: 5
Karma: 0
Block IP address from local LAN network
«
on:
September 20, 2021, 06:40:46 pm »
Hello, Im unable to figure out howto simple block a single ip address from local lan. I have ip address 192.168.1.50 from local lan 192.168.1.0/24. On opnsense it represented by LAN interface. I just want to block this IP from accessing internet. With linux iptables it is simple "iptables -A FORWARD -i LANiface -s 192.168.1.50 -o WANiface -j REJECT" and thats all. How do I do this on opnsense? Thx.
Logged
hushcoden
Hero Member
Posts: 550
Karma: 23
Re: Block IP address from local LAN network
«
Reply #1 on:
September 20, 2021, 06:52:08 pm »
Create a firewall rule in the interface, i.e. this is how I block the PS4
Logged
HatalaTitla48
Newbie
Posts: 5
Karma: 0
Re: Block IP address from local LAN network
«
Reply #2 on:
September 20, 2021, 07:34:35 pm »
Hm, I has same config just with destination as WAN net and rule wasn work.
Anyway, thx for tip, it works with "any" as destinantion.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
Block IP address from local LAN network