<html><head><meta name="Generator" content="PocoMail 3 HTML/CSS Generator"/>
<style type="text/css"><!--
p{display:block;font-family:"Tahoma";font-size:10pt;color:black;margin:0.00in;text-align:left;}
LI{display:list-item;font-family:"Tahoma";font-size:0pt;color:black;margin-top:0.00in;margin-bottom:0.00in;text-align:left;}
td{display:block;font-family:"Tahoma";font-size:0pt;color:black;margin-left:0.00in;margin-right:0.00in;text-align:left;}
body{}
--></style>
</head><BODY BGCOLOR="#F0F0F0"><p><SPAN style="font-family:'Tahoma';"><br/>Hi All,</SPAN></p>
<p> </p>
<p><SPAN style="font-family:'Tahoma';">Quick question regarding iptables - I have traffic shaping set up and need to change the rules below. I need to give people accessing my website a LOWER priority than me accessing external sites. I.E - requests coming into this box on port 80 need a lower priority than my outbound requests on port 80.</SPAN></p>
<p> </p>
<p><SPAN style="font-family:'Tahoma';">I know i need to change one of the following lines but not sure how iptables works out source and destination ports.</SPAN></p>
<p> </p>
<p><SPAN style="font-family:'Tahoma';">Current ruleset gives ALL http traffic a high priority...</SPAN></p>
<p> </p>
<p><SPAN style="font-family:'Tahoma';">iptables -t mangle -A POSTROUTING -p tcp -m tcp --dport 80 -j MARK --set-mark 0x5</SPAN></p>
<p><SPAN style="font-family:'Tahoma';">iptables -t mangle -A POSTROUTING -p tcp -m tcp --sport 80 -j MARK --set-mark 0x5</SPAN></p>
<p> </p>
<p> </p>
<p><SPAN style="font-family:'Tahoma';">which line needs changing?</SPAN></p>
<p> </p>
<p><SPAN style="font-family:'Tahoma';">Thanks</SPAN></p>
<p><SPAN style="font-family:'Tahoma';">Jeff</SPAN></p>
</body></html>