Jexus Series: IP and Domain Restrictions
This post talks about Jexus IP and Domain Restrictions.
Jexus does not yet support dynamic IP restriction as IIS 7+ do, but its IP address restriction support is feature complete.
For more information on Jexus/IIS comparison you can go to https://github.com/jexuswebserver/jexus-contrib/blob/master/comparison.en.md
To configure IIS IP and Domain Restrictions, you need to follow this article.
It is very easy to translate the steps to Jexus.
Scenario 1
When we specify <ipSecurity allowUnlisted="true" />
on IIS and add deny entries
- 192.168.100.1
- 169.254.0.0 with subnet mask 255.255.0.0
Then in Jexus configuration we should use
1
denyfrom=192.168.100.1,169.254.0.0/16
Note that Jexus supports several ways of IP range, such as
- 169.254.0.0–169.254.255.255 (IP start to end)
- 169.254.0.0/16 (with prefix size)
- 169.254.. (with wildcard)
Scenario 2
When we specify <ipSecurity allowUnlisted="false" />
on IIS and add allow entries
- 192.168.100.1
- 169.254.0.0 with subnet mask 255.255.0.0
Then in Jexus configuration we should use
1
allowfrom=192.168.100.1,169.254.0.0/16
Scenario 3
If in Jexus settings we have
1
2
allowfrom=192.168.100.1,169.254.0.0/16
denyfrom=192.168.100.1
Then the effective IP range becomes 169.254.0.0/16 only.