What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Selective routing for http

albert640

New Around Here
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

?
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top