Docs

Doc / Cases / subroute



Remote access to sub router devices

There are a lot of WIFI devices which are not able to run omniedge or other VPN protocols, hence the remote access have a challenge sometimes. Here we offer a cheap solution for you to use OmniEdge OpenWrt and OmniEdge cli for macOS with small firewall command.

Requirements

  • OmniEdge client for all platform
  • OmniEdge openwrt ipk

Setup on Windows

  1. Install OmniEdge For Windows

Doc: https://omniedge.io/download/windows

  1. Run cmd as administrator, and set the route

route add 192.168.1.0 mask 255.255.255.0 100.100.100.46

Setup on MacOS

  1. Install OmniEdge for macOS

Doc: https://omniedge.io/download/macos

  1. Set the route

sudo route -n add -net 192.168.1.0 100.100.100.46

Here:

  • 192.168.1.0: LAN IP range of the OpenWrt Router
  • 100.100.100.46: OMNIEDGE IP of OpenWRT Router

Setup on OpenWrt

  • LAN IP Range: 192.168.1.0/24

  • Download omnedge ipks related to your routers arch, and copy it to your router
  • Install it by running opkg install omniedge*.ipk
  • Generate Security-key, and get the Virtual Network ID from Dashboard
  • Add your Security key and virtual network id to /etc/init.d/omniedge:
security_key=OMNIEDGE_SECURITY_KEY
virtual_network_id=OMNIEDGE_VIRUTALNETWORK_ID
  1. running Omniedge by:
/etc/init.d/omniedge enable
/etc/init.d/omniedge start
  1. set firewall
iptables -t nat -A POSTROUTING -s 100.100.100.0/24 -j MASQUERADE
iptables -A forwarding_rule -s 100.100.100.0/24 -j ACCEPT
LAN_DEV=`ubus call network.interface.lan status | jsonfilter -e '@["device"]'`
iptables -I FORWARD 1 -i $LAN_DEV -d 100.100.100.0/24 -j ACCEPT

Here: - 100.100.100.0/24: your virtual network IP range

image

On This Page

OmniEdge

© 2022 OmniEdge Inc. All rights reserved

Built by a global remote team.
US | AU | CN | DE | MY | CA

TwitterGithubDiscord