Find the answer to your Linux question:
Results 1 to 2 of 2
So what I have is a machine, here are some pretend IPs that sort of work the same: Server: 192.168.7.5 Router: 192.168.7.1 / 210.12.17.87 Server 1:1 NAT config on router: ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! Mistoffeles's Avatar
    Join Date
    Jul 2006
    Location
    Northern BC, Canada
    Posts
    54

    hosts.allow and hosts.deny


    So what I have is a machine, here are some pretend IPs that sort of work the same:

    Server: 192.168.7.5
    Router: 192.168.7.1 / 210.12.17.87
    Server 1:1 NAT config on router: 192.168.7.5 <-> 210.12.17.91
    Laptop: 172.16.87.17 / 210.14.55.110

    When I configure my hosts.allow, do I do it like this:

    Code:
    sshd: 210.14.55.110, 192.168.7.11
    (laptop's external IP at work, laptop's IP on site at co-loc)
    ALL EXCEPT sshd: localhost, 192.168.7.5
    (server's own IP within the LAN)
    then hosts.deny like this:

    Code:
    ALL: ALL

  2. #2
    Linux Enthusiast meton_magis's Avatar
    Join Date
    Oct 2006
    Location
    arizona
    Posts
    699
    I don't remember (been too long since I used it) but you can probably find what you need by googling "tcpwrappers guide"

    I know redhat has a pretty good one.
    New to the internet, technical forums, or the hacker / open source community??
    Read this to learn good posting habits http://www.catb.org/~esr/faqs/smart-questions.html

    RHCE for RHEL version 5
    RHCT for RHEL version 4

Posting Permissions

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