Hi all, this is my question:
I have two interfaces: one with the internet (eth1-wan) and one with the local network (eth2-lan) without bridge.
On the local network (eth2-lan) I have 50 hosts that do not need to access the internet. only one of the hosts must be able to access the internet.
What kind of approach should I use?
In the forward chain, remove the default rule add action=drop chain=forward comment=
“defconf: drop all from WAN not DSTNATed” connection-nat-state=!dstnat
connection-state=new in-interface-list=WAN
Replace with
add chain=forward action=accept comment=“host to internet” in-interface-list=LAN src-address=singlehost-IP out-interface-list=WAN
add chain=forward action=accept comment=“port forwarding” connection-nat-state=dstnat disabled=yes { enable if required, or remove }
add chain=forward action=drop comment=“Drop all else”
If you decide to add more hosts that are allowed, simply turn src-address=singlehost-IP to src-address-list=internet-traffic /ip firewall address-list
add address=host1-allowed-IP list=internet-traffic
add address=host2-allowed-IP list=internet traffic
…
add address=hostN-allowed-IP list=internet traffic
I’ll provide some more information.
I have no default configurations or rules, at the moment the RB only has the two interfaces, both with static IP, without bridge between them.
from the terminal I regularly ping the internet from the wan interface, and the local hosts on the lan interface.
my goal now is to allow only one host to reach the internet.
Soon I’ll try the solution recommended by anav, then I’ll update
we are on a company intranet, it is not possible to access from outside the company network.
however, as soon as the configuration is executed and tested, I will create the default firewalling rules allowing only known hosts to connect to RB
So the device does not get a public IP but a private IP from an upstream company router?
If so, correct one should still ensure access to:
a. the router for config purposes is limited to admin IT staff
b. access to any subnets (double nat) are limited to those requiring access etc…