Hello,
I need to route a few domains on my Asus-merlin located on network "A" through a network that I cannot open any ports on network "B". Since I can't connect to an OpenVPN server on network "B", I setup an OpenVPN server on my Asus-merlin and setup a client on network "B" to connect back to network "A" in hopes of doing it that way.
I enabled the client <-> client option as well as pushed the local subnet on the OpenVPN server, so I can successfully ping and access local resources on network "B" from network "A" (using both network "B" local IPs 192.168.11.X as well as the ovpn IPs 10.1.0.X). Now, I'm attempting to use IPSET to selectively route a few domains over network "B" but can't seem to figure out how to set that up since /usr/sbin/vpnrouting.sh only sets up routes for tun1X, whereas I need to forward via tun21.
This is what I have so far:
I would appreciate any help or suggestions.
Thanks!
I need to route a few domains on my Asus-merlin located on network "A" through a network that I cannot open any ports on network "B". Since I can't connect to an OpenVPN server on network "B", I setup an OpenVPN server on my Asus-merlin and setup a client on network "B" to connect back to network "A" in hopes of doing it that way.
I enabled the client <-> client option as well as pushed the local subnet on the OpenVPN server, so I can successfully ping and access local resources on network "B" from network "A" (using both network "B" local IPs 192.168.11.X as well as the ovpn IPs 10.1.0.X). Now, I'm attempting to use IPSET to selectively route a few domains over network "B" but can't seem to figure out how to set that up since /usr/sbin/vpnrouting.sh only sets up routes for tun1X, whereas I need to forward via tun21.
This is what I have so far:
Code:
ip route add default via $(ifconfig tun21 | grep 'inet addr:'| cut -d: -f2 | awk '{ print $1}') dev tun21 table 55
ip route add default via 192.168.11.1 dev tun21 table 55
ip rule add from 0/0 fwmark 0x5500 table 55 prio 9955
Thanks!