Results 1 to 2 of 2

Thread: [ask]setting firewall Share/Save - My123World.Com!

  1. #1
    Garage Newcomer
    Join Date
    Mar 2014
    Location
    Manchester, United Kingdom
    Posts
    1

    [ask]setting firewall

    how to set/ configure iptables as firewall on kali linux.. ?
    i found my operating system is vuln ( someone has scanning mine and found it)

  2. #2
    Garage Addict 41.w4r10r's Avatar
    Join Date
    Jul 2010
    Location
    Pune
    Posts
    338
    Blog Entries
    3
    Adding following rule will allow only SSH connection to your machine

    Code:
    iptables -A INPUT -i eth0 -p tcp --dport 22 -j ACCEPT

    and following iptable rule will drop all the other connections:


    Code:
    iptables -A INPUT -j DROP


    Source:http://www.thegeekstuff.com/2011/02/iptables-add-rule/

Tags for this Thread

Posting Permissions

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