<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>

<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE type=text/css>P {
        DISPLAY: block; FONT-SIZE: 10pt; MARGIN: 0in; COLOR: black; FONT-FAMILY: "Tahoma"; TEXT-ALIGN: left
}
LI {
        MARGIN-TOP: 0in; DISPLAY: list-item; FONT-SIZE: 0pt; MARGIN-BOTTOM: 0in; COLOR: black; FONT-FAMILY: "Tahoma"; TEXT-ALIGN: left
}
TD {
        DISPLAY: block; FONT-SIZE: 0pt; MARGIN-LEFT: 0in; COLOR: black; MARGIN-RIGHT: 0in; FONT-FAMILY: "Tahoma"; TEXT-ALIGN: left
}
BODY {
        
}
</STYLE>
</HEAD>
<BODY bgColor=#f0f0f0>
<DIV><SPAN class=837474420-16042004>it would be the destination.</SPAN></DIV>
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT face=Tahoma 
size=2>-----Original Message-----<BR><B>From:</B> Jeff [mailto:jeff@virgin.net] 
<BR><B>Sent:</B> Friday, April 16, 2004 4:31 PM<BR><B>To:</B> 
redhat-list@redhat.com<BR><B>Subject:</B> iptables 
confusion<BR><BR></FONT></DIV>
<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>