<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<title>Re: [Cialug] Procmail / Sendmail config pbm</title>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
p.avgcert, li.avgcert, div.avgcert
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>If all you want is ssh allowed from the one
IP you could try this.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Times New Roman"><span style='font-size:
10.0pt'>A RH-Firewall-1-INPUT -i eth0 -p tcp  -s  67.41.107.185 --dport
22 -j ACCEPT<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Times New Roman"><span style='font-size:
10.0pt'>A RH-Firewall-1-INPUT -i eth0 -p tcp  -s  0/0 --dport 22 -j DROP<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Times New Roman"><span style='font-size:
10.0pt'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Times New Roman"><span style='font-size:
10.0pt'>Second line to force any and all traffic to DROP.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Times New Roman"><span style='font-size:
10.0pt'>Do you have more than on NIC in this machine.? If you have just one you
could probably use<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Times New Roman"><span style='font-size:
10.0pt'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Times New Roman"><span style='font-size:
10.0pt'>A RH-Firewall-1-INPUT -p tcp  -s  67.41.107.185 --dport 22 -j
ACCEPT<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Times New Roman"><span style='font-size:
10.0pt'>A RH-Firewall-1-INPUT -p tcp  -s  0/0 --dport 22 -j DROP<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Times New Roman"><span style='font-size:
10.0pt'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
cialug-bounces@cialug.org [mailto:cialug-bounces@cialug.org] <b><span
style='font-weight:bold'>On Behalf Of </span></b>Tim Perdue<br>
<b><span style='font-weight:bold'>Sent:</span></b> Tuesday, April 05, 2011 3:07
PM<br>
<b><span style='font-weight:bold'>To:</span></b> <st1:PersonName w:st="on">Central
 Iowa Linux Users Group</st1:PersonName><br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [Cialug] Procmail /
Sendmail config pbm</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>On
4/5/2011 2:04 PM, Josh More wrote:<br>
> Try troubleshooting by commenting out all lines after "-A
RH-Firewall-1-INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT" and
seeing if it will run the setup without issue.  (Note that this may kill
your SSH.)<br>
><br>
> Alternatively, move this file to a backup and use
system-config-securitylevel to create a new file from scratch.  If that
works, your system is fine with regards to iptables and you just have to get
the rules right.  Add them in one at a time and see which one causes the
problem.<br>
><br>
> Were it me, I would do the latter, as there are a lot of lines that are
commented out that may either need that or are commented out for
troubleshooting, so it is difficult to identify what it's supposed to be doing.<br>
<br>
Yeah, it does accept that if you comment out the one rule. Strange thing<br>
is, this file is copied from the original mailserver, running the same OS.<br>
<br>
If you re-enable the one line below it gets this error:<br>
<br>
Applying iptables firewall rules: iptables-restore: line 14 failed<br>
                                                           
[FAILED]<br>
<br>
<br>
> # Firewall configuration written by system-config-securitylevel<br>
> # Manual customization of this file is not recommended.<br>
> *filter<br>
> :INPUT   ACCEPT [0:0]<br>
> :FORWARD ACCEPT [0:0]<br>
> :OUTPUT ACCEPT [0:0]<br>
> :RH-Firewall-1-INPUT - [0:0]<br>
> -A INPUT -j RH-Firewall-1-INPUT<br>
> -A FORWARD -j RH-Firewall-1-INPUT<br>
> -A RH-Firewall-1-INPUT -i lo -j ACCEPT<br>
> -A RH-Firewall-1-INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT<br>
> #home<br>
> -A RH-Firewall-1-INPUT -i eth0 -p tcp --dport 22 -m iprange --src-range<br>
> 67.41.107.185-67.41.107.185 -j ACCEPT<br>
> COMMIT<br>
<br>
_______________________________________________<br>
Cialug mailing list<br>
Cialug@cialug.org<br>
<a href="http://cialug.org/mailman/listinfo/cialug">http://cialug.org/mailman/listinfo/cialug</a></span></font><o:p></o:p></p>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=1 width="100%" noshade color="#a0a0a0" align=center>

</span></font></div>

<p class=avgcert color="#000000"><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>No virus found in this message.<br>
Checked by AVG - <a href="http://www.avg.com">www.avg.com</a><br>
Version: 10.0.1209 / Virus Database: 1500/3552 - Release Date: 04/05/11<o:p></o:p></span></font></p>

</div>

</body>

</html>