Re: prioritizing traffic using PRIO qdisc

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Matus Petrulak wrote:

tc qdisc add dev eth1 root handle 1: prio
iptables -t mangle -A OUTPUT -i eth1 -p tcp --sport ssh -j MARK --set-mark 1
tc filter add dev eth1 parent 1: protocol ip prio 1 handle 1 fw classid 1:1

but the ssh connection was not interactive. My bandwidth is 256kbit.
Please can someone help me?

Don't forget this is only going to affect outgoing traffic. (assuming eth0 is your LAN and eth1 is your internet). Incoming traffic can still flood your high-priority ssh traffic coming back in unless you have other measures in place, like:
shaping on eth0 as well
ingress policer
using prio qdisc on a imq device.



-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Damion de Soto - Software Engineer email: damion@xxxxxxxxxxxx SnapGear --- ph: +61 7 3435 2809 | Custom Embedded Solutions fax: +61 7 3891 3630 | and Security Appliances web: http://www.snapgear.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux