The new version coming out soon will automatically perform the configuration. With the current version, you'll have to take some manual steps. Remove the entry from firewall-start.
- Select Option 6 - Install x3mRouting OpenVPN Event from the x3mRouting installation menu.
- In the project directory /jffs/scripts/x3mRouting, create a corresponding script called vpnclientX-route-up for each OpenVPN Client used for x3mRouting, where the "X" is the OpenVPN Client number 1, 2, 3, 4 or 5.
- Then, add the required entry for each x3mRouting script that requires routing through the OpenVPN Client.
/jffs/scripts/x3mRouting/vpnclient1-route-up
Code:
#!/bin/sh
sh /jffs/scripts/x3mRouting/load_AMAZON_ipset.sh 1 AMAZON-US US
Set the script to be executable (e.g. cmhod 755 vpnvlient1-route-up). If using the GUI method, the routing rule will be deleted when the VPN Client gets disabled. Otherwise, there is an iptables entry required in vpnclient1-route-pre-down.
If you have no policy rules for LAN clients in the GUI, create a
Dummy VPN entry.