Hello, I have a small problem, would like to be able to deny the access to all type of user wishes to enter to enter at 172.0.0.0 rank, but that could access to all the other resources.
I have tried to form the guest profile, but I do not see it very clear.
In my case, hotspot I need to discriminate between corporative users and normal user (invited or host), the invited user must be able to less have total access to everything to the 172.0.0.0 rank so that no longer can have access to cororativos resources.
That is to say, the normal one to user can go less to all sites to 172.0.0.0 (or any name that solves that same one).
If you want to drop 172.0.0.0/8 network for all users or for the specific users,
use simple rule,
‘ip firewall filter add chain=forward dst-address=172.0.0.0/8 action=drop’.
Specify src-address, if you need to block access for the specific users.
As well self created chain does accept any traffic unless you have configured jump on main chains input, forward, output.
Forward is router’s users default chain.
Add one rule to chain=forward,
‘ip firewall filter add action=jump jump-target=hotspot chain=forward’,
set for ‘guest’ user profile,
‘ip hotspot user profile set profile_name incoming-filter=1 outgoing-filter=1’, that will redirect current profile traffoc to chain=1.
Add rule to chain 1 to drop traffic with specific dst-address,
‘ip firewall filter add chain=1 dst-address=172.0.0.0/8 action=drop’.
If ‘geust’ try to access at 172.0.0.0 /8 then, he must be returned at advertise URL that must to say ‘You Don’t have permission’ or somethig like this.
Yes, it can be done by NAT, e.g. to redirect user with address=1.1.1.1 to web-page with address=2.2.2.2,
‘ip firewall nat add action=dstnat dst-address=1.1.1.1 action=dst-nat to-addresses=2.2.2.2’
The called user ‘guest’ is that one that will not be able to accede to 172.0.0.0 /8 and that when it tries to accede to that rank will be redirected to 192.168.1.1