Guided Edit changes a scenario with a form instead of text: its name, its proxy rules, groups of destination servers, and its email. It writes the scenario file for you, has the proxy service check it, and keeps the previous version. Nothing is saved until you click Save.
Select an inactive scenario in the main window and click GUIDED EDIT. The pages are on the left, the help for the open page on the right. To change the active scenario, edit a copy (see Changing the active scenario).
1. General

| Field | What it is for |
|---|---|
| Scenario name | Shown in the scenario list, the title bar, the status page and emails ({{NAME}}). It must be unique. |
| Description | A short note for other administrators, also on the status page and in emails ({{DESCRIPTION}}). |
| Send email notifications when this scenario starts or stops | Emails the recipients on page 4 when the scenario is activated, when the service starts or stops, and after a server restart. |
2. Proxy Rules

Each row is one rule: the port PacsSwitch listens on and where its traffic goes. Use Add, Edit, Copy and Delete; Move Up and Move Down set the order in the file.
The Edit Proxy Rule window

| Field | What it does |
|---|---|
| Rule name | A name for the rule, for example "Radiology Dicom Store". It appears on the status page and in the monitoring windows. |
| Listen on IP | All interfaces opens the port on every address of this server. Choose one of the server's addresses to accept the traffic only there, for example to keep DICOM on one network or when another program uses the same port on a different address. Other IP address... uses the address typed in Other IP. |
| Listen port | The port the modalities send to, for example 104 or 12001. |
| Enable TCP keepalive | Lets Windows notice and close connections whose other end has gone away (an unplugged cable, a crashed device). Recommended. |
| Destination type | IP address or Hostname, each with a port, or an Upstream group from page 3 for failover or load balancing. DICOM and HL7 are plain TCP: never type http://. |
| Test destination | Tries to connect to the destination now and says whether it answers. |
Advanced settings
| Setting | What it does |
|---|---|
| proxy_timeout | Closes a connection on both sides after this much time without any traffic, for example 30s. Empty uses the server-wide setting in Settings > nginx. |
| proxy_connect_timeout | Gives up when the destination does not accept the connection within this time, for example 5s. |
| Allowed / blocked IPs | One address or range per line (10.1.2.3 or 10.1.0.0/16). Plain entries are the only clients allowed; everyone else is refused. A minus sign in front (-10.20.30.40) blocks that client while everyone else stays allowed, which is handy for a misbehaving device. If a client matches both a plain entry and a minus entry, it is blocked. Refused connections show as 403 in Connection History. Empty allows everyone; remember to allow monitoring tools that connect to the port. |
| Max connections per client | The most connections one client address may have open on this rule at once (1 to 1000); more are refused and show as 503. Modalities often open several at once, so be generous. Empty means no limit. |
| Client redirects | Sends particular clients somewhere else: one line per client, its IPv4 address and the destination, for example 10.20.30.41 -> 10.9.9.9:11112, a hostname with a port, or an upstream group. Every other client keeps the rule's destination. A redirect has no fallback if its destination is down. |
| Called AE title rewrite | With the AE title rewrite add-on: changes the called AE title in the association request, one line per title (OLDPACS -> NEWPACS), or ANY -> NEWPACS for all others. The modality gets its own title back in the answer, and the calling AE title is never changed. Rewrites pass through the PacsSwitch relay; if the relay is not running, they are not applied and Server Health reports it. |
Rules with advanced settings take several lines in the file. Guided Edit reads them back, and keeps rules that use other proxy settings exactly as written.
3. Upstream Groups
An upstream group is a named list of destination servers that a rule can use as its destination. Groups are an optional feature that most configurations do not need. In the group window, pick a template under Start from template and click Apply template, then change the addresses. One server line per destination:
| Template | How the traffic is shared | Example |
|---|---|---|
| Single server (central alias) | One server. Several rules can use the group, so an address change is made in one place. | server 10.10.20.105:12200; |
| Primary with automatic failover (backup) | The first server gets all the traffic; servers marked backup are used only when it does not answer. | server 10.10.20.105:104;server 10.10.20.106:104 backup; |
| Load balancing cluster (round-robin) | New connections are shared evenly. | three server lines |
| Weighted load balancing | Like round-robin, with weight=3 sending more to a larger server. | server 10.10.20.101:104 weight=3; |
| Hybrid | Balanced servers, plus a backup used only when all of them fail. | two lines, then one with backup |

The Usage column says how many rules use a group ("used by 2 rule(s)"), or "not used" when no rule has it as its destination yet. A group that a rule uses cannot be deleted until those rules are changed.
4. Email Notifications
The email PacsSwitch sends when this scenario is activated, started or stopped. The SMTP server is set once in Settings > Email.
| Field | What it is for |
|---|---|
| Sender address | The From address. |
| Recipient address(es) | One or more addresses, separated by commas. These people also receive the health and network alerts while this scenario is active. |
| Subject, Message body | The text, with variables that PacsSwitch fills in. Pick one under Insert variable and click Insert. Use default subject & body starts again from the standard text. |
| Variable | Filled in with |
|---|---|
{{NAME}}, {{DESCRIPTION}} | The scenario's name and description |
{{EVENT}} | What happened, for example Scenario Started or Scenario Stopped |
{{DATE}}, {{TIME}} | When it happened |
{{HOSTNAME}}, {{IP}}, {{UPTIME}} | The server's name, address and uptime |
{{USER}}, {{USERNAME}} | The account running PacsSwitch, and the person who caused the event (or Monitor for automatic actions) |
{{ACTIVE_SCENARIO}}, {{RULE_COUNT}}, {{SERVICE_STATUS}} | The active scenario's file, its number of rules, and whether the service is running |
{{SERVER_DESC}}, {{GROUP}} | This server's description and the region's group name (Settings > Region) |
{{STATUS_LINK}}, {{STATUS_LINKS}}, {{STATUS_LINKS_ATTENTION}} | A link to this server's status page; links to every server of the region; only the region's servers that need attention |
{{STATS}}, {{STATS-FORCE-NEW}} | The last saved port statistics; fresh statistics gathered when the email is sent |
{{BR}} | A line break |

5. Review & Save
Shows exactly the file that will be written. Validate (nginx -t) asks the proxy service to check it, and Save does the same and warns you before writing a file the proxy service rejects. Before the file is overwritten, the previous version is copied to <data folder>\backups\scenario_edits.
Related pages
- Scenarios: create, test and activate
- First setup: your first scenario, the service and the status page
- The main window
This page was revised 2026-10-30.
← Scenarios: create, test and activateScheduled scenario changes →