Skip to content

Network objects, country lists & time ranges

Rules in OkYouIn never carry raw IP addresses, country codes or times. They reference named objects instead: a network object Office LAN, a country list EU and EEA, a time range Office hours. Change the object once and every rule that uses it follows; ask the object where it is used and it tells you.

All three live under Infrastructure ▸ Objects:

MenuObjectUsed by
Network Objectshosts, subnets and address rangesthe Source condition of global and application rules, an application’s RADIUS sources, the brute-force allowlist
Countriescountry liststhe Country condition of global and application rules
Time Rangesweekly schedulesthe When condition of global and application rules

Every editor that needs one of these objects (the rule editors, the brute-force settings) can also create a new one in a side drawer, so you do not have to leave the rule you are writing.

A network object is a named address, of one of three types:

TypeExampleNotes
Host192.0.2.10 or 2001:db8::10one IPv4 or IPv6 address
Subnet192.0.2.0/24 or 2001:db8::/64CIDR notation
Range192.0.2.10 – 192.0.2.50first and last address; both ends must be the same IP version

IPv4 and IPv6 are both supported. Changing the type of an existing object replaces its address.

Network objects play two different roles, and it helps to keep them apart:

  • In a rule’s Source condition they describe where the end user is — the VPN client’s address from Calling-Station-Id, the browser’s address, the RDP client. See which address is the end user’s.
  • In a RADIUS application’s sources they describe where the device (the NAS) talks from. That is how OkYouIn tells applications apart, not a statement about users. See Applications.

A country list is a named set of countries for the Country condition. Open Infrastructure ▸ Objects ▸ Countries and click New country list.

  1. Give it a Name (for example EU and EEA, DACH, Sanctioned countries) and an optional description.

  2. Under Countries, search by name or ISO code and tick the countries. Country names appear in your browser’s language.

  3. Decide about the two special entries at the top of the list:

    • Local network — private and reserved addresses: requests from RFC 1918 and other private or reserved addresses (including carrier-grade NAT 100.64.0.0/10). An office user reaching an on-prem OkYouIn directly arrives as Local network.
    • Unknown — no GeoIP data: the address could not be located — no database, no entry for it, or no end-user address at all.
  4. Create country list.

A Country condition matches only what its lists contain. Unknown and Local network are never matched implicitly:

  • An Allow rule for DACH without Local network will not let in office users whose address is private. Add Local network if it should.
  • A Deny rule for Sanctioned countries will not catch a request whose country is Unknown. The rule editor warns you about this; add Unknown to the list if those requests should be denied too.

Countries are derived from the IP address by GeoIP — a signal, not proof. VPNs and proxies change it. How the databases are obtained and kept current is on the GeoIP page.

A time range is a named weekly schedule for the When condition. Open Infrastructure ▸ Objects ▸ Time Ranges and click New time range.

  • A range holds 1 to 20 time windows. Each window is a set of days (shortcuts Every day, Weekdays, Weekends) and a start and end time in HH:MM.
  • The end may be 24:00 (Until end of day), so Weekends 00:00–24:00 covers the whole weekend.
  • A window whose end is earlier than its start is Overnight: it runs from the start until the end on the next day. Mon 22:00–06:00 matches Tuesday 02:00 — the early-morning part belongs to the day the window starts.
  • Start and end must differ.
  • Times are evaluated in the system time zone of the OkYouIn server.

A rule takes one time range. To express “office hours or the weekend maintenance window”, put both windows into one range.

Every object shows where it is used: the list pages have a Used by column, and an object’s page lists the rules (global policy rules and application rules, with their application), application sources and settings that reference it.

The Delete button is never disabled, but a delete is refused while something still references the object, and the refusal names what is holding it:

ObjectDelete refused while referenced by
Network objectglobal rules, application rules, a RADIUS application’s sources, the brute-force allowlist
Country listglobal rules, application rules
Time rangeglobal rules, application rules

Nothing is ever removed from a rule behind your back — a rule that lost its last network object would otherwise silently become Any source. Edit the rules first, then delete the object. References from parts of the console you are not allowed to see are shown without their name or link.

Editing an object is not blocked, but a change that would make an application’s RADIUS sources ambiguous, or turn a referenced object into one rules refuse, is rejected with the reason.

Each object type has its own RBAC section — Network objects, Country lists, Time ranges — with View, Create, Edit and Delete actions. Picking an object inside a rule needs the View permission of its section. See Console roles & RBAC.