CSx
Github Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

đŸ’ģ iptables


Start and configuration

  • Systemd

    • sudo systemctl enable iptables.service

    • sudo systemctl start iptables.service

    • sudo systemctl restart iptables.service

      After edits

  • Port forwarding

    • sudo iptables -P FORWARD DROP

Gufw

  • Systemd

    • sudo systemctl enable ufw.service

    • sudo systemctl start ufw.service

  • SSH Limiting

    • Add rule

      • Subcat: Services

      • Application: SSH

      • Policy: Limit

Ufw

  • Port forwarding

    • sudov /etc/ufw/sysctl.conf

      • Uncomment..

        #net/ipv4/ip_forward=1
        #net/ipv6/conf/default/forwarding=1
        #net/ipv6/conf/all/forwarding=1
        
  • sudo ufw reload