Route Coursera, edX, and other course websites through a selected proxy in v2rayN without sending every request through it. The reliable approach is to identify the domains your courses actually use, put specific proxy and direct rules in the right order, and test both routes separately. This guide covers Windows system proxy and TUN modes, domain matching, DNS considerations, and practical checks for course pages, video, and downloads.
Decide what should use the proxy
Split tunneling means choosing a route for particular traffic instead of treating every connection the same way. For a study setup, you might send Coursera and edX through a proxy while leaving a campus portal, a local library service, and ordinary local browsing on the direct connection. The result depends on v2rayN’s active routing configuration and on how applications connect; adding a domain rule does not automatically route every app on the computer.
Before changing settings, write down the sites and services you want to reach. Include the course site itself, any learning platform your institution uses, and the domains that actually serve video or downloadable course files. A course page can load from one domain while its player, images, and attachments come from other hosts. Conversely, a service that appears related to a course may be hosted on a provider’s separate domain that you do not want to route.
- Proxy candidates: the course domains you cannot reliably reach directly, plus confirmed media or resource domains used by those courses.
- Direct candidates: campus sign-in pages, local library catalogs, intranet services, and other sites that should use your normal network.
- Do not assume: a website’s visible name tells you every domain it uses. Check the address bar, browser network activity, or connection logs when a video or download behaves differently from the main page.
Keep this list narrow. A broad rule that sends all HTTPS traffic through the proxy may appear to fix a course page, but it can also route campus services unnecessarily and make later troubleshooting much harder. Routing only the destinations you have identified is easier to test and reverse.
These numbers are a suggested checklist, not performance measurements. Testing the page, player, and file separately helps reveal whether only a supporting host is missing from the rules. Change one rule or mode at a time so you can identify which edit affected the result.
Choose a v2rayN routing mode
v2rayN can work with applications that follow the Windows system proxy, and it can also use TUN mode to capture more system traffic. The best starting point for a few browser-based study sites is usually the least intrusive mode your applications support: enable the system proxy and use domain-based routing. TUN can help with software that ignores the system proxy, but it captures traffic at a broader level and may require additional permissions or adapter setup.
Works well for browsers and other applications that honor the Windows proxy settings. Specific destinations can use the proxy while direct rules preserve access to local services.
Suitable for: browser-based courses and a simple first setup
Captures traffic from more applications, including some that do not use the system proxy. It can affect more of the computer’s network activity and needs careful route testing.
Suitable for: a course application that bypasses the system proxy
Sends a much wider set of traffic through the selected outbound route. It can be useful as a short diagnostic comparison, but it is not a substitute for a deliberate split-tunnel rule set.
Suitable for: a brief test to compare direct and proxied access
Menu wording and the location of routing controls can vary between v2rayN versions and interface languages. In the main window, check the routing or routing-settings selector and note which configuration is active before editing anything. Do not assume that choosing a proxy node alone enables split tunneling: the node selects an outbound connection, while the routing rules decide which requests use it.
For a controlled baseline, select a working node, enable the system proxy, and open one course page in a browser that follows the system setting. Confirm that ordinary direct browsing still works. If that baseline fails, first troubleshoot the node or proxy mode; adding more domain rules will not fix an unavailable outbound connection. Save or export your current routing configuration before making changes, especially if it contains custom rules.
Add domain rules and preserve campus access
Use the active routing configuration to place specific rules ahead of any broad catch-all rule. In Xray-style routing, rules are evaluated in order: once a request matches a rule, its outbound tag determines the route. A proxy rule placed below a rule that already sends the same traffic to direct may never take effect. Likewise, a broad proxy rule placed first can capture traffic you intended to keep direct.
The example below illustrates the idea for a routing configuration that has outbounds tagged proxy and direct. It is a rule fragment, not a complete v2rayN configuration. The precise way to enter custom rules depends on the active v2rayN version and routing editor, so match the fields to the existing configuration instead of replacing the whole file with this snippet.
{
"type": "field",
"domain": [
"domain:coursera.org",
"domain:edx.org"
],
"outboundTag": "proxy"
}
In Xray domain matching, domain:coursera.org is intended to match the domain and its subdomains; the corresponding domain:edx.org rule is a starting point for edX. Confirm that your configuration uses the expected outbound tag and that the rules are placed before broader rules that could catch the same request. If v2rayN’s routing editor offers a built-in domain list, use its supported entry format rather than pasting a JSON fragment into a field that expects plain domain names.
-
Save a baseline
Record the selected node, routing mode, system-proxy state, and any existing custom rules. Export or back up custom configuration before editing it, so you can restore a known working setup.
-
Choose the active route
In v2rayN, open the routing settings or routing selector and identify the rule set currently in use. Check that the proxy outbound exists and is tagged as expected; a rule cannot use an outbound that the configuration does not provide.
-
Add narrow domains
Add the confirmed course domains as proxy destinations using the editor’s supported format. Start with the main site, then add a media or file host only if testing shows that it also needs the proxy.
-
Keep direct rules first
Place specific campus and local-service exceptions before broad rules that could match them. Then put the course proxy rules before a general direct fallback, while checking for earlier rules that already match the same domains.
-
Apply and verify
Apply the selected routing configuration, restart the core if v2rayN requests it, and open the course page again. Test the player and a file separately, then confirm that a campus service still uses the intended direct route.
The direct exceptions matter because “local” is not a universal category. A campus portal may use a public domain, while a library or identity service may redirect to a separate sign-in host. Add the actual hostnames you need to keep direct, and test the complete sign-in flow rather than only the first page. If a campus service has several redirects, the address bar or connection log can help identify each destination.
Do not add every unfamiliar hostname from a browser session to the proxy list automatically. Some may be analytics, embedded content, or optional services rather than required course resources. Add one confirmed domain, retest the specific feature that failed, and keep a short note of the change. This avoids turning a focused study configuration into an unpredictable list of exceptions.
Check DNS, the node, and course resources
Routing and DNS are related, but they are not the same setting. A routing rule selects an outbound for a connection; DNS resolves a hostname to an address. Depending on the client, core configuration, and browser behavior, a hostname may be resolved locally, through a configured DNS server, or as part of a proxied request. If the main course page works but a video host does not, consider both the route for that host and how its name is resolved.
A practical split-tunnel plan
Course destinations
- Route confirmed course and media domains through the proxy.
- Check the player and file hosts separately from the course homepage.
- Use a node that can establish a stable connection to those destinations.
Campus and local services
- Keep confirmed campus and local-service domains on the direct route.
- Place specific exceptions before rules that could match them broadly.
- Test sign-in redirects as well as the initial portal page.
Start with a small domain list, verify each destination, and expand only when a real course feature requires it.
When a course page fails, compare the same browser and destination with the proxy temporarily disabled and then enabled, without changing several settings between tests. If direct access fails but the proxy works, the route may be appropriate for that host. If both fail, check the site’s status, your account access, and the browser before changing routing. If the homepage loads but the video stalls, inspect the player’s actual host and add a narrow rule only when the evidence supports it.
Test the selected node with more than a latency indicator. A node can respond to a connectivity check and still have trouble reaching a particular site, serving sustained video, or transferring a large file. Compare a short course video and a permitted course download under the same conditions. If one node fails while another works with identical rules, the issue is more likely related to that node or its route than to the domain list.
- Page fails before sign-in: check whether the course domain is matched by the intended proxy rule and whether the active node is connected.
- Sign-in redirects fail: identify the destination hostname after the redirect and decide whether it belongs on the proxy or direct route.
- Page loads but video does not: check the player’s media host, DNS result, and node stability; the video may not use the homepage domain.
- Downloads fail while browsing works: inspect the file host separately and compare a second node before broadening the proxy rule.
- Campus access breaks: check rule order and add a specific direct exception for the confirmed campus host rather than disabling all routing.
A DNS change should be a targeted diagnostic, not the first response to every failed page. Record the current DNS settings, test one change, and restore the baseline if it does not improve the affected destination. Avoid using a broad DNS or global proxy change to compensate for a domain rule that simply omits a required media host.
Keep the setup reliable as courses change
Course platforms can update their resource hosts, and institutions may change sign-in or library domains. Revisit your list when a specific feature stops working, but do not rebuild the entire routing configuration on every failure. First identify what changed: the selected node, the active routing mode, a course resource hostname, or the campus network itself. Testing the same page and feature after each single adjustment makes the cause easier to isolate.
The course homepage opens, but the video player stays blank. What should I check?
Open the player and check the media hostname in the browser’s network activity or v2rayN connection log. Add that confirmed host to the proxy rule if needed, apply the change, and retest the same video before adding other domains.
My campus portal started going through the proxy. Did the node change cause it?
Check the active routing configuration and rule order first. Add a specific direct rule for the portal’s confirmed hostname before a broader matching rule, then test the portal and any sign-in redirects again.
Should I use TUN because one desktop app ignores the system proxy?
Try TUN only if the app needs traffic capture beyond the system proxy. Enable it with the same narrow routing plan, check that the adapter starts correctly, and verify both course access and campus direct access before relying on it.
Keep a small record of the working state: v2rayN routing mode, selected node, domains routed through the proxy, direct exceptions, and any DNS change you tested. Do not store subscription URLs in that note; they can contain account access tokens. If the setup breaks after an edit, restore the saved routing configuration and repeat the tests rather than deleting the subscription or resetting unrelated client settings.
A good split-tunnel setup is not the one with the most domains or the most aggressive capture mode. It is the smallest configuration that reliably routes the course resources you need, leaves campus services on the intended path, and can be explained and restored when something changes. Confirm the page, video, file, and campus access after each meaningful edit, and keep the working rules ahead of any broad fallback that could override them.