Find the answer to your Linux question:
Results 1 to 2 of 2
How do I enforce within iptables for the following rules.. Sudo iptables -A INPUT -p tcp --syn --dport 22 m connlimit --connlimit-above 2 -j DROP Sudo iptables -A INPUT -p ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2014
    Posts
    1

    enforcing iptables


    How do I enforce within iptables for the following rules..

    Sudo iptables -A INPUT -p tcp --syn --dport 22 m connlimit --connlimit-above 2 -j DROP


    Sudo iptables -A INPUT -p tcp --syn m connlimit --connlimit-above 3 -j DROP


    Thank you

  2. #2
    Just Joined!
    Join Date
    Jun 2008
    Location
    Portland, OR, US
    Posts
    1
    Most distros read a config file for iptables at bootup. In Fedora it's /etc/sysconfig/iptables-config. You can edit that file to insert your new rules to make them permanent. Or if you have the rules already manually input in a terminal, you can create an updated config file by 'iptables-save > /etc/sysconfig/iptables-config'.

    - Dennis

Posting Permissions

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