From: xchaos Date: Sun, 7 Oct 2012 20:28:07 +0000 (+0000) Subject: https://dev.arachne.cz/svn/prometheus/ticket/20 X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=6b39193dd108e6cf16ebcbed92cf698d367dca46;p=svn%2FPrometheus-QoS%2F.git https://dev.arachne.cz/svn/prometheus/ticket/20 git-svn-id: https://dev.arachne.cz/repos/prometheus/trunk@196 251d49ef-1d17-4917-a970-b30cf55b089b --- diff --git a/prometheus.c b/prometheus.c index 07980f6..2aec7ff 100644 --- a/prometheus.c +++ b/prometheus.c @@ -881,11 +881,11 @@ Credit: CZFree.Net, Martin Devera, Netdave, Aquarius, Gandalf\n\n",version); if(qos_proxy) { save_line(":post_noproxy - [0:0]"); - sprintf(str,"-A POSTROUTING -p ! tcp -o %s -j post_noproxy", lan); + sprintf(str,"-A POSTROUTING ! -p tcp -o %s -j post_noproxy", lan); save_line(str); - sprintf(str,"-A POSTROUTING -s ! %s -o %s -j post_noproxy", proxy_ip, lan); + sprintf(str,"-A POSTROUTING ! -s %s -o %s -j post_noproxy", proxy_ip, lan); save_line(str); - sprintf(str,"-A POSTROUTING -s %s -p tcp --sport ! %d -o %s -j post_noproxy", proxy_ip, proxy_port, lan); + sprintf(str,"-A POSTROUTING -s %s -p tcp ! --sport %d -o %s -j post_noproxy", proxy_ip, proxy_port, lan); save_line(str); chain="post_noproxy";