Find the answer to your Linux question:
Results 1 to 2 of 2
I couldn't get any thing to work for apache so i looked into it and my firewall for my main ip was blocking every port besides the ssh port. So ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2012
    Posts
    1

    CentOS 6.2 firewall


    I couldn't get any thing to work for apache so i looked into it and my firewall for my main ip was blocking every port besides the ssh port. So then just to test it I shut off the firewall and now the main ip ports work and are open but then the sub ip ports are not. So x.x.138.138 the main ip and the sub is something like x.x.138.138 - x.x.138.142. Those are all the ips that i have and all there ports are blocked even 22. So my question is how to I get the sub ip ports (that are closed) the same as the main ip (that are open). Does it have to do with the server gateway?

  2. #2
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,672
    Are all these IP Addresses on the same machine?
    Can you post the output of
    Code:
    ifconfig
    Can you post the output of
    Code:
    route -n
    Can you post your firewall rules from
    Code:
    /etc/sysconfig/iptables

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •