Hello everyone.
For some time now i have a router asus rt-ac68U firmware from RMerlin. Many thanks for RMerlin from me.
Overall, i configured everything practically themselves under him. But i have a problem with routing through openvpn. I have set up with a openvpn client and when i use it to keep pace with the need. However i would like to automate the data connection services via openvpn. I would like more pass through HTTP openvpn (tun11), while all other calls by the wan (br0).
I found the following post:
http://forums.smallnetbuilder.com/showthread.php?t=9311
Unfortunately, we do not understand the syntax and do not know how to use it in my case.
Is my way of thinking is correct:
create "wan-start" script under /jffs/scripts
chmod 775 /jffs/scripts/wan-start
script in wan-start:
#!/bin/sh
iptables -t mangle -A PREROUTING -o br0 -p tcp --dport 80 -j DNAT --to-destination 10.8.0.1:80
?
For some time now i have a router asus rt-ac68U firmware from RMerlin. Many thanks for RMerlin from me.
Overall, i configured everything practically themselves under him. But i have a problem with routing through openvpn. I have set up with a openvpn client and when i use it to keep pace with the need. However i would like to automate the data connection services via openvpn. I would like more pass through HTTP openvpn (tun11), while all other calls by the wan (br0).
I found the following post:
http://forums.smallnetbuilder.com/showthread.php?t=9311
Unfortunately, we do not understand the syntax and do not know how to use it in my case.
Is my way of thinking is correct:
create "wan-start" script under /jffs/scripts
chmod 775 /jffs/scripts/wan-start
script in wan-start:
#!/bin/sh
iptables -t mangle -A PREROUTING -o br0 -p tcp --dport 80 -j DNAT --to-destination 10.8.0.1:80
?