Single IP ACL

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.
12

Single IP ACL

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.
Single IP ACL
Single IP ACL
2022-07-21 11:20:14
Model: SG2210P  
Hardware Version:
Firmware Version:

Hi community,

 

I am still learning, basic settings are ok, but now I ike to set up some access control.

 

Every device is within same ip group and I now want four specific ip do have access to another ip.

 

What is the right to do?

 

thanks!

  0      
  0      
#1
Options
12 Reply
Re:Single IP ACL
2022-07-22 06:04:50

  @CK1710 To do the ACL we may need more details like what IP you want to have access and what IP to block. The information you provided is not enough.

 

But from my experience there is one thing you need to concern, that tplink siwtch has a default BLOCK ALL ACL entry.

 

That means on your configurations, if you did not set up a Permit rule, then no data can go through.

 

TplinkMAC ACL(I think what you want is IP ACL, but basically they are the same steps, just one use IP and one use device MAC).

  0  
  0  
#2
Options
Re:Single IP ACL
2022-07-22 07:14:16

  @Somnus 

What I explicitly like to do is to provide access to my WLAN speaker with fixed IP 192.168.0.23 only to:

- PC with fixed IP 192.168.0.50

- Mobile Phone with fixed IP 192.168.0.53

- Tablet with fixed IP 192.168.0.54

All other devices PC/ Phones/ TV/ ... in the same IP range 192.168.0.x should not have access to the speaker.

 

What I tried so far:

Two IP groups: one named "Speaker" with the speaker IP 192.168.0.23/24 and the second group "Devices with Access" with the three IPs from above in each row the IP with /24 behind.

Two Switch ACL: Fist one denying "IPgroup_any" access to group "Speaker", second permitting access of "Devices with Access" group to "Speaker" group


Unfortunately after applying I had to reset my whole network since any communication was blocked. With just having second ACL in place, still all devices do have access to the speaker.

 

My network setup:

FritzBox - SG2008 - SG2210P - 3x EAP245

PCs are connected to the switches

Mobile phones, tablet and the speaker is connected to one of the EAPs

  0  
  0  
#3
Options
Re:Single IP ACL
2022-07-25 04:52:36

  @CK1710 The ACL entries will be applied one by one. Your first rule just blocked all access to the speaker so the 2nd one won't work; and since there is a default Deny ALL rule, your other network communication also be blocked.

 

You need to switch the 1st and 2nd rule, and add a 3rd one that all any IP to any IP.

  0  
  0  
#4
Options
Re:Single IP ACL
2022-07-25 07:17:26

  @Somnus 

Ah ok, so the logic is proceeded from top to bottom and a item is ignored if IP already included upfront (except IPgroup_any), right?

 

So, if I like to have an additional rule for one of my mobile phones this will not work?

 

For example following ACL

1. Permit group1 to group "speaker"

2. Permit group2 (includes one device from group1) to group "printer".

3. Deny IPgroup_any to group "speaker"

4. Deny IPgroup_any to group "printer"

5. Permit IPgroup_any to IPgroup_any

  0  
  0  
#5
Options
Re:Single IP ACL
2022-07-25 07:21:15

  @CK1710 That's right.

 

If you want to add your mobile phone, just modify the rule 1 and 2 and add mobile phone's IP to the source group.

  0  
  0  
#6
Options
Re:Single IP ACL
2022-07-25 07:37:56 - last edited 2022-07-25 07:38:53

  @Somnus 

Ok, it will work with second group. Hm, seems I still have some misunderstandings of that ACL logic .

 

My understanding now, when doing ACLs:

first define permits, then define denies and finally permit IPgroup_any to IPgroup_any to prevent lock out if none of the prior rules is valid.

Would appreciate if you can confirm or correct if I am wrong.

  0  
  0  
#7
Options
Re:Single IP ACL
2022-07-25 08:24:36

  @CK1710 You understanding is correct.

  0  
  0  
#8
Options
Re:Single IP ACL
2022-07-25 08:54:07

  @Somnus 

Many thanks yes

  0  
  0  
#9
Options
Re:Single IP ACL
2022-07-25 14:38:51 - last edited 2022-07-25 14:51:02

  @Somnus 

Sorry to bother you again, but I once more was successfully locking me out .

Just wanted to check with two devices if my understanding is correct and if

it works.

 

Following steps I followed.

1. Setup group including device with access:


 

2. Set up group with device where access is controlled:

 

3. Set up three rules in ACL:


 

Did I something wrong? (Note: above screen shows ACL disabled, when it happened they have all been enabled )

 

  0  
  0  
#10
Options
Re:Single IP ACL
2022-07-26 04:01:17

  @CK1710 I saw your subnet are all /24, that means a whole subnet, but not the IP you put in.

For example if you want to allow 192.168.178.110 to access, you should put in 192.168.178.110/32

  0  
  0  
#11
Options