How i can enable access list using only mac address to ssh login
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎07-17-2017 03:07 AM
Hello
i would like to enable access list using mac address of certain PC
i am asking because i used the same code of access list using only ip address
i used this code
entry AllowManagementIP { if match any { ethernet-source-address F8:A7:BC:E0:D1:AE; } then { permit; } } and it didnt work still eny pc can login using ssh i did refresh policy cammand still the same problem
i would like to enable access list using mac address of certain PC
i am asking because i used the same code of access list using only ip address
i used this code
entry AllowManagementIP { if match any { ethernet-source-address F8:A7:BC:E0:D1:AE; } then { permit; } } and it didnt work still eny pc can login using ssh i did refresh policy cammand still the same problem
21 REPLIES 21
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎07-17-2017 05:21 AM
entry AllowManagementIP { if match any { ethernet-source-address F8:A7:BC:E0:D1:AE; } then { permit; } else {
deny all;
} }
Error again: attribiute deny should not have any arguments , "all " is invalid
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎07-17-2017 05:17 AM
Myabe just a "deny;" would be enough. Didn't play with policy files for quite some time. 😉
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎07-17-2017 05:16 AM
OK. Try to add a deny all at the bottom of the policy
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎07-17-2017 05:03 AM
entry AllowManagementIP { if match any { ethernet-source-address F8:A7:BC:E0:D1:AE; } then { permit; } else {
deny;
} }
it gives me Error
error policy has else clause , which can be used only in clear flow rules
deny;
} }
it gives me Error
error policy has else clause , which can be used only in clear flow rules
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎07-17-2017 04:34 AM
you could just try to use
else {
deny;
}
after your then expression
else {
deny;
}
after your then expression
