VeilNet Conflux operates in two distinct modes: Portal mode and Rift mode. The mode you choose determines how your Conflux node handles network traffic and what resources it can access.
Portal mode enables your Conflux node to act as a gateway that provides access to networks and resources accessible from the host machine.
Portal mode is ideal when you need a gateway or mini-router that can:
Using environment variable:
export VEILNET_PORTAL=true
./veilnet-conflux register -t "your-registration-token"
Using command flag:
./veilnet-conflux register -t "your-registration-token" -p
Rift mode provides an entry point to VeilNet with absolute isolation. It captures all traffic from the host machine and routes it through VeilNet, while ensuring complete isolation from local networks.
Rift mode is ideal when you need an entry point to VeilNet with absolute isolation:
Using environment variable:
export VEILNET_PORTAL=false
./veilnet-conflux register -t "your-registration-token"
Or simply omit the flag:
./veilnet-conflux register -t "your-registration-token"
(Rift mode is the default when Portal mode is not explicitly enabled)
| Feature | Portal Mode | Rift Mode |
|---|---|---|
| Purpose | Gateway/Mini-router | Entry Point with Isolation |
| Exposes local networks | ✅ Yes | ❌ No |
| Captures host traffic | ❌ No | ✅ Yes |
| Use case | Gateway/Router | Entry Point |
| Access to regular networks | ✅ Yes (simultaneous access to both VeilNet and regular networks) | ❌ No (only VeilNet, loses regular network connection) |
| Access to host resources | ✅ Other devices can access | ❌ Not exposed |
| Access to container networks | ✅ Yes | ❌ No |
| Access to local network | ✅ Yes | ❌ No |
Choose Portal Mode if:
Choose Rift Mode if:
Understanding how Portal and Rift modes work together in different deployment scenarios helps you design the right network architecture for your needs.
Configuration: All Conflux instances run in Portal mode
Use Cases:
Benefits:
Example Architecture:
Region A (Portal) ←→ VeilNet ←→ Region B (Portal) ←→ VeilNet ←→ Region C (Portal)
↓ ↓ ↓
Local Services Local Services Local Services
Configuration: Portal mode for infrastructure, Rift mode for client devices
Use Cases:
Benefits:
Example Architecture:
Enterprise Network
↓ (Portal)
VeilNet
↓
Employee Laptop (Rift) DevOps Workstation (Rift) Contractor Device (Rift)
Security Considerations:
Configuration: All Conflux instances run in Rift mode
Use Cases:
Benefits:
Example Architecture:
Device A (Rift) ←→ VeilNet ←→ Device B (Rift) ←→ VeilNet ←→ Device C (Rift)
(No regular (Isolated (No regular (Isolated (No regular
network) Network) network) Network) network)
Important Considerations:
Warning: Portal mode exposes networks accessible from the host. We strongly recommend reading the Access Control documentation to understand how VeilNet's Packet Level Authentication (PLA) and team-based access control can help secure your Portal deployments.
Note: You can change the mode by unregistering and re-registering the Conflux with the desired mode setting. The mode is determined at registration time and stored in the configuration.