QOS on RB493G

Hi,

I have a RB493G as an internet router.

I need to setup QOS on the WAN interface, it a 20Mbit/10Mbit D/L ADSL line.
The 493G uses Openvpn client to connect to the remote office.
I need to prioritize the OpenVPN traffic as Prio 1, and regular internet as Prio 2.

I followed several guides but most of them assume the traffic is only to and from the internet.
I could not find out how to prioraize the OpenVPN traffic.

Does anybody have a setup that could work?

Anybody?

Well, to prioritize traffic, first you need to identify it among others. This can be done in mangle. I don’t know much about OpenVPN, but you either identify by the port used by OpenVPN or by IP address that goes by one site to the other. Than you assign priority in queue tree with parent and child queues, where parent is the general queue limiting the whole bandwidth, and child are the two different traffics you want to prioritize.

Yes but the issue is on how to filter out the OpenVPN traffic when the router itself is the client?
I cannot see the traffic in PREROUTING.

Then i want to limit 0.0.0.0/0 traffic, while the OpenVPN traffic also goes to 0.0.0.0/0 ?