![]() ![]() A INPUT -i lxdbr0 -p tcp -m tcp -dport 53 -m comment -comment "generated for LXD network lxdbr0" -j ACCEPT A INPUT -i lxdbr0 -p icmp -m icmp -icmp-type 3 -m comment -comment "generated for LXD network lxdbr0" -j ACCEPT A INPUT -i lxdbr0 -p icmp -m icmp -icmp-type 11 -m comment -comment "generated for LXD network lxdbr0" -j ACCEPT A INPUT -i lxdbr0 -p icmp -m icmp -icmp-type 12 -m comment -comment "generated for LXD network lxdbr0" -j ACCEPT $ sudo ip6tables -S | less password for vivek: You can also use the less command or more command as a pager. Use the grep command/egerp command to filter our results. Pass the S option as follows to iptables command or ip6tables command: $ iptables -L -v -n -line-numbers Displaying all iptables rules in the selected chain ![]() The packet and byte counters are also listed, with the suffix K, M or G for 1000, 1,000,000 and 1,000,000,000 multipliers respectively (but see the -x flag to change this). The -v option makes the list command show the interface name, the rule options (if any), and the TOS masks. The -line-numbers option adds line numbers to the beginning of each rule, corresponding to that rule’s position in the chain. Here is what I see: Chain INPUT (policy ACCEPT) To check the status of your firewall and all rules, enter: Linux Firewall Display Status and Rules of Iptables Firewall ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |