Opening ports 25 and 80 on Yellow Dog 3

Jeff Galloway yellowdog-general@lists.terrasoftsolutions.com
Mon Feb 23 13:35:02 2004


On Feb 20, 2004, at 10:13 AM, Norberto Quintanar wrote:

> --- Jeff Galloway <jeff@rundog.com> wrote:
>> For the life of me, I can't seem to open ports 25 or 80 after
>> installing Yellow Dog 3.  I have mail and web servers set up on
>> older
>> Powermac machines 7200 and 7600, using old versions of Yellow Dog
>> linux, but now that I've installed YD3 on my PM 7500, I can't seem
>> to
>> open these ports.  According to IPTables, they should be open, but
>> they're not.  What am I missing?
>>
>> Thanks in advance.
>
> A firewall could be your problem. This firewall would be running
> locally on your machine, or your ISP is blocking certain ports. I
> know that my ISP was blocking 21, 25, 80 and other ones. So what I
> had to do, is go into inetd.conf or the appropriate configuration
> file and bind the program to a different port. You would have to make
> the appropriate changes in httpd.conf. I changed my FTP port to 24
> and my HTTP port to 81. Or you could punch a wall in your firewall by
> doing the following this:
>
> #iptables -I INPUT 1 -p tcp --dport 80 -j ACCEPT
> #iptables-save > /etc/sysconfig/iptables
>
> Check your ip number:
> #/sbin/ifconfig
>
> repeat for port 25
>
> Good luck, and hope this helps.
>
> Norberto
>

I figured out the problem -- it wasn't with the firewall after all, but 
with the configuration (or lack thereof) of apache and sendmail.  
Apparently, my install of YD 3 did not include an install of apache.  
I've now installed it, and, sure enough, port 80 is open in listening.

Similarly, although sendmail was installed, it's default configuration 
does not have it listening for any mail except from localhost.  A few 
quick edits of sendmail.mc & that problem was solved -- port 25 is now 
opening and listening.

At least, in trying to figure out this issue, I learned something about 
firewalls.  Thanks for the suggestions.

Jeff