Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - thejasonator

#1
Hi there,

I want to test if the Source-IP is within a certain list of IPs and then set a header.

For example, I have a Firewall Alias called Trusted_IPs, which is a list of about 10 trusted IP addresses that is reloaded from an URL table once a day.

If the frontend receives a request from one of these IPs I want it to do http-request header set X-Trusted-IP Trusted

So far, I have only been able to get the Condition "Source IP matches specified IP" to work with a single IP address.

I found this exact issue being discussed in OPNsense 17 forum at https://forum.opnsense.org/index.php?topic=6316.msg27255#msg27255 and it was mooted to be available from 18.1, but I can't find a way of doing it.

Thanks for your help,
Jason