On 06/06/2023 16:49, Paul Pace wrote:
> On 6/5/23 3:15 PM, Nick Bouliane wrote:
>> Hi,
>>
>> in relayd.conf I'm trying to do :
>>
>> pass from 192.168.1.1 path "/something.html"
>>
>> If I individually specify the "from" or the "path", it works
>> but when I combine both, it doesn't work.
>
> Nowadays, when I come upon this I just use tags and move on.
>
> Something like this might work:
>
> match path "/something.html" tag something
> pass from 192.168.1.1 tagged something
>
>>
>> Am I missing something or if it's just not possible ?
>> Or is there another way to express this another way ?
>>
>> thank you,
>> Nick

Although this is probably a more elegant solution, relayd also supports 
filtering.

I'm doing this in my http protocol {}

pass quick from _admin_ip_address
block quick path "/admin"
block quick path "/admin.html"
block quick path "/admin/"

G

Reply via email to