Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- network.loopback=interface
- network.loopback.ifname='lo'
- network.loopback.proto='static'
- network.loopback.ipaddr='127.0.0.1'
- network.loopback.netmask='255.0.0.0'
- network.globals=globals
- network.globals.ula_prefix='fd83:36bb:699e::/48'
- network.wan=interface
- network.wan.ifname='eth1'
- network.wan.proto='dhcp'
- network.wan.dns='208.67.222.222' '208.67.220.220'
- network.wan.peerdns='0'
- network.wan6=interface
- network.wan6.ifname='eth1'
- network.wan6.proto='dhcpv6'
- network.wan6.reqprefix='auto'
- network.wan6.reqaddress='try'
- network.lan=interface
- network.lan.type='bridge'
- network.lan.ifname='eth0.1'
- network.lan.proto='static'
- network.lan.ipaddr='192.168.1.1'
- network.lan.netmask='255.255.255.0'
- network.lan.ip6assign='60'
- network.lan.ip6class='local'
- network.@switch[0]=switch
- network.@switch[0].name='switch0'
- network.@switch[0].reset='1'
- network.@switch[0].enable_vlan='1'
- network.@switch_vlan[0]=switch_vlan
- network.@switch_vlan[0].device='switch0'
- network.@switch_vlan[0].vlan='1'
- network.@switch_vlan[0].ports='1 2 3 4 0t'
- network.surfsharktun=interface
- network.surfsharktun.proto='none'
- network.surfsharktun.ifname='tun0'
- firewall.@defaults[0]=defaults
- firewall.@defaults[0].input='ACCEPT'
- firewall.@defaults[0].output='ACCEPT'
- firewall.@defaults[0].forward='REJECT'
- firewall.@defaults[0].synflood_protect='1'
- firewall.@zone[0]=zone
- firewall.@zone[0].name='lan'
- firewall.@zone[0].input='ACCEPT'
- firewall.@zone[0].output='ACCEPT'
- firewall.@zone[0].forward='ACCEPT'
- firewall.@zone[0].network='lan'
- firewall.@zone[1]=zone
- firewall.@zone[1].name='wan'
- firewall.@zone[1].input='REJECT'
- firewall.@zone[1].output='ACCEPT'
- firewall.@zone[1].forward='REJECT'
- firewall.@zone[1].mtu_fix='1'
- firewall.@zone[1].network='wan' 'wan6'
- firewall.@rule[0]=rule
- firewall.@rule[0].name='Allow-DHCP-Renew'
- firewall.@rule[0].src='wan'
- firewall.@rule[0].proto='udp'
- firewall.@rule[0].dest_port='68'
- firewall.@rule[0].target='ACCEPT'
- firewall.@rule[0].family='ipv4'
- firewall.@rule[1]=rule
- firewall.@rule[1].name='Allow-Ping'
- firewall.@rule[1].src='wan'
- firewall.@rule[1].proto='icmp'
- firewall.@rule[1].icmp_type='echo-request'
- firewall.@rule[1].family='ipv4'
- firewall.@rule[1].target='ACCEPT'
- firewall.@rule[2]=rule
- firewall.@rule[2].name='Allow-IGMP'
- firewall.@rule[2].src='wan'
- firewall.@rule[2].proto='igmp'
- firewall.@rule[2].family='ipv4'
- firewall.@rule[2].target='ACCEPT'
- firewall.@rule[3]=rule
- firewall.@rule[3].name='Allow-DHCPv6'
- firewall.@rule[3].src='wan'
- firewall.@rule[3].proto='udp'
- firewall.@rule[3].src_ip='fc00::/6'
- firewall.@rule[3].dest_ip='fc00::/6'
- firewall.@rule[3].dest_port='546'
- firewall.@rule[3].family='ipv6'
- firewall.@rule[3].target='ACCEPT'
- firewall.@rule[4]=rule
- firewall.@rule[4].name='Allow-MLD'
- firewall.@rule[4].src='wan'
- firewall.@rule[4].proto='icmp'
- firewall.@rule[4].src_ip='fe80::/10'
- firewall.@rule[4].icmp_type='130/0' '131/0' '132/0' '143/0'
- firewall.@rule[4].family='ipv6'
- firewall.@rule[4].target='ACCEPT'
- firewall.@rule[5]=rule
- firewall.@rule[5].name='Allow-ICMPv6-Input'
- firewall.@rule[5].src='wan'
- firewall.@rule[5].proto='icmp'
- firewall.@rule[5].icmp_type='echo-request' 'echo-reply' 'destination-unreachable' 'packet-too-big' 'time-exceeded' 'bad-header' 'unknown-header-type' 'router-solicitation' 'neighbour-solicitation' 'router-advertisement' 'neighbour-advertisement'
- firewall.@rule[5].limit='1000/sec'
- firewall.@rule[5].family='ipv6'
- firewall.@rule[5].target='ACCEPT'
- firewall.@rule[6]=rule
- firewall.@rule[6].name='Allow-ICMPv6-Forward'
- firewall.@rule[6].src='wan'
- firewall.@rule[6].dest='*'
- firewall.@rule[6].proto='icmp'
- firewall.@rule[6].icmp_type='echo-request' 'echo-reply' 'destination-unreachable' 'packet-too-big' 'time-exceeded' 'bad-header' 'unknown-header-type'
- firewall.@rule[6].limit='1000/sec'
- firewall.@rule[6].family='ipv6'
- firewall.@rule[6].target='ACCEPT'
- firewall.@rule[7]=rule
- firewall.@rule[7].name='Allow-IPSec-ESP'
- firewall.@rule[7].src='wan'
- firewall.@rule[7].dest='lan'
- firewall.@rule[7].proto='esp'
- firewall.@rule[7].target='ACCEPT'
- firewall.@rule[8]=rule
- firewall.@rule[8].name='Allow-ISAKMP'
- firewall.@rule[8].src='wan'
- firewall.@rule[8].dest='lan'
- firewall.@rule[8].dest_port='500'
- firewall.@rule[8].proto='udp'
- firewall.@rule[8].target='ACCEPT'
- firewall.@include[0]=include
- firewall.@include[0].path='/etc/firewall.user'
- firewall.@zone[2]=zone
- firewall.@zone[2].name='vpnfirewall'
- firewall.@zone[2].input='REJECT'
- firewall.@zone[2].output='ACCEPT'
- firewall.@zone[2].forward='REJECT'
- firewall.@zone[2].masq='1'
- firewall.@zone[2].mtu_fix='1'
- firewall.@zone[2].network='surfsharktun'
- firewall.@forwarding[0]=forwarding
- firewall.@forwarding[0].dest='vpnfirewall'
- firewall.@forwarding[0].src='lan'
- dhcp.@dnsmasq[0]=dnsmasq
- dhcp.@dnsmasq[0].domainneeded='1'
- dhcp.@dnsmasq[0].localise_queries='1'
- dhcp.@dnsmasq[0].rebind_protection='1'
- dhcp.@dnsmasq[0].rebind_localhost='1'
- dhcp.@dnsmasq[0].local='/lan/'
- dhcp.@dnsmasq[0].domain='lan'
- dhcp.@dnsmasq[0].expandhosts='1'
- dhcp.@dnsmasq[0].authoritative='1'
- dhcp.@dnsmasq[0].readethers='1'
- dhcp.@dnsmasq[0].leasefile='/tmp/dhcp.leases'
- dhcp.@dnsmasq[0].resolvfile='/tmp/resolv.conf.auto'
- dhcp.@dnsmasq[0].localservice='1'
- dhcp.lan=dhcp
- dhcp.lan.interface='lan'
- dhcp.lan.start='100'
- dhcp.lan.limit='150'
- dhcp.lan.leasetime='12h'
- dhcp.lan.dhcpv6='server'
- dhcp.lan.ra='server'
- dhcp.lan.ra_management='1'
- dhcp.wan=dhcp
- dhcp.wan.interface='wan'
- dhcp.wan.ignore='1'
- dhcp.odhcpd=odhcpd
- dhcp.odhcpd.maindhcp='0'
- dhcp.odhcpd.leasefile='/tmp/hosts/odhcpd'
- dhcp.odhcpd.leasetrigger='/usr/sbin/odhcpd-update'
- dhcp.odhcpd.loglevel='4'
- dhcp.@host[0]=host
- dhcp.@host[0].mac='XX:XX:XX:XX:XX:XX'
- dhcp.@host[0].name='LibreElec'
- dhcp.@host[0].dns='1'
- dhcp.@host[0].ip='192.168.1.116'
- dhcp.@host[1]=host
- dhcp.@host[1].name='Dell'
- dhcp.@host[1].dns='1'
- dhcp.@host[1].ip='192.168.1.101'
- dhcp.@host[1].mac='XX:XX:XX:XX:XX:XX'
- vpn-policy-routing.config=vpn-policy-routing
- vpn-policy-routing.config.verbosity='2'
- vpn-policy-routing.config.src_ipset='0'
- vpn-policy-routing.config.dest_ipset='0'
- vpn-policy-routing.config.resolver_ipset='dnsmasq.ipset'
- vpn-policy-routing.config.ignored_interface='vpnserver wgserver'
- vpn-policy-routing.config.boot_timeout='30'
- vpn-policy-routing.config.iptables_rule_option='append'
- vpn-policy-routing.config.procd_reload_delay='1'
- vpn-policy-routing.config.webui_show_ignore_target='0'
- vpn-policy-routing.config.webui_sorting='1'
- vpn-policy-routing.config.webui_supported_protocol='tcp' 'udp' 'tcp udp' 'icmp' 'all'
- vpn-policy-routing.config.ipv6_enabled='0'
- vpn-policy-routing.config.webui_enable_column='1'
- vpn-policy-routing.config.webui_protocol_column='1'
- vpn-policy-routing.config.webui_chain_column='1'
- vpn-policy-routing.config.strict_enforcement='0'
- vpn-policy-routing.config.enabled='0'
- vpn-policy-routing.@include[0]=include
- vpn-policy-routing.@include[0].path='/etc/vpn-policy-routing.netflix.user'
- vpn-policy-routing.@include[0].enabled='0'
- vpn-policy-routing.@include[1]=include
- vpn-policy-routing.@include[1].path='/etc/vpn-policy-routing.aws.user'
- vpn-policy-routing.@include[1].enabled='0'
- vpn-policy-routing.@policy[0]=policy
- vpn-policy-routing.@policy[0].name='Libreelec'
- vpn-policy-routing.@policy[0].src_addr='192.168.1.116'
- vpn-policy-routing.@policy[0].interface='surfsharktun'
- vpn-policy-routing.@policy[0].chain='FORWARD'
- vpn-policy-routing 0.3.2-20 running on OpenWrt 19.07.7.
- ============================================================
- Dnsmasq version 2.80 Copyright (c) 2000-2018 Simon Kelley
- Compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-nettlehash no-DNSSEC no-ID loop-detect inotify dumpfile
- ============================================================
- Routes/IP Rules
- default 10.8.8.1 128.0.0.0 UG 0 0 0 tun0
- default 5ad01001.bb.sky 0.0.0.0 UG 0 0 0 eth1
- ============================================================
- Current ipsets
- create vpnbypass hash:ip family inet hashsize 1024 maxelem 65536
- ============================================================
- Your support details have been logged to '/var/vpn-policy-routing-support'. [✓]
- 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
- link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
- inet 127.0.0.1/8 scope host lo
- valid_lft forever preferred_lft forever
- inet6 ::1/128 scope host
- valid_lft forever preferred_lft forever
- 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
- link/ether XX:XX:XX:XX:XX:XX brd ff:ff:ff:ff:ff:ff
- inet6 fe80:XXXXXXXXXXXXXXXXXXX scope link
- valid_lft forever preferred_lft forever
- 3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
- link/ether XX:XX:XX:XX:XX:XX brd ff:ff:ff:ff:ff:ff
- inet XXX.XXX.XXX.XXX/XX brd XXX.XXX.XXX.XXX scope global eth1
- valid_lft forever preferred_lft forever
- inet6 fe80:XXXXXXXXXXXXXXXXXXX scope link
- valid_lft forever preferred_lft forever
- 7: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
- link/ether XX:XX:XX:XX:XX:XX brd ff:ff:ff:ff:ff:ff
- inet 192.168.1.1/24 brd 192.168.1.255 scope global br-lan
- valid_lft forever preferred_lft forever
- inet6 fd83:XXXXXXXXXXXXXXXXXXX scope global noprefixroute
- valid_lft forever preferred_lft forever
- inet6 fe80:XXXXXXXXXXXXXXXXXXX scope link
- valid_lft forever preferred_lft forever
- 8: eth0.1@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-lan state UP group default qlen 1000
- link/ether XX:XX:XX:XX:XX:XX brd ff:ff:ff:ff:ff:ff
- 9: wlan1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-lan state UP group default qlen 1000
- link/ether XX:XX:XX:XX:XX:XX brd ff:ff:ff:ff:ff:ff
- inet6 fe80:XXXXXXXXXXXXXXXXXXX scope link
- valid_lft forever preferred_lft forever
- 10: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-lan state UP group default qlen 1000
- link/ether XX:XX:XX:XX:XX:XX brd ff:ff:ff:ff:ff:ff
- inet6 fe80:XXXXXXXXXXXXXXXXXXX scope link
- valid_lft forever preferred_lft forever
- 13: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 100
- link/none
- inet 10.8.8.4/24 brd 10.8.8.255 scope global tun0
- valid_lft forever preferred_lft forever
- inet6 fe80:XXXXXXXXXXXXXXXXXXX scope link stable-privacy
- valid_lft forever preferred_lft forever
- 0.0.0.0/1 via 10.8.8.1 dev tun0
- default via XXX.XXX.XXX.XXX dev eth1 proto static src XXX.XXX.XXX.XXX
- 10.8.8.0/24 dev tun0 proto kernel scope link src 10.8.8.4
- XXX.XXX.XXX.XXX/22 dev eth1 proto kernel scope link src XXX.XXX.XXX.XXX
- XXX.XXX.XXX.XXX via XXX.XXX.XXX.XXX dev eth1
- 128.0.0.0/1 via 10.8.8.1 dev tun0
- 192.168.1.0/24 dev br-lan proto kernel scope link src 192.168.1.1
- broadcast 10.8.8.0 dev tun0 table local proto kernel scope link src 10.8.8.4
- local 10.8.8.4 dev tun0 table local proto kernel scope host src 10.8.8.4
- broadcast 10.8.8.255 dev tun0 table local proto kernel scope link src 10.8.8.4
- broadcast XXX.XXX.XXX.XXX dev eth1 table local proto kernel scope link src XXX.XXX.XXX.XXX
- local XXX.XXX.XXX.XXX dev eth1 table local proto kernel scope host src XXX.XXX.XXX.XXX
- broadcast XXX.XXX.XXX.XXX dev eth1 table local proto kernel scope link src XXX.XXX.XXX.XXX
- broadcast 127.0.0.0 dev lo table local proto kernel scope link src 127.0.0.1
- local 127.0.0.0/8 dev lo table local proto kernel scope host src 127.0.0.1
- local 127.0.0.1 dev lo table local proto kernel scope host src 127.0.0.1
- broadcast 127.255.255.255 dev lo table local proto kernel scope link src 127.0.0.1
- broadcast 192.168.1.0 dev br-lan table local proto kernel scope link src 192.168.1.1
- local 192.168.1.1 dev br-lan table local proto kernel scope host src 192.168.1.1
- broadcast 192.168.1.255 dev br-lan table local proto kernel scope link src 192.168.1.1
- default from 2a02:XXXXXXXXXXXXXXXXXXX/56 via fe80:XXXXXXXXXXXXXXXXXXX dev eth1 proto static metric 512 pref medium
- unreachable 2a02:XXXXXXXXXXXXXXXXXXX/56 dev lo proto static metric 2147483647 error 4294967148 pref medium
- fd83:XXXXXXXXXXXXXXXXXXX/64 dev br-lan proto static metric 1024 pref medium
- unreachable fd83:XXXXXXXXXXXXXXXXXXX/48 dev lo proto static metric 2147483647 error 4294967148 pref medium
- fe80::/64 dev eth0 proto kernel metric 256 pref medium
- fe80::/64 dev br-lan proto kernel metric 256 pref medium
- fe80::/64 dev eth1 proto kernel metric 256 pref medium
- fe80::/64 dev wlan1 proto kernel metric 256 pref medium
- fe80::/64 dev wlan0 proto kernel metric 256 pref medium
- fe80::/64 dev tun0 proto kernel metric 256 pref medium
- local ::1 dev lo table local proto kernel metric 0 pref medium
- anycast fd83:XXXXXXXXXXXXXXXXXXX dev br-lan table local proto kernel metric 0 pref medium
- local fd83:XXXXXXXXXXXXXXXXXXX dev br-lan table local proto kernel metric 0 pref medium
- anycast fe80:: dev eth0 table local proto kernel metric 0 pref medium
- anycast fe80:: dev br-lan table local proto kernel metric 0 pref medium
- anycast fe80:: dev eth1 table local proto kernel metric 0 pref medium
- anycast fe80:: dev wlan1 table local proto kernel metric 0 pref medium
- anycast fe80:: dev wlan0 table local proto kernel metric 0 pref medium
- anycast fe80:: dev tun0 table local proto kernel metric 0 pref medium
- local fe80:XXXXXXXXXXXXXXXXXXX dev tun0 table local proto kernel metric 0 pref medium
- local fe80:XXXXXXXXXXXXXXXXXXX dev wlan0 table local proto kernel metric 0 pref medium
- local fe80:XXXXXXXXXXXXXXXXXXX dev eth0 table local proto kernel metric 0 pref medium
- local fe80:XXXXXXXXXXXXXXXXXXX dev br-lan table local proto kernel metric 0 pref medium
- local fe80:XXXXXXXXXXXXXXXXXXX dev wlan1 table local proto kernel metric 0 pref medium
- local fe80:XXXXXXXXXXXXXXXXXXX dev eth1 table local proto kernel metric 0 pref medium
- ff00::/8 dev eth0 table local proto kernel metric 256 pref medium
- ff00::/8 dev br-lan table local proto kernel metric 256 pref medium
- ff00::/8 dev eth1 table local proto kernel metric 256 pref medium
- ff00::/8 dev wlan1 table local proto kernel metric 256 pref medium
- ff00::/8 dev wlan0 table local proto kernel metric 256 pref medium
- ff00::/8 dev tun0 table local proto kernel metric 256 pref medium
- 0: from all lookup local
- 32766: from all lookup main
- 32767: from all lookup default
- 0: from all lookup local
- 32766: from all lookup main
- 4200000001: from all iif lo failed_policy
- 4200000003: from all iif eth1 failed_policy
- 4200000003: from all iif eth1 failed_policy
- 4200000007: from all iif br-lan failed_policy
- 4200000013: from all iif tun0 failed_policy
- # Generated by iptables-save v1.8.3 on Thu Aug 5 12:16:13 2021
- *nat
- :PREROUTING ACCEPT [43441:6950913]
- :INPUT ACCEPT [12149:834704]
- :OUTPUT ACCEPT [10980:778092]
- :POSTROUTING ACCEPT [137:18749]
- :postrouting_lan_rule - [0:0]
- :postrouting_rule - [0:0]
- :postrouting_vpnfirewall_rule - [0:0]
- :postrouting_wan_rule - [0:0]
- :prerouting_lan_rule - [0:0]
- :prerouting_rule - [0:0]
- :prerouting_vpnfirewall_rule - [0:0]
- :prerouting_wan_rule - [0:0]
- :zone_lan_postrouting - [0:0]
- :zone_lan_prerouting - [0:0]
- :zone_vpnfirewall_postrouting - [0:0]
- :zone_vpnfirewall_prerouting - [0:0]
- :zone_wan_postrouting - [0:0]
- :zone_wan_prerouting - [0:0]
- -A PREROUTING -m comment --comment "!fw3: Custom prerouting rule chain" -j prerouting_rule
- -A PREROUTING -i br-lan -m comment --comment "!fw3" -j zone_lan_prerouting
- -A PREROUTING -i eth1 -m comment --comment "!fw3" -j zone_wan_prerouting
- -A PREROUTING -i tun0 -m comment --comment "!fw3" -j zone_vpnfirewall_prerouting
- -A POSTROUTING -m comment --comment "!fw3: Custom postrouting rule chain" -j postrouting_rule
- -A POSTROUTING -o br-lan -m comment --comment "!fw3" -j zone_lan_postrouting
- -A POSTROUTING -o eth1 -m comment --comment "!fw3" -j zone_wan_postrouting
- -A POSTROUTING -o tun0 -m comment --comment "!fw3" -j zone_vpnfirewall_postrouting
- -A zone_lan_postrouting -m comment --comment "!fw3: Custom lan postrouting rule chain" -j postrouting_lan_rule
- -A zone_lan_prerouting -m comment --comment "!fw3: Custom lan prerouting rule chain" -j prerouting_lan_rule
- -A zone_vpnfirewall_postrouting -m comment --comment "!fw3: Custom vpnfirewall postrouting rule chain" -j postrouting_vpnfirewall_rule
- -A zone_vpnfirewall_postrouting -m comment --comment "!fw3" -j MASQUERADE
- -A zone_vpnfirewall_prerouting -m comment --comment "!fw3: Custom vpnfirewall prerouting rule chain" -j prerouting_vpnfirewall_rule
- -A zone_wan_postrouting -m comment --comment "!fw3: Custom wan postrouting rule chain" -j postrouting_wan_rule
- -A zone_wan_prerouting -m comment --comment "!fw3: Custom wan prerouting rule chain" -j prerouting_wan_rule
- COMMIT
- # Completed on Thu Aug 5 12:16:13 2021
- # Generated by iptables-save v1.8.3 on Thu Aug 5 12:16:13 2021
- *mangle
- :PREROUTING ACCEPT [37166933:43179946576]
- :INPUT ACCEPT [16563465:21975733291]
- :FORWARD ACCEPT [20583701:21200176462]
- :OUTPUT ACCEPT [4106306:483441543]
- :POSTROUTING ACCEPT [24687378:21683487117]
- -A FORWARD -o eth1 -p tcp -m tcp --tcp-flags SYN,RST SYN -m comment --comment "!fw3: Zone wan MTU fixing" -j TCPMSS --clamp-mss-to-pmtu
- -A FORWARD -i eth1 -p tcp -m tcp --tcp-flags SYN,RST SYN -m comment --comment "!fw3: Zone wan MTU fixing" -j TCPMSS --clamp-mss-to-pmtu
- -A FORWARD -o tun0 -p tcp -m tcp --tcp-flags SYN,RST SYN -m comment --comment "!fw3: Zone vpnfirewall MTU fixing" -j TCPMSS --clamp-mss-to-pmtu
- -A FORWARD -i tun0 -p tcp -m tcp --tcp-flags SYN,RST SYN -m comment --comment "!fw3: Zone vpnfirewall MTU fixing" -j TCPMSS --clamp-mss-to-pmtu
- COMMIT
- # Completed on Thu Aug 5 12:16:14 2021
- # Generated by iptables-save v1.8.3 on Thu Aug 5 12:16:14 2021
- *filter
- :INPUT ACCEPT [0:0]
- :FORWARD DROP [0:0]
- :OUTPUT ACCEPT [0:0]
- :forwarding_lan_rule - [0:0]
- :forwarding_rule - [0:0]
- :forwarding_vpnfirewall_rule - [0:0]
- :forwarding_wan_rule - [0:0]
- :input_lan_rule - [0:0]
- :input_rule - [0:0]
- :input_vpnfirewall_rule - [0:0]
- :input_wan_rule - [0:0]
- :output_lan_rule - [0:0]
- :output_rule - [0:0]
- :output_vpnfirewall_rule - [0:0]
- :output_wan_rule - [0:0]
- :reject - [0:0]
- :syn_flood - [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_vpnfirewall_dest_ACCEPT - [0:0]
- :zone_vpnfirewall_dest_REJECT - [0:0]
- :zone_vpnfirewall_forward - [0:0]
- :zone_vpnfirewall_input - [0:0]
- :zone_vpnfirewall_output - [0:0]
- :zone_vpnfirewall_src_REJECT - [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]
- -A INPUT -i lo -m comment --comment "!fw3" -j ACCEPT
- -A INPUT -m comment --comment "!fw3: Custom input rule chain" -j input_rule
- -A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -m comment --comment "!fw3" -j ACCEPT
- -A INPUT -p tcp -m tcp --tcp-flags FIN,SYN,RST,ACK SYN -m comment --comment "!fw3" -j syn_flood
- -A INPUT -i br-lan -m comment --comment "!fw3" -j zone_lan_input
- -A INPUT -i eth1 -m comment --comment "!fw3" -j zone_wan_input
- -A INPUT -i tun0 -m comment --comment "!fw3" -j zone_vpnfirewall_input
- -A FORWARD -m comment --comment "!fw3: Custom forwarding rule chain" -j forwarding_rule
- -A FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -m comment --comment "!fw3" -j ACCEPT
- -A FORWARD -i br-lan -m comment --comment "!fw3" -j zone_lan_forward
- -A FORWARD -i eth1 -m comment --comment "!fw3" -j zone_wan_forward
- -A FORWARD -i tun0 -m comment --comment "!fw3" -j zone_vpnfirewall_forward
- -A FORWARD -m comment --comment "!fw3" -j reject
- -A OUTPUT -o lo -m comment --comment "!fw3" -j ACCEPT
- -A OUTPUT -m comment --comment "!fw3: Custom output rule chain" -j output_rule
- -A OUTPUT -m conntrack --ctstate RELATED,ESTABLISHED -m comment --comment "!fw3" -j ACCEPT
- -A OUTPUT -o br-lan -m comment --comment "!fw3" -j zone_lan_output
- -A OUTPUT -o eth1 -m comment --comment "!fw3" -j zone_wan_output
- -A OUTPUT -o tun0 -m comment --comment "!fw3" -j zone_vpnfirewall_output
- -A reject -p tcp -m comment --comment "!fw3" -j REJECT --reject-with tcp-reset
- -A reject -m comment --comment "!fw3" -j REJECT --reject-with icmp-port-unreachable
- -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
- -A syn_flood -m comment --comment "!fw3" -j DROP
- -A zone_lan_dest_ACCEPT -o br-lan -m comment --comment "!fw3" -j ACCEPT
- -A zone_lan_forward -m comment --comment "!fw3: Custom lan forwarding rule chain" -j forwarding_lan_rule
- -A zone_lan_forward -m comment --comment "!fw3: Zone lan to vpnfirewall forwarding policy" -j zone_vpnfirewall_dest_ACCEPT
- -A zone_lan_forward -m conntrack --ctstate DNAT -m comment --comment "!fw3: Accept port forwards" -j ACCEPT
- -A zone_lan_forward -m comment --comment "!fw3" -j zone_lan_dest_ACCEPT
- -A zone_lan_input -m comment --comment "!fw3: Custom lan input rule chain" -j input_lan_rule
- -A zone_lan_input -m conntrack --ctstate DNAT -m comment --comment "!fw3: Accept port redirections" -j ACCEPT
- -A zone_lan_input -m comment --comment "!fw3" -j zone_lan_src_ACCEPT
- -A zone_lan_output -m comment --comment "!fw3: Custom lan output rule chain" -j output_lan_rule
- -A zone_lan_output -m comment --comment "!fw3" -j zone_lan_dest_ACCEPT
- -A zone_lan_src_ACCEPT -i br-lan -m conntrack --ctstate NEW,UNTRACKED -m comment --comment "!fw3" -j ACCEPT
- -A zone_vpnfirewall_dest_ACCEPT -o tun0 -m conntrack --ctstate INVALID -m comment --comment "!fw3: Prevent NAT leakage" -j DROP
- -A zone_vpnfirewall_dest_ACCEPT -o tun0 -m comment --comment "!fw3" -j ACCEPT
- -A zone_vpnfirewall_dest_REJECT -o tun0 -m comment --comment "!fw3" -j reject
- -A zone_vpnfirewall_forward -m comment --comment "!fw3: Custom vpnfirewall forwarding rule chain" -j forwarding_vpnfirewall_rule
- -A zone_vpnfirewall_forward -m conntrack --ctstate DNAT -m comment --comment "!fw3: Accept port forwards" -j ACCEPT
- -A zone_vpnfirewall_forward -m comment --comment "!fw3" -j zone_vpnfirewall_dest_REJECT
- -A zone_vpnfirewall_input -m comment --comment "!fw3: Custom vpnfirewall input rule chain" -j input_vpnfirewall_rule
- -A zone_vpnfirewall_input -m conntrack --ctstate DNAT -m comment --comment "!fw3: Accept port redirections" -j ACCEPT
- -A zone_vpnfirewall_input -m comment --comment "!fw3" -j zone_vpnfirewall_src_REJECT
- -A zone_vpnfirewall_output -m comment --comment "!fw3: Custom vpnfirewall output rule chain" -j output_vpnfirewall_rule
- -A zone_vpnfirewall_output -m comment --comment "!fw3" -j zone_vpnfirewall_dest_ACCEPT
- -A zone_vpnfirewall_src_REJECT -i tun0 -m comment --comment "!fw3" -j reject
- -A zone_wan_dest_ACCEPT -o eth1 -m comment --comment "!fw3" -j ACCEPT
- -A zone_wan_dest_REJECT -o eth1 -m comment --comment "!fw3" -j reject
- -A zone_wan_forward -m comment --comment "!fw3: Custom wan forwarding rule chain" -j forwarding_wan_rule
- -A zone_wan_forward -p esp -m comment --comment "!fw3: Allow-IPSec-ESP" -j zone_lan_dest_ACCEPT
- -A zone_wan_forward -p udp -m udp --dport 500 -m comment --comment "!fw3: Allow-ISAKMP" -j zone_lan_dest_ACCEPT
- -A zone_wan_forward -m conntrack --ctstate DNAT -m comment --comment "!fw3: Accept port forwards" -j ACCEPT
- -A zone_wan_forward -m comment --comment "!fw3" -j zone_wan_dest_REJECT
- -A zone_wan_input -m comment --comment "!fw3: Custom wan input rule chain" -j input_wan_rule
- -A zone_wan_input -p udp -m udp --dport 68 -m comment --comment "!fw3: Allow-DHCP-Renew" -j ACCEPT
- -A zone_wan_input -p icmp -m icmp --icmp-type 8 -m comment --comment "!fw3: Allow-Ping" -j ACCEPT
- -A zone_wan_input -p igmp -m comment --comment "!fw3: Allow-IGMP" -j ACCEPT
- -A zone_wan_input -m conntrack --ctstate DNAT -m comment --comment "!fw3: Accept port redirections" -j ACCEPT
- -A zone_wan_input -m comment --comment "!fw3" -j zone_wan_src_REJECT
- -A zone_wan_output -m comment --comment "!fw3: Custom wan output rule chain" -j output_wan_rule
- -A zone_wan_output -m comment --comment "!fw3" -j zone_wan_dest_ACCEPT
- -A zone_wan_src_REJECT -i eth1 -m comment --comment "!fw3" -j reject
- COMMIT
- # Completed on Thu Aug 5 12:16:14 2021
- # Generated by ip6tables-save v1.8.3 on Thu Aug 5 12:16:14 2021
- *mangle
- :PREROUTING ACCEPT [11768:1510478]
- :INPUT ACCEPT [8845:722266]
- :FORWARD ACCEPT [0:0]
- :OUTPUT ACCEPT [9079:1088321]
- :POSTROUTING ACCEPT [9079:1088321]
- -A FORWARD -o eth1 -p tcp -m tcp --tcp-flags SYN,RST SYN -m comment --comment "!fw3: Zone wan MTU fixing" -j TCPMSS --clamp-mss-to-pmtu
- -A FORWARD -i eth1 -p tcp -m tcp --tcp-flags SYN,RST SYN -m comment --comment "!fw3: Zone wan MTU fixing" -j TCPMSS --clamp-mss-to-pmtu
- -A FORWARD -o tun0 -p tcp -m tcp --tcp-flags SYN,RST SYN -m comment --comment "!fw3: Zone vpnfirewall MTU fixing" -j TCPMSS --clamp-mss-to-pmtu
- -A FORWARD -i tun0 -p tcp -m tcp --tcp-flags SYN,RST SYN -m comment --comment "!fw3: Zone vpnfirewall MTU fixing" -j TCPMSS --clamp-mss-to-pmtu
- COMMIT
- # Completed on Thu Aug 5 12:16:14 2021
- # Generated by ip6tables-save v1.8.3 on Thu Aug 5 12:16:14 2021
- *filter
- :INPUT ACCEPT [0:0]
- :FORWARD DROP [0:0]
- :OUTPUT ACCEPT [0:0]
- :forwarding_lan_rule - [0:0]
- :forwarding_rule - [0:0]
- :forwarding_vpnfirewall_rule - [0:0]
- :forwarding_wan_rule - [0:0]
- :input_lan_rule - [0:0]
- :input_rule - [0:0]
- :input_vpnfirewall_rule - [0:0]
- :input_wan_rule - [0:0]
- :output_lan_rule - [0:0]
- :output_rule - [0:0]
- :output_vpnfirewall_rule - [0:0]
- :output_wan_rule - [0:0]
- :reject - [0:0]
- :syn_flood - [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_vpnfirewall_dest_ACCEPT - [0:0]
- :zone_vpnfirewall_dest_REJECT - [0:0]
- :zone_vpnfirewall_forward - [0:0]
- :zone_vpnfirewall_input - [0:0]
- :zone_vpnfirewall_output - [0:0]
- :zone_vpnfirewall_src_REJECT - [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]
- -A INPUT -i lo -m comment --comment "!fw3" -j ACCEPT
- -A INPUT -m comment --comment "!fw3: Custom input rule chain" -j input_rule
- -A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -m comment --comment "!fw3" -j ACCEPT
- -A INPUT -p tcp -m tcp --tcp-flags FIN,SYN,RST,ACK SYN -m comment --comment "!fw3" -j syn_flood
- -A INPUT -i br-lan -m comment --comment "!fw3" -j zone_lan_input
- -A INPUT -i eth1 -m comment --comment "!fw3" -j zone_wan_input
- -A INPUT -i tun0 -m comment --comment "!fw3" -j zone_vpnfirewall_input
- -A FORWARD -m comment --comment "!fw3: Custom forwarding rule chain" -j forwarding_rule
- -A FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -m comment --comment "!fw3" -j ACCEPT
- -A FORWARD -i br-lan -m comment --comment "!fw3" -j zone_lan_forward
- -A FORWARD -i eth1 -m comment --comment "!fw3" -j zone_wan_forward
- -A FORWARD -i tun0 -m comment --comment "!fw3" -j zone_vpnfirewall_forward
- -A FORWARD -m comment --comment "!fw3" -j reject
- -A OUTPUT -o lo -m comment --comment "!fw3" -j ACCEPT
- -A OUTPUT -m comment --comment "!fw3: Custom output rule chain" -j output_rule
- -A OUTPUT -m conntrack --ctstate RELATED,ESTABLISHED -m comment --comment "!fw3" -j ACCEPT
- -A OUTPUT -o br-lan -m comment --comment "!fw3" -j zone_lan_output
- -A OUTPUT -o eth1 -m comment --comment "!fw3" -j zone_wan_output
- -A OUTPUT -o tun0 -m comment --comment "!fw3" -j zone_vpnfirewall_output
- -A reject -p tcp -m comment --comment "!fw3" -j REJECT --reject-with tcp-reset
- -A reject -m comment --comment "!fw3" -j REJECT --reject-with icmp6-port-unreachable
- -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
- -A syn_flood -m comment --comment "!fw3" -j DROP
- -A zone_lan_dest_ACCEPT -o br-lan -m comment --comment "!fw3" -j ACCEPT
- -A zone_lan_forward -m comment --comment "!fw3: Custom lan forwarding rule chain" -j forwarding_lan_rule
- -A zone_lan_forward -m comment --comment "!fw3: Zone lan to vpnfirewall forwarding policy" -j zone_vpnfirewall_dest_ACCEPT
- -A zone_lan_forward -m comment --comment "!fw3" -j zone_lan_dest_ACCEPT
- -A zone_lan_input -m comment --comment "!fw3: Custom lan input rule chain" -j input_lan_rule
- -A zone_lan_input -m comment --comment "!fw3" -j zone_lan_src_ACCEPT
- -A zone_lan_output -m comment --comment "!fw3: Custom lan output rule chain" -j output_lan_rule
- -A zone_lan_output -m comment --comment "!fw3" -j zone_lan_dest_ACCEPT
- -A zone_lan_src_ACCEPT -i br-lan -m conntrack --ctstate NEW,UNTRACKED -m comment --comment "!fw3" -j ACCEPT
- -A zone_vpnfirewall_dest_ACCEPT -o tun0 -m conntrack --ctstate INVALID -m comment --comment "!fw3: Prevent NAT leakage" -j DROP
- -A zone_vpnfirewall_dest_ACCEPT -o tun0 -m comment --comment "!fw3" -j ACCEPT
- -A zone_vpnfirewall_dest_REJECT -o tun0 -m comment --comment "!fw3" -j reject
- -A zone_vpnfirewall_forward -m comment --comment "!fw3: Custom vpnfirewall forwarding rule chain" -j forwarding_vpnfirewall_rule
- -A zone_vpnfirewall_forward -m comment --comment "!fw3" -j zone_vpnfirewall_dest_REJECT
- -A zone_vpnfirewall_input -m comment --comment "!fw3: Custom vpnfirewall input rule chain" -j input_vpnfirewall_rule
- -A zone_vpnfirewall_input -m comment --comment "!fw3" -j zone_vpnfirewall_src_REJECT
- -A zone_vpnfirewall_output -m comment --comment "!fw3: Custom vpnfirewall output rule chain" -j output_vpnfirewall_rule
- -A zone_vpnfirewall_output -m comment --comment "!fw3" -j zone_vpnfirewall_dest_ACCEPT
- -A zone_vpnfirewall_src_REJECT -i tun0 -m comment --comment "!fw3" -j reject
- -A zone_wan_dest_ACCEPT -o eth1 -m comment --comment "!fw3" -j ACCEPT
- -A zone_wan_dest_REJECT -o eth1 -m comment --comment "!fw3" -j reject
- -A zone_wan_forward -m comment --comment "!fw3: Custom wan forwarding rule chain" -j forwarding_wan_rule
- -A zone_wan_forward -p ipv6-icmp -m icmp6 --icmpv6-type 128 -m limit --limit 1000/sec -m comment --comment "!fw3: Allow-ICMPv6-Forward" -j ACCEPT
- -A zone_wan_forward -p ipv6-icmp -m icmp6 --icmpv6-type 129 -m limit --limit 1000/sec -m comment --comment "!fw3: Allow-ICMPv6-Forward" -j ACCEPT
- -A zone_wan_forward -p ipv6-icmp -m icmp6 --icmpv6-type 1 -m limit --limit 1000/sec -m comment --comment "!fw3: Allow-ICMPv6-Forward" -j ACCEPT
- -A zone_wan_forward -p ipv6-icmp -m icmp6 --icmpv6-type 2 -m limit --limit 1000/sec -m comment --comment "!fw3: Allow-ICMPv6-Forward" -j ACCEPT
- -A zone_wan_forward -p ipv6-icmp -m icmp6 --icmpv6-type 3 -m limit --limit 1000/sec -m comment --comment "!fw3: Allow-ICMPv6-Forward" -j ACCEPT
- -A zone_wan_forward -p ipv6-icmp -m icmp6 --icmpv6-type 4/0 -m limit --limit 1000/sec -m comment --comment "!fw3: Allow-ICMPv6-Forward" -j ACCEPT
- -A zone_wan_forward -p ipv6-icmp -m icmp6 --icmpv6-type 4/1 -m limit --limit 1000/sec -m comment --comment "!fw3: Allow-ICMPv6-Forward" -j ACCEPT
- -A zone_wan_forward -p esp -m comment --comment "!fw3: Allow-IPSec-ESP" -j zone_lan_dest_ACCEPT
- -A zone_wan_forward -p udp -m udp --dport 500 -m comment --comment "!fw3: Allow-ISAKMP" -j zone_lan_dest_ACCEPT
- -A zone_wan_forward -m comment --comment "!fw3" -j zone_wan_dest_REJECT
- -A zone_wan_input -m comment --comment "!fw3: Custom wan input rule chain" -j input_wan_rule
- -A zone_wan_input -s fc00::/6 -d fc00::/6 -p udp -m udp --dport 546 -m comment --comment "!fw3: Allow-DHCPv6" -j ACCEPT
- -A zone_wan_input -s fe80::/10 -p ipv6-icmp -m icmp6 --icmpv6-type 130/0 -m comment --comment "!fw3: Allow-MLD" -j ACCEPT
- -A zone_wan_input -s fe80::/10 -p ipv6-icmp -m icmp6 --icmpv6-type 131/0 -m comment --comment "!fw3: Allow-MLD" -j ACCEPT
- -A zone_wan_input -s fe80::/10 -p ipv6-icmp -m icmp6 --icmpv6-type 132/0 -m comment --comment "!fw3: Allow-MLD" -j ACCEPT
- -A zone_wan_input -s fe80::/10 -p ipv6-icmp -m icmp6 --icmpv6-type 143/0 -m comment --comment "!fw3: Allow-MLD" -j ACCEPT
- -A zone_wan_input -p ipv6-icmp -m icmp6 --icmpv6-type 128 -m limit --limit 1000/sec -m comment --comment "!fw3: Allow-ICMPv6-Input" -j ACCEPT
- -A zone_wan_input -p ipv6-icmp -m icmp6 --icmpv6-type 129 -m limit --limit 1000/sec -m comment --comment "!fw3: Allow-ICMPv6-Input" -j ACCEPT
- -A zone_wan_input -p ipv6-icmp -m icmp6 --icmpv6-type 1 -m limit --limit 1000/sec -m comment --comment "!fw3: Allow-ICMPv6-Input" -j ACCEPT
- -A zone_wan_input -p ipv6-icmp -m icmp6 --icmpv6-type 2 -m limit --limit 1000/sec -m comment --comment "!fw3: Allow-ICMPv6-Input" -j ACCEPT
- -A zone_wan_input -p ipv6-icmp -m icmp6 --icmpv6-type 3 -m limit --limit 1000/sec -m comment --comment "!fw3: Allow-ICMPv6-Input" -j ACCEPT
- -A zone_wan_input -p ipv6-icmp -m icmp6 --icmpv6-type 4/0 -m limit --limit 1000/sec -m comment --comment "!fw3: Allow-ICMPv6-Input" -j ACCEPT
- -A zone_wan_input -p ipv6-icmp -m icmp6 --icmpv6-type 4/1 -m limit --limit 1000/sec -m comment --comment "!fw3: Allow-ICMPv6-Input" -j ACCEPT
- -A zone_wan_input -p ipv6-icmp -m icmp6 --icmpv6-type 133 -m limit --limit 1000/sec -m comment --comment "!fw3: Allow-ICMPv6-Input" -j ACCEPT
- -A zone_wan_input -p ipv6-icmp -m icmp6 --icmpv6-type 135 -m limit --limit 1000/sec -m comment --comment "!fw3: Allow-ICMPv6-Input" -j ACCEPT
- -A zone_wan_input -p ipv6-icmp -m icmp6 --icmpv6-type 134 -m limit --limit 1000/sec -m comment --comment "!fw3: Allow-ICMPv6-Input" -j ACCEPT
- -A zone_wan_input -p ipv6-icmp -m icmp6 --icmpv6-type 136 -m limit --limit 1000/sec -m comment --comment "!fw3: Allow-ICMPv6-Input" -j ACCEPT
- -A zone_wan_input -m comment --comment "!fw3" -j zone_wan_src_REJECT
- -A zone_wan_output -m comment --comment "!fw3: Custom wan output rule chain" -j output_wan_rule
- -A zone_wan_output -m comment --comment "!fw3" -j zone_wan_dest_ACCEPT
- -A zone_wan_src_REJECT -i eth1 -m comment --comment "!fw3" -j reject
- COMMIT
- # Completed on Thu Aug 5 12:16:14 2021
- ==> /etc/resolv.conf <==
- search lan
- nameserver 127.0.0.1
- ==> /tmp/resolv.conf <==
- search lan
- nameserver 127.0.0.1
- ==> /tmp/resolv.conf.auto <==
- # Interface wan
- nameserver 208.67.222.222
- nameserver 208.67.220.220
- head: /tmp/resolv.*/*: No such file or directory
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement