Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@OpenWrt:~# iptables-save -c
- # Generated by iptables-save v1.8.7 on Thu Sep 16 12:12:38 2021
- *nat
- :PREROUTING ACCEPT [837:115466]
- :INPUT ACCEPT [67:8931]
- :OUTPUT ACCEPT [561:42194]
- :POSTROUTING ACCEPT [35:4422]
- :postrouting_WireGuard_rule - [0:0]
- :postrouting_lan_rule - [0:0]
- :postrouting_rule - [0:0]
- :postrouting_wan_rule - [0:0]
- :prerouting_WireGuard_rule - [0:0]
- :prerouting_lan_rule - [0:0]
- :prerouting_rule - [0:0]
- :prerouting_wan_rule - [0:0]
- :zone_WireGuard_postrouting - [0:0]
- :zone_WireGuard_prerouting - [0:0]
- :zone_lan_postrouting - [0:0]
- :zone_lan_prerouting - [0:0]
- :zone_wan_postrouting - [0:0]
- :zone_wan_prerouting - [0:0]
- [1291:147826] -A PREROUTING -m comment --comment "!fw3: Custom prerouting rule chain" -j prerouting_rule
- [1286:147321] -A PREROUTING -i br-lan -m comment --comment "!fw3" -j zone_lan_prerouting
- [0:0] -A PREROUTING -i wan -m comment --comment "!fw3" -j zone_wan_prerouting
- [5:505] -A PREROUTING -i WireGuard -m comment --comment "!fw3" -j zone_WireGuard_prerouting
- [1683:173930] -A POSTROUTING -m comment --comment "!fw3: Custom postrouting rule chain" -j postrouting_rule
- [11:2778] -A POSTROUTING -o br-lan -m comment --comment "!fw3" -j zone_lan_postrouting
- [531:37972] -A POSTROUTING -o wan -m comment --comment "!fw3" -j zone_wan_postrouting
- [1117:131536] -A POSTROUTING -o WireGuard -m comment --comment "!fw3" -j zone_WireGuard_postrouting
- [1117:131536] -A zone_WireGuard_postrouting -m comment --comment "!fw3: Custom WireGuard postrouting rule chain" -j postrouting_WireGuard_rule
- [1117:131536] -A zone_WireGuard_postrouting -m comment --comment "!fw3" -j MASQUERADE
- [5:505] -A zone_WireGuard_prerouting -m comment --comment "!fw3: Custom WireGuard prerouting rule chain" -j prerouting_WireGuard_rule
- [11:2778] -A zone_lan_postrouting -m comment --comment "!fw3: Custom lan postrouting rule chain" -j postrouting_lan_rule[1286:147321] -A zone_lan_prerouting -m comment --comment "!fw3: Custom lan prerouting rule chain" -j prerouting_lan_rule
- [0:0] -A zone_lan_prerouting -p tcp -m tcp --dport 53 -m comment --comment "!fw3: intercept-DNS" -j DNAT --to-destination XX.XX.XX.XX:53
- [454:32360] -A zone_lan_prerouting -p udp -m udp --dport 53 -m comment --comment "!fw3: intercept-DNS" -j DNAT --to-destination XX.XX.XX.XX:53
- [531:37972] -A zone_wan_postrouting -m comment --comment "!fw3: Custom wan postrouting rule chain" -j postrouting_wan_rule
- [531:37972] -A zone_wan_postrouting -m comment --comment "!fw3" -j MASQUERADE
- [0:0] -A zone_wan_prerouting -m comment --comment "!fw3: Custom wan prerouting rule chain" -j prerouting_wan_rule
- COMMIT
- # Completed on Thu Sep 16 12:12:38 2021
- # Generated by iptables-save v1.8.7 on Thu Sep 16 12:12:38 2021
- *raw
- :PREROUTING ACCEPT [274925:196662661]
- :OUTPUT ACCEPT [113974:126599432]
- :zone_lan_helper - [0:0]
- [120991:122015957] -A PREROUTING -i br-lan -m comment --comment "!fw3: lan CT helper assignment" -j zone_lan_helper
- COMMIT
- # Completed on Thu Sep 16 12:12:38 2021
- # Generated by iptables-save v1.8.7 on Thu Sep 16 12:12:38 2021
- *mangle
- :PREROUTING ACCEPT [274929:196662821]
- :INPUT ACCEPT [91396:43576404]
- :FORWARD ACCEPT [183241:152518486]
- :OUTPUT ACCEPT [113981:126600344]
- :POSTROUTING ACCEPT [297220:279119586]
- :VPR_MARK0x010000 - [0:0]
- :VPR_MARK0x020000 - [0:0]
- :VPR_PREROUTING - [0:0]
- [296970:206565851] -A PREROUTING -m mark --mark 0x0/0xff0000 -j VPR_PREROUTING
- [0:0] -A FORWARD -o wan -p tcp -m tcp --tcp-flags SYN,RST SYN -m comment --comment "!fw3: Zone wan MTU fixing" -j TCPMSS --clamp-mss-to-pmtu
- [0:0] -A FORWARD -i wan -p tcp -m tcp --tcp-flags SYN,RST SYN -m comment --comment "!fw3: Zone wan MTU fixing" -j TCPMSS --clamp-mss-to-pmtu
- [611:34136] -A FORWARD -o WireGuard -p tcp -m tcp --tcp-flags SYN,RST SYN -m comment --comment "!fw3: Zone WireGuard MTU fixing" -j TCPMSS --clamp-mss-to-pmtu
- [618:33704] -A FORWARD -i WireGuard -p tcp -m tcp --tcp-flags SYN,RST SYN -m comment --comment "!fw3: Zone WireGuard MTU fixing" -j TCPMSS --clamp-mss-to-pmtu
- [0:0] -A VPR_MARK0x010000 -j MARK --set-xmark 0x10000/0xff0000
- [0:0] -A VPR_MARK0x010000 -j RETURN
- [296968:206564597] -A VPR_MARK0x020000 -j MARK --set-xmark 0x20000/0xff0000
- [296968:206564597] -A VPR_MARK0x020000 -j RETURN
- [0:0] -A VPR_PREROUTING -d 192.168.8.1/32 -m comment --comment Modem -g VPR_MARK0x010000
- [296968:206564597] -A VPR_PREROUTING -m comment --comment LAN -g VPR_MARK0x020000
- COMMIT
- # Completed on Thu Sep 16 12:12:38 2021
- # Generated by iptables-save v1.8.7 on Thu Sep 16 12:12:38 2021
- *filter
- :INPUT ACCEPT [0:0]
- :FORWARD DROP [0:0]
- :OUTPUT ACCEPT [0:0]
- :forwarding_WireGuard_rule - [0:0]
- :forwarding_lan_rule - [0:0]
- :forwarding_rule - [0:0]
- :forwarding_wan_rule - [0:0]
- :input_WireGuard_rule - [0:0]
- :input_lan_rule - [0:0]
- :input_rule - [0:0]
- :input_wan_rule - [0:0]
- :output_WireGuard_rule - [0:0]
- :output_lan_rule - [0:0]
- :output_rule - [0:0]
- :output_wan_rule - [0:0]
- :reject - [0:0]
- :syn_flood - [0:0]
- :zone_WireGuard_dest_ACCEPT - [0:0]
- :zone_WireGuard_dest_REJECT - [0:0]
- :zone_WireGuard_forward - [0:0]
- :zone_WireGuard_input - [0:0]
- :zone_WireGuard_output - [0:0]
- :zone_WireGuard_src_REJECT - [0:0]
- :zone_lan_dest_ACCEPT - [0:0]
- :zone_lan_forward - [0:0]
- :zone_lan_input - [0:0]
- :zone_lan_output - [0:0]
- :zone_lan_src_ACCEPT - [0:0]
- :zone_wan_dest_ACCEPT - [0:0]
- :zone_wan_dest_REJECT - [0:0]
- :zone_wan_forward - [0:0]
- :zone_wan_input - [0:0]
- :zone_wan_output - [0:0]
- :zone_wan_src_REJECT - [0:0]
- [680:66604] -A INPUT -i lo -m comment --comment "!fw3" -j ACCEPT
- [90725:43510160] -A INPUT -m comment --comment "!fw3: Custom input rule chain" -j input_rule
- [78339:40973168] -A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -m comment --comment "!fw3" -j ACCEPT
- [12:648] -A INPUT -p tcp -m tcp --tcp-flags FIN,SYN,RST,ACK SYN -m comment --comment "!fw3" -j syn_flood
- [12315:2533223] -A INPUT -i br-lan -m comment --comment "!fw3" -j zone_lan_input
- [41:1640] -A INPUT -i wan -m comment --comment "!fw3" -j zone_wan_input
- [30:2129] -A INPUT -i WireGuard -m comment --comment "!fw3" -j zone_WireGuard_input
- [183241:152518486] -A FORWARD -m comment --comment "!fw3: Custom forwarding rule chain" -j forwarding_rule
- [182068:152380060] -A FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -m comment --comment "!fw3" -j ACCEPT
- [1173:138426] -A FORWARD -i br-lan -m comment --comment "!fw3" -j zone_lan_forward
- [0:0] -A FORWARD -i wan -m comment --comment "!fw3" -j zone_wan_forward
- [0:0] -A FORWARD -i WireGuard -m comment --comment "!fw3" -j zone_WireGuard_forward
- [0:0] -A FORWARD -m comment --comment "!fw3" -j reject
- [680:66604] -A OUTPUT -o lo -m comment --comment "!fw3" -j ACCEPT
- [113319:126536784] -A OUTPUT -m comment --comment "!fw3: Custom output rule chain" -j output_rule
- [112763:126493514] -A OUTPUT -m conntrack --ctstate RELATED,ESTABLISHED -m comment --comment "!fw3" -j ACCEPT
- [21:5138] -A OUTPUT -o br-lan -m comment --comment "!fw3" -j zone_lan_output
- [535:38132] -A OUTPUT -o wan -m comment --comment "!fw3" -j zone_wan_output
- [0:0] -A OUTPUT -o WireGuard -m comment --comment "!fw3" -j zone_WireGuard_output
- [47:2185] -A reject -p tcp -m comment --comment "!fw3" -j REJECT --reject-with tcp-reset
- [24:1584] -A reject -m comment --comment "!fw3" -j REJECT --reject-with icmp-port-unreachable
- [12:648] -A syn_flood -p tcp -m tcp --tcp-flags FIN,SYN,RST,ACK SYN -m limit --limit 25/sec --limit-burst 50 -m comment --comment "!fw3" -j RETURN
- [0:0] -A syn_flood -m comment --comment "!fw3" -j DROP
- [13:3694] -A zone_WireGuard_dest_ACCEPT -o WireGuard -m conntrack --ctstate INVALID -m comment --comment "!fw3: Prevent NAT leakage" -j DROP
- [1160:134732] -A zone_WireGuard_dest_ACCEPT -o WireGuard -m comment --comment "!fw3" -j ACCEPT
- [0:0] -A zone_WireGuard_dest_REJECT -o WireGuard -m comment --comment "!fw3" -j reject
- [0:0] -A zone_WireGuard_forward -m comment --comment "!fw3: Custom WireGuard forwarding rule chain" -j forwarding_WireGuard_rule
- [0:0] -A zone_WireGuard_forward -m conntrack --ctstate DNAT -m comment --comment "!fw3: Accept port forwards" -j ACCEPT
- [0:0] -A zone_WireGuard_forward -m comment --comment "!fw3" -j zone_WireGuard_dest_REJECT
- [30:2129] -A zone_WireGuard_input -m comment --comment "!fw3: Custom WireGuard input rule chain" -j input_WireGuard_rule[0:0] -A zone_WireGuard_input -m conntrack --ctstate DNAT -m comment --comment "!fw3: Accept port redirections" -j ACCEPT
- [30:2129] -A zone_WireGuard_input -m comment --comment "!fw3" -j zone_WireGuard_src_REJECT
- [0:0] -A zone_WireGuard_output -m comment --comment "!fw3: Custom WireGuard output rule chain" -j output_WireGuard_rule
- [0:0] -A zone_WireGuard_output -m comment --comment "!fw3" -j zone_WireGuard_dest_ACCEPT
- [30:2129] -A zone_WireGuard_src_REJECT -i WireGuard -m comment --comment "!fw3" -j reject
- [21:5138] -A zone_lan_dest_ACCEPT -o br-lan -m comment --comment "!fw3" -j ACCEPT
- [1173:138426] -A zone_lan_forward -m comment --comment "!fw3: Custom lan forwarding rule chain" -j forwarding_lan_rule
- [1173:138426] -A zone_lan_forward -m comment --comment "!fw3: Zone lan to wan forwarding policy" -j zone_wan_dest_ACCEPT[1173:138426] -A zone_lan_forward -m comment --comment "!fw3: Zone lan to WireGuard forwarding policy" -j zone_WireGuard_dest_ACCEPT
- [0:0] -A zone_lan_forward -m conntrack --ctstate DNAT -m comment --comment "!fw3: Accept port forwards" -j ACCEPT
- [0:0] -A zone_lan_forward -m comment --comment "!fw3" -j zone_lan_dest_ACCEPT
- [12315:2533223] -A zone_lan_input -m comment --comment "!fw3: Custom lan input rule chain" -j input_lan_rule
- [0:0] -A zone_lan_input -m conntrack --ctstate DNAT -m comment --comment "!fw3: Accept port redirections" -j ACCEPT
- [12315:2533223] -A zone_lan_input -m comment --comment "!fw3" -j zone_lan_src_ACCEPT
- [21:5138] -A zone_lan_output -m comment --comment "!fw3: Custom lan output rule chain" -j output_lan_rule
- [21:5138] -A zone_lan_output -m comment --comment "!fw3" -j zone_lan_dest_ACCEPT
- [12315:2533223] -A zone_lan_src_ACCEPT -i br-lan -m conntrack --ctstate NEW,UNTRACKED -m comment --comment "!fw3" -j ACCEPT
- [9:360] -A zone_wan_dest_ACCEPT -o wan -m conntrack --ctstate INVALID -m comment --comment "!fw3: Prevent NAT leakage" -j DROP
- [526:37772] -A zone_wan_dest_ACCEPT -o wan -m comment --comment "!fw3" -j ACCEPT
- [0:0] -A zone_wan_dest_REJECT -o wan -m comment --comment "!fw3" -j reject
- [0:0] -A zone_wan_forward -m comment --comment "!fw3: Custom wan forwarding rule chain" -j forwarding_wan_rule
- [0:0] -A zone_wan_forward -p esp -m comment --comment "!fw3: Allow-IPSec-ESP" -j zone_lan_dest_ACCEPT
- [0:0] -A zone_wan_forward -p udp -m udp --dport 500 -m comment --comment "!fw3: Allow-ISAKMP" -j zone_lan_dest_ACCEPT
- [0:0] -A zone_wan_forward -m conntrack --ctstate DNAT -m comment --comment "!fw3: Accept port forwards" -j ACCEPT
- [0:0] -A zone_wan_forward -m comment --comment "!fw3" -j zone_wan_dest_REJECT
- [41:1640] -A zone_wan_input -m comment --comment "!fw3: Custom wan input rule chain" -j input_wan_rule
- [0:0] -A zone_wan_input -p udp -m udp --dport 68 -m comment --comment "!fw3: Allow-DHCP-Renew" -j ACCEPT
- [0:0] -A zone_wan_input -p icmp -m icmp --icmp-type 8 -m comment --comment "!fw3: Allow-Ping" -j ACCEPT
- [0:0] -A zone_wan_input -p igmp -m comment --comment "!fw3: Allow-IGMP" -j ACCEPT
- [0:0] -A zone_wan_input -m conntrack --ctstate DNAT -m comment --comment "!fw3: Accept port redirections" -j ACCEPT
- [41:1640] -A zone_wan_input -m comment --comment "!fw3" -j zone_wan_src_REJECT
- [535:38132] -A zone_wan_output -m comment --comment "!fw3: Custom wan output rule chain" -j output_wan_rule
- [535:38132] -A zone_wan_output -m comment --comment "!fw3" -j zone_wan_dest_ACCEPT
- [41:1640] -A zone_wan_src_REJECT -i wan -m comment --comment "!fw3" -j reject
- COMMIT
- # Completed on Thu Sep 16 12:12:38 2021
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement