Xentrk
Part of the Furniture
There are several methods you can use. First one is to turn off the VPN Client. The routing rules will be removed.@
[CODE]iptables -t mangle -D PREROUTING 1
[/CODE]
Xentrk the script is working great for me but is there a way to temporarily disable it in order to perform some tests without deleting iptables nor the script repository itself?
If you are not using the custom GUI, you could run the openvpnX-route-pre-down script in the /jffs/scripts/x3mRouting folder. The VPN client will still be up and running but the iptables routing rules are no longer in effect.
To reinstate the rules, you can either restart the VPN Client (service restart_vpnclientX) or select the apply button on the GUI.
To remove a individual rule, you can use the command below to display the rules and chain number for each one:
Code:
iptables -nvL PREROUTING -t mangle --line
Then, use the chain number in the delete command. In this example, using Chain #1:
Code:
iptables -t mangle -D PREROUTING 1