Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2001
    Posts
    431

    Allow certain ip for a port

    Hello,

    I am using csf to secure my server. I want to open the ssh port for certain ip only. So I edit csf.allow and add the following line:

    tcp:in:d=22=192.168.0.100

    Then restarted.

    But I can still access the server from IP addresses other than 192.168.0.100. Anyone know how can I restruct certain IP address to access certain port? Thanks.
    http://www.ebookeasy.com Free ebook for webhosting and dedicated server review

  2. #2
    Join Date
    Oct 2004
    Location
    Kerala, India
    Posts
    4,771
    You need to remove the port 22 from the csf.conf file under TCP_IN section and allow in the manner you have done in csf.allow file.
    David | www.cliffsupport.com
    Affordable Server Management Solutions sales AT cliffsupport DOT com
    CliffWebManager | Access WHM from iPhone and Android

Posting Permissions

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