Introduction
This article describes how to securely connect two remote eWON Flexy devices over the Internet using a mobile connection and VPN. The setup establishes site-to-site communication where devices behind each eWON can reach each other through the VPN tunnel.
Applicable Products
• eWON Flexy
Prerequisites
• Two eWON Flexy devices
• Access to the eWON Web GUI
• eBuddy utility (recommended for device discovery and firmware upgrade)
• At least one site with a publicly accessible IP address
• Devices on each site must use different LAN IP ranges
• eWON firmware version 5.0 or higher
In This Article
1. Configure the eWON VPN Server (Site A)
2. Configure the eWON VPN Client (Site B)
3. Public IP Address Requirements
4. Device Configuration Behind eWONs
5. Establishing the Connection
6. Troubleshooting
Configure the eWON VPN Server (Site A)
In this setup, eWON A acts as the VPN Server.
1. Set the LAN IP address.
- Setup>System>Communication>General>ETH1 LAN
- In this example we will use 192.168.1.0/24 Subnet for Site A
- Please make sure this subnet doesn't overlap ETH1 LAN on Site B
2. Configure the WAN Interface
- Setup>Wizards>Internet
- Follow steps outlined here
3. Configure VPN:
Setup>System>Communication>Networking>VPN Connection>Global
• Global VPN configuration defaults to port 1194 (adjust if necessary).
Setup>System>Communication>Networking>VPN Connection>Incoming
• Enable 'Listen for incoming VPN connection'.
• Enter a passphrase and record it.
• Leave VPN IP assignment on automatic unless conflicts occur.
4. Configure Routing:
Setup>System>Communication>Networking>Routing
• Enable 'Route all gateway traffic through VPN'.
• Select 'NAT and TF disabled'.
5. Configure Security:
Setup>System>Communication>Networking>Security
• Set WAN Protection to 'Allow all' (can later restrict to VPN only).
6. Reboot the eWON to apply changes.
Configure the eWON VPN Client (Site B)
In this setup, eWON B acts as the VPN Client.
1. Set the LAN IP address.
- Setup>System>Communication>General>ETH1 LAN
- In this example we will use 192.168.2.0/24 Subnet for Site B
- Please make sure this subnet doesn't overlap ETH1 LAN on Site A
2. Configure the WAN Interface
- Setup>Wizards>Internet
- Follow steps outlined here
3. Configure VPN:
Setup>System>Communication>Networking>VPN Connection>Main Setup
• Enable 'Establish VPN connection'.
Setup>System>Communication>Networking>VPN Connection>Outgoing
• Set 'Primary server' to the public IP of eWON A (VPN Server).
• Select 'Other eWON' as connection type.
• Enter the same passphrase used on eWON A.
• Leave VPN IP assignment on automatic unless conflicts occur.
4. Configure Routing:
Setup>System>Communication>Networking>Routing
• Enable 'Route all gateway traffic through VPN'.
• Select 'NAT and TF disabled'.
5. Configure Security:
Setup>System>Communication>Networking>Security
• Set WAN Protection to 'Allow all' (can later restrict to VPN only).
6. Reboot the eWON to apply changes.
Device Configuration Behind eWONs
• Devices on Site A must use the LAN IP of eWON A as their default gateway.
192.168.1.1 in this example
• Devices on Site B must use the LAN IP of eWON B as their default gateway.
192.168.2.1 in this example
Establishing the Connection
Once configured, the VPN will automatically connect on power-up. To verify, navigate in the Web GUI to: Home>Summary>VPN Connection. Confirm that VPN IP addresses are assigned (e.g., 10.254.0.2 for Site A, 10.254.0.1 for Site B).
Troubleshooting
• Ensure Site A and Site B have different LAN IP ranges.
• Confirm that each eWON is set as the default gateway for connected devices.
• If VPN fails to connect, verify the server’s WAN IP range differs from the client’s WAN IP range.
• If the VPN drops, check that 'Maintain Connection' is enabled on both eWONs.
Setup>System>Communication>Networking>Internet Connection>Main Setup