About 1,060,000 results
Open links in new tab
  1. Viewing all iptables rules - Unix & Linux Stack Exchange

    May 27, 2015 · 70 iptables -S does the trick for me. It seems to list all the active rules, even when the service is off. From the man page: -S, --list-rules [chain] Print all rules in the selected chain. If no …

  2. linux - How can I port forward with iptables? - Server Fault

    second line: "iptables -A FORWARD -p tcp -d 192.168.1.200 --dport 8080 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT" is NOT required if you don't have firewall …

  3. What is the correct way to open a range of ports in iptables

    And others stating that the above will not work and iptables only supports multiple port declarations with the --multiport option. Is there a correct way to open many ports with iptables?

  4. iptables: difference between NEW, ESTABLISHED and RELATED packets

    iptables -A INPUT -p tcp --dport 22 -m state --state NEW -m recent --update --seconds 100 --hitcount 10 -j DROP When I search online I always see NEW being used in that rule but I'm having a hard time …

  5. linux - REJECT vs DROP when using iptables - Server Fault

    Without iptables rules, a closed port defaults to REJECT. If you DROP every port it's a fine alternative (your host appears down) but if you DROP only specific ports you're actually giving them more …

  6. Stop IPTables on Reboot - Unix & Linux Stack Exchange

    Jan 21, 2024 · The name of the service responsible for reloading the iptables rules on reboot will vary by distribution, and you haven't indicated which distribution you're using. Also, have you installed any …

  7. Allow traffic to/from specific IP with iptables - Server Fault

    -A means appends. This adds the rule in the end of the rules list, so incoming connection could be dropped by a rule higher in the list. To make sure that all connections from or to an IP address are …

  8. linux - Iptables - Bridge and Forward chain - Server Fault

    Since the traffic you are working is ip, iptables rules still apply because of br-nf passing the bridged packets to iptables. This is a great resource to read about the interaction and this one details the …

  9. linux - Ufw and Iptables. Which is better and why? - Server Fault

    Apr 28, 2020 · Iptables: This HowToGeek guide goes a bit deeper into using Iptables. Netfilter: This DigitalOcean article dives deep into the architecture of Iptables and Netfilter, which is the foundation …

  10. What is the difference between the iptables command and ... - linux

    Dec 4, 2022 · The iptables command is used to add or delete rules and chains and can be used without the service file. What iptables.service does is to automatically load a saved ruleset on boot and to …