New Update: Route OpenVPN Server traffic to an OpenVPN Client via an IPSET list.
You must update the menu to get the new option. I also pushed an update to option 4 - route_all_vpnserver.sh. Select option 4 to get the updated script.
[5] ~ Install route_ipset_vpnserver.sh
Provides the ability to route VPN Server traffic to one of the VPN Clients via an IPSET list. You must pass the VPN Server interface number as the first parameter and the IPSET list name as the second parameter. You can also specify an optional third parameter to delete the rule. You only have to run the script one time as the rules will automatically start at system boot.
Prerequisite
The
route_ipset_vpnserver.sh script requires that the
openvpn-event script included in the x3mRouting project also be installed. The installation script will check if
openvpn-event is installed and prompt you to install it if does not exist.
Usage example:
Code:
sh /jffs/scripts/x3mRouting/route_ipset_vpnserver.sh {[1|2]} [IPSET_LIST] [del]
Route VPN Server 1 traffic to the VPN Client specified by the existing x3mRouting rule for PANDORA IPSET list:
Code:
sh /jffs/scripts/x3mRouting/route_ipset_vpnserver.sh 1 PANDORA
Delete rules to route VPN Server 1 traffic to VPN Client specified by the existing x3mRouting rule for the PANDORA IPSET list:
Code:
sh /jffs/scripts/x3mRouting/route_ipset_vpnserver.sh 1 PANDORA del
Requirements
- The IPSET list must exist!
- A PREROUTING rule must currently exist so the script can determine the VPN Client to route to!