Temat: Jak ustawić publiczny adres ip

Witam

A więc tak mam router Huawei EchoLife HG553  OpenWrt Chaos Calmer 15.05 / LuCI i mode na usb e3372 który po podłączeniu ma adres 192.168.8.1  sieć Play dzwoniłem o uruchomienie usługi adres publiczny wpisałem w modemie APN pro.plusgsm.pl jak mi podali i teraz nie wiem co dalej zrobić chce dostawać się do routera zdalnie w późniejszym czasie chce podłączyć jakąś pamieć dysk i udostępniać pliki jak na ftp .

2

Odp: Jak ustawić publiczny adres ip

Masz hilinka, więc: http://eko.one.pl/forum/viewtopic.php?p … 17#p138717

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

3

Odp: Jak ustawić publiczny adres ip

root@OpenWrt:~# upnpc -s
upnpc : miniupnpc library test client. (c) 2005-2013 Thomas Bernard
Go to http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
for more information.
No IGD UPnP Device found on the network !

4

Odp: Jak ustawić publiczny adres ip

Albo nie zrobiłeś firewalla albo firmware który masz w modemie po prostu tego nie ma.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

5

Odp: Jak ustawić publiczny adres ip

zatrzymałem firewalla i działa . Ale teraz nie wiem co jest źle

6

Odp: Jak ustawić publiczny adres ip

Po dodaniu reguły zrestartowałeś firewalla?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

7

Odp: Jak ustawić publiczny adres ip

To jest ta reguła :

# uci add firewall rule
# uci set firewall.@rule[-1].src=wan
# uci set firewall.@rule[-1].target=ACCEPT
# uci set firewall.@rule[-1].proto=tcp
# uci set firewall.@rule[-1].src_port=1900
# uci commit firewall


# /etc/init.d/firewall reload  i tu jest restart firewall ?

8

Odp: Jak ustawić publiczny adres ip

Ale bez # wpisujesz?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

9 (edytowany przez marcinn18 2016-06-16 21:36:54)

Odp: Jak ustawić publiczny adres ip

tak .

cos takiego na początku mam :
root@OpenWrt:~# uci add firewall rule
cfg2092bd

adres mam zmieniony na 192.168.2.1 bo mam jeszcze jeden modem podłączony do niego z adresem 192.168.1.1 ale on jest wyłączony teraz w interfejsach .Modem ma na dachu także nić nie mogę fizycznie odłączyć

10

Odp: Jak ustawić publiczny adres ip

W /etc/config/firewall zobacz czy masz dodaną regułę. Jak tak to dobrze.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

11

Odp: Jak ustawić publiczny adres ip

config defaults
    option syn_flood '1'
    option input 'ACCEPT'
    option output 'ACCEPT'
    option forward 'REJECT'

config zone
    option name 'lan'
    option input 'ACCEPT'
    option output 'ACCEPT'
    option forward 'ACCEPT'
    option network 'lan'

config zone
    option name 'wan'
    option input 'REJECT'
    option output 'ACCEPT'
    option forward 'REJECT'
    option masq '1'
    option mtu_fix '1'
    option network 'wan wan6 Plus Play'

config forwarding
    option src 'lan'
    option dest 'wan'

config rule
    option name 'Allow-DHCP-Renew'
    option src 'wan'
    option proto 'udp'
    option dest_port '68'
    option target 'ACCEPT'
    option family 'ipv4'

config rule
    option name 'Allow-Ping'
    option src 'wan'
    option proto 'icmp'
    option icmp_type 'echo-request'
    option family 'ipv4'
    option target 'ACCEPT'

config rule
    option name 'Allow-IGMP'
    option src 'wan'
    option proto 'igmp'
    option family 'ipv4'
    option target 'ACCEPT'

config rule
    option name 'Allow-DHCPv6'
    option src 'wan'
    option proto 'udp'
    option src_ip 'fe80::/10'
    option src_port '547'
    option dest_ip 'fe80::/10'
    option dest_port '546'
    option family 'ipv6'
    option target 'ACCEPT'

config rule
    option name 'Allow-MLD'
    option src 'wan'
    option proto 'icmp'
    option src_ip 'fe80::/10'
    list icmp_type '130/0'
    list icmp_type '131/0'
    list icmp_type '132/0'
    list icmp_type '143/0'
    option family 'ipv6'
    option target 'ACCEPT'

config rule
    option name 'Allow-ICMPv6-Input'
    option src 'wan'
    option proto 'icmp'
    list icmp_type 'echo-request'
    list icmp_type 'echo-reply'
    list icmp_type 'destination-unreachable'
    list icmp_type 'packet-too-big'
    list icmp_type 'time-exceeded'
    list icmp_type 'bad-header'
    list icmp_type 'unknown-header-type'
    list icmp_type 'router-solicitation'
    list icmp_type 'neighbour-solicitation'
    list icmp_type 'router-advertisement'
    list icmp_type 'neighbour-advertisement'
    option limit '1000/sec'
    option family 'ipv6'
    option target 'ACCEPT'

config rule
    option name 'Allow-ICMPv6-Forward'
    option src 'wan'
    option dest '*'
    option proto 'icmp'
    list icmp_type 'echo-request'
    list icmp_type 'echo-reply'
    list icmp_type 'destination-unreachable'
    list icmp_type 'packet-too-big'
    list icmp_type 'time-exceeded'
    list icmp_type 'bad-header'
    list icmp_type 'unknown-header-type'
    option limit '1000/sec'
    option family 'ipv6'
    option target 'ACCEPT'

config include
    option path '/etc/firewall.user'

config rule
    option src 'wan'
    option dest 'lan'
    option proto 'esp'
    option target 'ACCEPT'

config rule
    option src 'wan'
    option dest 'lan'
    option dest_port '500'
    option proto 'udp'
    option target 'ACCEPT'

config rule
    option src 'wan'
    option target 'ACCEPT'
    option proto 'tcp'
    option src_port '1900'

12

Odp: Jak ustawić publiczny adres ip

Aleee. Ty nie masz modemu na  sieci wan tylko Plus lub Play, więc regułę masz zrobić na Plus lub Play a nie wan.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

13

Odp: Jak ustawić publiczny adres ip

robię na plus i nadal to samo mam tylko nazwę interfejsu zmienić z wan na plus

config include
    option path '/etc/firewall.user'

config rule
    option src 'wan'
    option dest 'lan'
    option proto 'esp'
    option target 'ACCEPT'

config rule
    option src 'wan'
    option dest 'lan'
    option dest_port '500'
    option proto 'udp'
    option target 'ACCEPT'

config rule
    option src 'eth1'
    option target 'ACCEPT'
    option proto 'tcp'
    option src_port '1900'

config rule
    option src 'PLUS'
    option target 'ACCEPT'
    option proto 'tcp'
    option src_port '1900'

14

Odp: Jak ustawić publiczny adres ip

Plus nie PLUS. I poprzednia reguła jest w sumie zła.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

15

Odp: Jak ustawić publiczny adres ip

config defaults
    option syn_flood '1'
    option input 'ACCEPT'
    option output 'ACCEPT'
    option forward 'REJECT'

config zone
    option name 'lan'
    option input 'ACCEPT'
    option output 'ACCEPT'
    option forward 'ACCEPT'
    option network 'lan'

config zone
    option name 'wan'
    option input 'REJECT'
    option output 'ACCEPT'
    option forward 'REJECT'
    option masq '1'
    option mtu_fix '1'
    option network 'wan wan6 Plus Play'

config forwarding
    option src 'lan'
    option dest 'wan'

config rule
    option name 'Allow-DHCP-Renew'
    option src 'wan'
    option proto 'udp'
    option dest_port '68'
    option target 'ACCEPT'
    option family 'ipv4'

config rule
    option name 'Allow-Ping'
    option src 'wan'
    option proto 'icmp'
    option icmp_type 'echo-request'
    option family 'ipv4'
    option target 'ACCEPT'

config rule
    option name 'Allow-IGMP'
    option src 'wan'
    option proto 'igmp'
    option family 'ipv4'
    option target 'ACCEPT'

config rule
    option name 'Allow-DHCPv6'
    option src 'wan'
    option proto 'udp'
    option src_ip 'fe80::/10'
    option src_port '547'
    option dest_ip 'fe80::/10'
    option dest_port '546'
    option family 'ipv6'
    option target 'ACCEPT'

config rule
    option name 'Allow-MLD'
    option src 'wan'
    option proto 'icmp'
    option src_ip 'fe80::/10'
    list icmp_type '130/0'
    list icmp_type '131/0'
    list icmp_type '132/0'
    list icmp_type '143/0'
    option family 'ipv6'
    option target 'ACCEPT'

config rule
    option name 'Allow-ICMPv6-Input'
    option src 'wan'
    option proto 'icmp'
    list icmp_type 'echo-request'
    list icmp_type 'echo-reply'
    list icmp_type 'destination-unreachable'
    list icmp_type 'packet-too-big'
    list icmp_type 'time-exceeded'
    list icmp_type 'bad-header'
    list icmp_type 'unknown-header-type'
    list icmp_type 'router-solicitation'
    list icmp_type 'neighbour-solicitation'
    list icmp_type 'router-advertisement'
    list icmp_type 'neighbour-advertisement'
    option limit '1000/sec'
    option family 'ipv6'
    option target 'ACCEPT'

config rule
    option name 'Allow-ICMPv6-Forward'
    option src 'wan'
    option dest '*'
    option proto 'icmp'
    list icmp_type 'echo-request'
    list icmp_type 'echo-reply'
    list icmp_type 'destination-unreachable'
    list icmp_type 'packet-too-big'
    list icmp_type 'time-exceeded'
    list icmp_type 'bad-header'
    list icmp_type 'unknown-header-type'
    option limit '1000/sec'
    option family 'ipv6'
    option target 'ACCEPT'

config include
    option path '/etc/firewall.user'

config rule
    option src 'wan'
    option dest 'lan'
    option proto 'esp'
    option target 'ACCEPT'

config rule
    option src 'wan'
    option dest 'lan'
    option dest_port '500'
    option proto 'udp'
    option target 'ACCEPT'

config rule
    option src 'Plus'
    option target 'ACCEPT'
    option proto 'tcp'
    option src_port '1900'


zrobione ale i tak nadal jest tak samo firewall wyłączony jest dobrze włączę i jest
to :
upnpc : miniupnpc library test client. (c) 2005-2013 Thomas Bernard
Go to http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
for more information.
No IGD UPnP Device found on the network !

16

Odp: Jak ustawić publiczny adres ip

Pokaż  wyniki
iptabes -v -L
iptabes -v -L -t nat

Przy włączonym firewallu i po wywołaniu miniupnpc

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

17

Odp: Jak ustawić publiczny adres ip

root@OpenWrt:~# iptabes -v -L
-ash: iptabes: not found
root@OpenWrt:~# iptabes -v -L
-ash: iptabes: not found
root@OpenWrt:~# iptabes -v -L -t nat
-ash: iptabes: not found
root@OpenWrt:~#

18

Odp: Jak ustawić publiczny adres ip

iptables -v -L
iptables -v -L -t nat

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

19

Odp: Jak ustawić publiczny adres ip

root@OpenWrt:~# iptables -v -L
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target     prot opt in     out     source               destination
  406 45340 delegate_input  all  --  any    any     anywhere             anywhere

Chain FORWARD (policy DROP 0 packets, 0 bytes)
pkts bytes target     prot opt in     out     source               destination
14183 9658K delegate_forward  all  --  any    any     anywhere             anywhere

Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target     prot opt in     out     source               destination
  442 58348 delegate_output  all  --  any    any     anywhere             anywhere

Chain delegate_forward (1 references)
pkts bytes target     prot opt in     out     source               destination
14183 9658K forwarding_rule  all  --  any    any     anywhere             anywhere             /* user chain for forwarding */
14016 9606K ACCEPT     all  --  any    any     anywhere             anywhere             ctstate RELATED,ESTABLISHED
  167 51631 zone_lan_forward  all  --  br-lan any     anywhere             anywhere
    0     0 zone_wan_forward  all  --  eth0.2 any     anywhere             anywhere
    0     0 zone_wan_forward  all  --  eth1   any     anywhere             anywhere
    0     0 zone_wan_forward  all  --  eth2   any     anywhere             anywhere
    0     0 reject     all  --  any    any     anywhere             anywhere   

Chain delegate_input (1 references)
pkts bytes target     prot opt in     out     source               destination
    0     0 ACCEPT     all  --  lo     any     anywhere             anywhere   
  406 45340 input_rule  all  --  any    any     anywhere             anywhere             /* user chain for input */
  267 34792 ACCEPT     all  --  any    any     anywhere             anywhere             ctstate RELATED,ESTABLISHED
    0     0 syn_flood  tcp  --  any    any     anywhere             anywhere             tcp flags:FIN,SYN,RST,ACK/SYN
  134  9083 zone_lan_input  all  --  br-lan any     anywhere             anywhere
    0     0 zone_wan_input  all  --  eth0.2 any     anywhere             anywhere
    5  1465 zone_wan_input  all  --  eth1   any     anywhere             anywhere
    0     0 zone_wan_input  all  --  eth2   any     anywhere             anywhere

Chain delegate_output (1 references)
pkts bytes target     prot opt in     out     source               destination
    0     0 ACCEPT     all  --  any    lo      anywhere             anywhere   
  442 58348 output_rule  all  --  any    any     anywhere             anywhere             /* user chain for output */
  314 48702 ACCEPT     all  --  any    any     anywhere             anywhere             ctstate RELATED,ESTABLISHED
    6  1208 zone_lan_output  all  --  any    br-lan  anywhere             anywhere
    0     0 zone_wan_output  all  --  any    eth0.2  anywhere             anywhere
  122  8438 zone_wan_output  all  --  any    eth1    anywhere             anywhere
    0     0 zone_wan_output  all  --  any    eth2    anywhere             anywhere

Chain forwarding_lan_rule (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain forwarding_rule (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain forwarding_wan_rule (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain input_lan_rule (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain input_rule (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain input_wan_rule (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain output_lan_rule (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain output_rule (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain output_wan_rule (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain reject (7 references)
pkts bytes target     prot opt in     out     source               destination
    2   143 REJECT     tcp  --  any    any     anywhere             anywhere             reject-with tcp-reset
    3  1322 REJECT     all  --  any    any     anywhere             anywhere             reject-with icmp-port-unreachable

Chain syn_flood (1 references)
pkts bytes target     prot opt in     out     source               destination
    0     0 RETURN     tcp  --  any    any     anywhere             anywhere             tcp flags:FIN,SYN,RST,ACK/SYN limit: avg 25/sec burst 50
    0     0 DROP       all  --  any    any     anywhere             anywhere   

Chain zone_lan_dest_ACCEPT (4 references)
pkts bytes target     prot opt in     out     source               destination
    6  1208 ACCEPT     all  --  any    br-lan  anywhere             anywhere   

Chain zone_lan_forward (1 references)
pkts bytes target     prot opt in     out     source               destination
  167 51631 forwarding_lan_rule  all  --  any    any     anywhere             anywhere             /* user chain for forwarding */
  167 51631 zone_wan_dest_ACCEPT  all  --  any    any     anywhere             anywhere             /* forwarding lan -> wan */
    0     0 ACCEPT     all  --  any    any     anywhere             anywhere             ctstate DNAT /* Accept port forwards */
    0     0 zone_lan_dest_ACCEPT  all  --  any    any     anywhere             anywhere

Chain zone_lan_input (1 references)
pkts bytes target     prot opt in     out     source               destination
  134  9083 input_lan_rule  all  --  any    any     anywhere             anywhere             /* user chain for input */
    0     0 ACCEPT     all  --  any    any     anywhere             anywhere             ctstate DNAT /* Accept port redirections */
  134  9083 zone_lan_src_ACCEPT  all  --  any    any     anywhere             anywhere

Chain zone_lan_output (1 references)
pkts bytes target     prot opt in     out     source               destination
    6  1208 output_lan_rule  all  --  any    any     anywhere             anywhere             /* user chain for output */
    6  1208 zone_lan_dest_ACCEPT  all  --  any    any     anywhere             anywhere

Chain zone_lan_src_ACCEPT (1 references)
pkts bytes target     prot opt in     out     source               destination
  134  9083 ACCEPT     all  --  br-lan any     anywhere             anywhere   

Chain zone_wan_dest_ACCEPT (2 references)
pkts bytes target     prot opt in     out     source               destination
    0     0 ACCEPT     all  --  any    eth0.2  anywhere             anywhere   
  289 60069 ACCEPT     all  --  any    eth1    anywhere             anywhere   
    0     0 ACCEPT     all  --  any    eth2    anywhere             anywhere   

Chain zone_wan_dest_REJECT (1 references)
pkts bytes target     prot opt in     out     source               destination
    0     0 reject     all  --  any    eth0.2  anywhere             anywhere   
    0     0 reject     all  --  any    eth1    anywhere             anywhere   
    0     0 reject     all  --  any    eth2    anywhere             anywhere   

Chain zone_wan_forward (3 references)
pkts bytes target     prot opt in     out     source               destination
    0     0 forwarding_wan_rule  all  --  any    any     anywhere             anywhere             /* user chain for forwarding */
    0     0 zone_lan_dest_ACCEPT  esp  --  any    any     anywhere             anywhere             /* @rule[7] */
    0     0 zone_lan_dest_ACCEPT  udp  --  any    any     anywhere             anywhere             udp dpt:isakmp /* @rule[8] */
    0     0 ACCEPT     all  --  any    any     anywhere             anywhere             ctstate DNAT /* Accept port forwards */
    0     0 zone_wan_dest_REJECT  all  --  any    any     anywhere             anywhere

Chain zone_wan_input (3 references)
pkts bytes target     prot opt in     out     source               destination
    5  1465 input_wan_rule  all  --  any    any     anywhere             anywhere             /* user chain for input */
    0     0 ACCEPT     udp  --  any    any     anywhere             anywhere             udp dpt:bootpc /* Allow-DHCP-Renew */
    0     0 ACCEPT     icmp --  any    any     anywhere             anywhere             icmp echo-request /* Allow-Ping */
    0     0 ACCEPT     igmp --  any    any     anywhere             anywhere             /* Allow-IGMP */
    0     0 ACCEPT     all  --  any    any     anywhere             anywhere             ctstate DNAT /* Accept port redirections */
    5  1465 zone_wan_src_REJECT  all  --  any    any     anywhere             anywhere

Chain zone_wan_output (3 references)
pkts bytes target     prot opt in     out     source               destination
  122  8438 output_wan_rule  all  --  any    any     anywhere             anywhere             /* user chain for output */
  122  8438 zone_wan_dest_ACCEPT  all  --  any    any     anywhere             anywhere

Chain zone_wan_src_REJECT (1 references)
pkts bytes target     prot opt in     out     source               destination
    0     0 reject     all  --  eth0.2 any     anywhere             anywhere   
    5  1465 reject     all  --  eth1   any     anywhere             anywhere   
    0     0 reject     all  --  eth2   any     anywhere             anywhere

20

Odp: Jak ustawić publiczny adres ip

root@OpenWrt:~# iptables -v -L -t nat
Chain PREROUTING (policy ACCEPT 548 packets, 191K bytes)
pkts bytes target     prot opt in     out     source               destination
  548  191K delegate_prerouting  all  --  any    any     anywhere             anywhere

Chain INPUT (policy ACCEPT 139 packets, 8841 bytes)
pkts bytes target     prot opt in     out     source               destination

Chain OUTPUT (policy ACCEPT 118 packets, 8416 bytes)
pkts bytes target     prot opt in     out     source               destination

Chain POSTROUTING (policy ACCEPT 3 packets, 644 bytes)
pkts bytes target     prot opt in     out     source               destination
  214 42650 delegate_postrouting  all  --  any    any     anywhere             anywhere

Chain delegate_postrouting (1 references)
pkts bytes target     prot opt in     out     source               destination
  214 42650 postrouting_rule  all  --  any    any     anywhere             anywhere             /* user chain for postrouting */
    3   644 zone_lan_postrouting  all  --  any    br-lan  anywhere             anywhere
    0     0 zone_wan_postrouting  all  --  any    eth0.2  anywhere             anywhere
  211 42006 zone_wan_postrouting  all  --  any    eth1    anywhere             anywhere
    0     0 zone_wan_postrouting  all  --  any    eth2    anywhere             anywhere

Chain delegate_prerouting (1 references)
pkts bytes target     prot opt in     out     source               destination
  548  191K prerouting_rule  all  --  any    any     anywhere             anywhere             /* user chain for prerouting */
  236 43099 zone_lan_prerouting  all  --  br-lan any     anywhere             anywhere
    0     0 zone_wan_prerouting  all  --  eth0.2 any     anywhere             anywhere
  312  148K zone_wan_prerouting  all  --  eth1   any     anywhere             anywhere
    0     0 zone_wan_prerouting  all  --  eth2   any     anywhere             anywhere

Chain postrouting_lan_rule (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain postrouting_rule (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain postrouting_wan_rule (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain prerouting_lan_rule (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain prerouting_rule (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain prerouting_wan_rule (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain zone_lan_postrouting (1 references)
pkts bytes target     prot opt in     out     source               destination
    3   644 postrouting_lan_rule  all  --  any    any     anywhere             anywhere             /* user chain for postrouting */

Chain zone_lan_prerouting (1 references)
pkts bytes target     prot opt in     out     source               destination
  236 43099 prerouting_lan_rule  all  --  any    any     anywhere             anywhere             /* user chain for prerouting */

Chain zone_wan_postrouting (3 references)
pkts bytes target     prot opt in     out     source               destination
  211 42006 postrouting_wan_rule  all  --  any    any     anywhere             anywhere             /* user chain for postrouting */
  211 42006 MASQUERADE  all  --  any    any     anywhere             anywhere   

Chain zone_wan_prerouting (3 references)
pkts bytes target     prot opt in     out     source               destination
  312  148K prerouting_wan_rule  all  --  any    any     anywhere             anywhere             /* user chain for prerouting */
root@OpenWrt:~#

21

Odp: Jak ustawić publiczny adres ip

Sorry, moja wina. Zmień ten Plus na wan tak jak było. Bo to ma być sekcja z firewalla a nie networku.

Zrób restart i jeszcze raz pokaż w/w polecenia.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

22

Odp: Jak ustawić publiczny adres ip

root@OpenWrt:~# upnpc -s
upnpc : miniupnpc library test client. (c) 2005-2013 Thomas Bernard
Go to http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
for more information.
No IGD UPnP Device found on the network !
root@OpenWrt:~# iptables -v -L
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target     prot opt in     out     source               destination
   76  6744 delegate_input  all  --  any    any     anywhere             anywhere

Chain FORWARD (policy DROP 0 packets, 0 bytes)
pkts bytes target     prot opt in     out     source               destination
  207 64862 delegate_forward  all  --  any    any     anywhere             anywhere

Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target     prot opt in     out     source               destination
  106 24316 delegate_output  all  --  any    any     anywhere             anywhere

Chain delegate_forward (1 references)
pkts bytes target     prot opt in     out     source               destination
  207 64862 forwarding_rule  all  --  any    any     anywhere             anywhere             /* user chain for forwarding */
  198 64398 ACCEPT     all  --  any    any     anywhere             anywhere             ctstate RELATED,ESTABLISHED
    9   464 zone_lan_forward  all  --  br-lan any     anywhere             anywhere
    0     0 zone_wan_forward  all  --  eth0.2 any     anywhere             anywhere
    0     0 zone_wan_forward  all  --  eth1   any     anywhere             anywhere
    0     0 zone_wan_forward  all  --  eth2   any     anywhere             anywhere
    0     0 reject     all  --  any    any     anywhere             anywhere   

Chain delegate_input (1 references)
pkts bytes target     prot opt in     out     source               destination
    0     0 ACCEPT     all  --  lo     any     anywhere             anywhere   
   76  6744 input_rule  all  --  any    any     anywhere             anywhere             /* user chain for input */
   63  4803 ACCEPT     all  --  any    any     anywhere             anywhere             ctstate RELATED,ESTABLISHED
    0     0 syn_flood  tcp  --  any    any     anywhere             anywhere             tcp flags:FIN,SYN,RST,ACK/SYN
   10   619 zone_lan_input  all  --  br-lan any     anywhere             anywhere
    0     0 zone_wan_input  all  --  eth0.2 any     anywhere             anywhere
    3  1322 zone_wan_input  all  --  eth1   any     anywhere             anywhere
    0     0 zone_wan_input  all  --  eth2   any     anywhere             anywhere

Chain delegate_output (1 references)
pkts bytes target     prot opt in     out     source               destination
    0     0 ACCEPT     all  --  any    lo      anywhere             anywhere   
  106 24316 output_rule  all  --  any    any     anywhere             anywhere             /* user chain for output */
   85 22509 ACCEPT     all  --  any    any     anywhere             anywhere             ctstate RELATED,ESTABLISHED
    0     0 zone_lan_output  all  --  any    br-lan  anywhere             anywhere
    0     0 zone_wan_output  all  --  any    eth0.2  anywhere             anywhere
   21  1807 zone_wan_output  all  --  any    eth1    anywhere             anywhere
    0     0 zone_wan_output  all  --  any    eth2    anywhere             anywhere

Chain forwarding_lan_rule (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain forwarding_rule (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain forwarding_wan_rule (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain input_lan_rule (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain input_rule (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain input_wan_rule (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain output_lan_rule (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain output_rule (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain output_wan_rule (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain reject (7 references)
pkts bytes target     prot opt in     out     source               destination
    0     0 REJECT     tcp  --  any    any     anywhere             anywhere             reject-with tcp-reset
    3  1322 REJECT     all  --  any    any     anywhere             anywhere             reject-with icmp-port-unreachable

Chain syn_flood (1 references)
pkts bytes target     prot opt in     out     source               destination
    0     0 RETURN     tcp  --  any    any     anywhere             anywhere             tcp flags:FIN,SYN,RST,ACK/SYN limit: avg 25/sec burst 50
    0     0 DROP       all  --  any    any     anywhere             anywhere   

Chain zone_lan_dest_ACCEPT (4 references)
pkts bytes target     prot opt in     out     source               destination
    0     0 ACCEPT     all  --  any    br-lan  anywhere             anywhere   

Chain zone_lan_forward (1 references)
pkts bytes target     prot opt in     out     source               destination
    9   464 forwarding_lan_rule  all  --  any    any     anywhere             anywhere             /* user chain for forwarding */
    9   464 zone_wan_dest_ACCEPT  all  --  any    any     anywhere             anywhere             /* forwarding lan -> wan */
    0     0 ACCEPT     all  --  any    any     anywhere             anywhere             ctstate DNAT /* Accept port forwards */
    0     0 zone_lan_dest_ACCEPT  all  --  any    any     anywhere             anywhere

Chain zone_lan_input (1 references)
pkts bytes target     prot opt in     out     source               destination
   10   619 input_lan_rule  all  --  any    any     anywhere             anywhere             /* user chain for input */
    0     0 ACCEPT     all  --  any    any     anywhere             anywhere             ctstate DNAT /* Accept port redirections */
   10   619 zone_lan_src_ACCEPT  all  --  any    any     anywhere             anywhere

Chain zone_lan_output (1 references)
pkts bytes target     prot opt in     out     source               destination
    0     0 output_lan_rule  all  --  any    any     anywhere             anywhere             /* user chain for output */
    0     0 zone_lan_dest_ACCEPT  all  --  any    any     anywhere             anywhere

Chain zone_lan_src_ACCEPT (1 references)
pkts bytes target     prot opt in     out     source               destination
   10   619 ACCEPT     all  --  br-lan any     anywhere             anywhere   

Chain zone_wan_dest_ACCEPT (2 references)
pkts bytes target     prot opt in     out     source               destination
    0     0 ACCEPT     all  --  any    eth0.2  anywhere             anywhere   
   30  2271 ACCEPT     all  --  any    eth1    anywhere             anywhere   
    0     0 ACCEPT     all  --  any    eth2    anywhere             anywhere   

Chain zone_wan_dest_REJECT (1 references)
pkts bytes target     prot opt in     out     source               destination
    0     0 reject     all  --  any    eth0.2  anywhere             anywhere   
    0     0 reject     all  --  any    eth1    anywhere             anywhere   
    0     0 reject     all  --  any    eth2    anywhere             anywhere   

Chain zone_wan_forward (3 references)
pkts bytes target     prot opt in     out     source               destination
    0     0 forwarding_wan_rule  all  --  any    any     anywhere             anywhere             /* user chain for forwarding */
    0     0 zone_lan_dest_ACCEPT  esp  --  any    any     anywhere             anywhere             /* @rule[7] */
    0     0 zone_lan_dest_ACCEPT  udp  --  any    any     anywhere             anywhere             udp dpt:isakmp /* @rule[8] */
    0     0 ACCEPT     all  --  any    any     anywhere             anywhere             ctstate DNAT /* Accept port forwards */
    0     0 zone_wan_dest_REJECT  all  --  any    any     anywhere             anywhere

Chain zone_wan_input (3 references)
pkts bytes target     prot opt in     out     source               destination
    3  1322 input_wan_rule  all  --  any    any     anywhere             anywhere             /* user chain for input */
    0     0 ACCEPT     udp  --  any    any     anywhere             anywhere             udp dpt:bootpc /* Allow-DHCP-Renew */
    0     0 ACCEPT     icmp --  any    any     anywhere             anywhere             icmp echo-request /* Allow-Ping */
    0     0 ACCEPT     igmp --  any    any     anywhere             anywhere             /* Allow-IGMP */
    0     0 ACCEPT     all  --  any    any     anywhere             anywhere             ctstate DNAT /* Accept port redirections */
    3  1322 zone_wan_src_REJECT  all  --  any    any     anywhere             anywhere

Chain zone_wan_output (3 references)
pkts bytes target     prot opt in     out     source               destination
   21  1807 output_wan_rule  all  --  any    any     anywhere             anywhere             /* user chain for output */
   21  1807 zone_wan_dest_ACCEPT  all  --  any    any     anywhere             anywhere

Chain zone_wan_src_REJECT (1 references)
pkts bytes target     prot opt in     out     source               destination
    0     0 reject     all  --  eth0.2 any     anywhere             anywhere   
    3  1322 reject     all  --  eth1   any     anywhere             anywhere   
    0     0 reject     all  --  eth2   any     anywhere             anywhere   
root@OpenWrt:~# iptables -v -L -t nat
Chain PREROUTING (policy ACCEPT 51 packets, 17984 bytes)
pkts bytes target     prot opt in     out     source               destination
   51 17984 delegate_prerouting  all  --  any    any     anywhere             anywhere

Chain INPUT (policy ACCEPT 10 packets, 651 bytes)
pkts bytes target     prot opt in     out     source               destination

Chain OUTPUT (policy ACCEPT 20 packets, 1536 bytes)
pkts bytes target     prot opt in     out     source               destination

Chain POSTROUTING (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target     prot opt in     out     source               destination
   25  1836 delegate_postrouting  all  --  any    any     anywhere             anywhere

Chain delegate_postrouting (1 references)
pkts bytes target     prot opt in     out     source               destination
   25  1836 postrouting_rule  all  --  any    any     anywhere             anywhere             /* user chain for postrouting */
    0     0 zone_lan_postrouting  all  --  any    br-lan  anywhere             anywhere
    0     0 zone_wan_postrouting  all  --  any    eth0.2  anywhere             anywhere
   25  1836 zone_wan_postrouting  all  --  any    eth1    anywhere             anywhere
    0     0 zone_wan_postrouting  all  --  any    eth2    anywhere             anywhere

Chain delegate_prerouting (1 references)
pkts bytes target     prot opt in     out     source               destination
   51 17984 prerouting_rule  all  --  any    any     anywhere             anywhere             /* user chain for prerouting */
   15   951 zone_lan_prerouting  all  --  br-lan any     anywhere             anywhere
    0     0 zone_wan_prerouting  all  --  eth0.2 any     anywhere             anywhere
   36 17033 zone_wan_prerouting  all  --  eth1   any     anywhere             anywhere
    0     0 zone_wan_prerouting  all  --  eth2   any     anywhere             anywhere

Chain postrouting_lan_rule (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain postrouting_rule (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain postrouting_wan_rule (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain prerouting_lan_rule (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain prerouting_rule (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain prerouting_wan_rule (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain zone_lan_postrouting (1 references)
pkts bytes target     prot opt in     out     source               destination
    0     0 postrouting_lan_rule  all  --  any    any     anywhere             anywhere             /* user chain for postrouting */

Chain zone_lan_prerouting (1 references)
pkts bytes target     prot opt in     out     source               destination
   15   951 prerouting_lan_rule  all  --  any    any     anywhere             anywhere             /* user chain for prerouting */

Chain zone_wan_postrouting (3 references)
pkts bytes target     prot opt in     out     source               destination
   25  1836 postrouting_wan_rule  all  --  any    any     anywhere             anywhere             /* user chain for postrouting */
   25  1836 MASQUERADE  all  --  any    any     anywhere             anywhere   

Chain zone_wan_prerouting (3 references)
pkts bytes target     prot opt in     out     source               destination
   36 17033 prerouting_wan_rule  all  --  any    any     anywhere             anywhere             /* user chain for prerouting */

23

Odp: Jak ustawić publiczny adres ip

Nadal tu nie masz nic o porcie 1900. Pokaż jeszcze raz wyniki:

uci show firewall
/etc/init.d/firewall restart

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

24

Odp: Jak ustawić publiczny adres ip

root@OpenWrt:~# uci show firewall
firewall.@defaults[0]=defaults
firewall.@defaults[0].syn_flood='1'
firewall.@defaults[0].input='ACCEPT'
firewall.@defaults[0].output='ACCEPT'
firewall.@defaults[0].forward='REJECT'
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].masq='1'
firewall.@zone[1].mtu_fix='1'
firewall.@zone[1].network='wan wan6 Plus Play'
firewall.@forwarding[0]=forwarding
firewall.@forwarding[0].src='lan'
firewall.@forwarding[0].dest='wan'
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='fe80::/10'
firewall.@rule[3].src_port='547'
firewall.@rule[3].dest_ip='fe80::/10'
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.@include[0]=include
firewall.@include[0].path='/etc/firewall.user'
firewall.@rule[7]=rule
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].src='wan'
firewall.@rule[8].dest='lan'
firewall.@rule[8].dest_port='500'
firewall.@rule[8].proto='udp'
firewall.@rule[8].target='ACCEPT'
firewall.@rule[9]=rule
firewall.@rule[9].src='wan'
firewall.@rule[9].target='ACCEPT'
firewall.@rule[9].proto='tcp'
firewall.@rule[9].src_port='1900'

25

Odp: Jak ustawić publiczny adres ip

root@OpenWrt:~# iptables -v -L
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target     prot opt in     out     source               destination
   67  5432 delegate_input  all  --  any    any     anywhere             anywhere

Chain FORWARD (policy DROP 0 packets, 0 bytes)
pkts bytes target     prot opt in     out     source               destination
  548  273K delegate_forward  all  --  any    any     anywhere             anywhere

Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target     prot opt in     out     source               destination
   88  8877 delegate_output  all  --  any    any     anywhere             anywhere

Chain delegate_forward (1 references)
pkts bytes target     prot opt in     out     source               destination
  548  273K forwarding_rule  all  --  any    any     anywhere             anywhere             /* user chain for forwarding */
  512  270K ACCEPT     all  --  any    any     anywhere             anywhere             ctstate RELATED,ESTABLISHED
   36  2194 zone_lan_forward  all  --  br-lan any     anywhere             anywhere
    0     0 zone_wan_forward  all  --  eth0.2 any     anywhere             anywhere
    0     0 zone_wan_forward  all  --  eth1   any     anywhere             anywhere
    0     0 zone_wan_forward  all  --  eth2   any     anywhere             anywhere
    0     0 reject     all  --  any    any     anywhere             anywhere   

Chain delegate_input (1 references)
pkts bytes target     prot opt in     out     source               destination
    0     0 ACCEPT     all  --  lo     any     anywhere             anywhere   
   67  5432 input_rule  all  --  any    any     anywhere             anywhere             /* user chain for input */
   43  3773 ACCEPT     all  --  any    any     anywhere             anywhere             ctstate RELATED,ESTABLISHED
    0     0 syn_flood  tcp  --  any    any     anywhere             anywhere             tcp flags:FIN,SYN,RST,ACK/SYN
   12   747 zone_lan_input  all  --  br-lan any     anywhere             anywhere
    0     0 zone_wan_input  all  --  eth0.2 any     anywhere             anywhere
   12   912 zone_wan_input  all  --  eth1   any     anywhere             anywhere
    0     0 zone_wan_input  all  --  eth2   any     anywhere             anywhere

Chain delegate_output (1 references)
pkts bytes target     prot opt in     out     source               destination
    0     0 ACCEPT     all  --  any    lo      anywhere             anywhere   
   88  8877 output_rule  all  --  any    any     anywhere             anywhere             /* user chain for output */
   65  7405 ACCEPT     all  --  any    any     anywhere             anywhere             ctstate RELATED,ESTABLISHED
    0     0 zone_lan_output  all  --  any    br-lan  anywhere             anywhere
    0     0 zone_wan_output  all  --  any    eth0.2  anywhere             anywhere
   23  1472 zone_wan_output  all  --  any    eth1    anywhere             anywhere
    0     0 zone_wan_output  all  --  any    eth2    anywhere             anywhere

Chain forwarding_lan_rule (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain forwarding_rule (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain forwarding_wan_rule (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain input_lan_rule (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain input_rule (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain input_wan_rule (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain output_lan_rule (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain output_rule (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain output_wan_rule (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain reject (7 references)
pkts bytes target     prot opt in     out     source               destination
   12   912 REJECT     tcp  --  any    any     anywhere             anywhere             reject-with tcp-reset
    0     0 REJECT     all  --  any    any     anywhere             anywhere             reject-with icmp-port-unreachable

Chain syn_flood (1 references)
pkts bytes target     prot opt in     out     source               destination
    0     0 RETURN     tcp  --  any    any     anywhere             anywhere             tcp flags:FIN,SYN,RST,ACK/SYN limit: avg 25/sec burst 50
    0     0 DROP       all  --  any    any     anywhere             anywhere   

Chain zone_lan_dest_ACCEPT (4 references)
pkts bytes target     prot opt in     out     source               destination
    0     0 ACCEPT     all  --  any    br-lan  anywhere             anywhere   

Chain zone_lan_forward (1 references)
pkts bytes target     prot opt in     out     source               destination
   36  2194 forwarding_lan_rule  all  --  any    any     anywhere             anywhere             /* user chain for forwarding */
   36  2194 zone_wan_dest_ACCEPT  all  --  any    any     anywhere             anywhere             /* forwarding lan -> wan */
    0     0 ACCEPT     all  --  any    any     anywhere             anywhere             ctstate DNAT /* Accept port forwards */
    0     0 zone_lan_dest_ACCEPT  all  --  any    any     anywhere             anywhere

Chain zone_lan_input (1 references)
pkts bytes target     prot opt in     out     source               destination
   12   747 input_lan_rule  all  --  any    any     anywhere             anywhere             /* user chain for input */
    0     0 ACCEPT     all  --  any    any     anywhere             anywhere             ctstate DNAT /* Accept port redirections */
   12   747 zone_lan_src_ACCEPT  all  --  any    any     anywhere             anywhere

Chain zone_lan_output (1 references)
pkts bytes target     prot opt in     out     source               destination
    0     0 output_lan_rule  all  --  any    any     anywhere             anywhere             /* user chain for output */
    0     0 zone_lan_dest_ACCEPT  all  --  any    any     anywhere             anywhere

Chain zone_lan_src_ACCEPT (1 references)
pkts bytes target     prot opt in     out     source               destination
   12   747 ACCEPT     all  --  br-lan any     anywhere             anywhere   

Chain zone_wan_dest_ACCEPT (2 references)
pkts bytes target     prot opt in     out     source               destination
    0     0 ACCEPT     all  --  any    eth0.2  anywhere             anywhere   
   59  3666 ACCEPT     all  --  any    eth1    anywhere             anywhere   
    0     0 ACCEPT     all  --  any    eth2    anywhere             anywhere   

Chain zone_wan_dest_REJECT (1 references)
pkts bytes target     prot opt in     out     source               destination
    0     0 reject     all  --  any    eth0.2  anywhere             anywhere   
    0     0 reject     all  --  any    eth1    anywhere             anywhere   
    0     0 reject     all  --  any    eth2    anywhere             anywhere   

Chain zone_wan_forward (3 references)
pkts bytes target     prot opt in     out     source               destination
    0     0 forwarding_wan_rule  all  --  any    any     anywhere             anywhere             /* user chain for forwarding */
    0     0 zone_lan_dest_ACCEPT  esp  --  any    any     anywhere             anywhere             /* @rule[7] */
    0     0 zone_lan_dest_ACCEPT  udp  --  any    any     anywhere             anywhere             udp dpt:isakmp /* @rule[8] */
    0     0 ACCEPT     all  --  any    any     anywhere             anywhere             ctstate DNAT /* Accept port forwards */
    0     0 zone_wan_dest_REJECT  all  --  any    any     anywhere             anywhere

Chain zone_wan_input (3 references)
pkts bytes target     prot opt in     out     source               destination
   12   912 input_wan_rule  all  --  any    any     anywhere             anywhere             /* user chain for input */
    0     0 ACCEPT     udp  --  any    any     anywhere             anywhere             udp dpt:bootpc /* Allow-DHCP-Renew */
    0     0 ACCEPT     icmp --  any    any     anywhere             anywhere             icmp echo-request /* Allow-Ping */
    0     0 ACCEPT     igmp --  any    any     anywhere             anywhere             /* Allow-IGMP */
    0     0 ACCEPT     tcp  --  any    any     anywhere             anywhere             tcp spt:1900 /* @rule[9] */
    0     0 ACCEPT     all  --  any    any     anywhere             anywhere             ctstate DNAT /* Accept port redirections */
   12   912 zone_wan_src_REJECT  all  --  any    any     anywhere             anywhere

Chain zone_wan_output (3 references)
pkts bytes target     prot opt in     out     source               destination
   23  1472 output_wan_rule  all  --  any    any     anywhere             anywhere             /* user chain for output */
   23  1472 zone_wan_dest_ACCEPT  all  --  any    any     anywhere             anywhere

Chain zone_wan_src_REJECT (1 references)
pkts bytes target     prot opt in     out     source               destination
    0     0 reject     all  --  eth0.2 any     anywhere             anywhere   
   12   912 reject     all  --  eth1   any     anywhere             anywhere   
    0     0 reject     all  --  eth2   any     anywhere             anywhere   
root@OpenWrt:~# iptables -v -L -t nat
Chain PREROUTING (policy ACCEPT 86 packets, 23662 bytes)
pkts bytes target     prot opt in     out     source               destination
   86 23662 delegate_prerouting  all  --  any    any     anywhere             anywhere

Chain INPUT (policy ACCEPT 12 packets, 747 bytes)
pkts bytes target     prot opt in     out     source               destination

Chain OUTPUT (policy ACCEPT 16 packets, 1151 bytes)
pkts bytes target     prot opt in     out     source               destination

Chain POSTROUTING (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target     prot opt in     out     source               destination
   46  2734 delegate_postrouting  all  --  any    any     anywhere             anywhere

Chain delegate_postrouting (1 references)
pkts bytes target     prot opt in     out     source               destination
   46  2734 postrouting_rule  all  --  any    any     anywhere             anywhere             /* user chain for postrouting */
    0     0 zone_lan_postrouting  all  --  any    br-lan  anywhere             anywhere
    0     0 zone_wan_postrouting  all  --  any    eth0.2  anywhere             anywhere
   46  2734 zone_wan_postrouting  all  --  any    eth1    anywhere             anywhere
    0     0 zone_wan_postrouting  all  --  any    eth2    anywhere             anywhere

Chain delegate_prerouting (1 references)
pkts bytes target     prot opt in     out     source               destination
   86 23662 prerouting_rule  all  --  any    any     anywhere             anywhere             /* user chain for prerouting */
   35  2050 zone_lan_prerouting  all  --  br-lan any     anywhere             anywhere
    0     0 zone_wan_prerouting  all  --  eth0.2 any     anywhere             anywhere
   51 21612 zone_wan_prerouting  all  --  eth1   any     anywhere             anywhere
    0     0 zone_wan_prerouting  all  --  eth2   any     anywhere             anywhere

Chain postrouting_lan_rule (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain postrouting_rule (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain postrouting_wan_rule (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain prerouting_lan_rule (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain prerouting_rule (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain prerouting_wan_rule (1 references)
pkts bytes target     prot opt in     out     source               destination

Chain zone_lan_postrouting (1 references)
pkts bytes target     prot opt in     out     source               destination
    0     0 postrouting_lan_rule  all  --  any    any     anywhere             anywhere             /* user chain for postrouting */

Chain zone_lan_prerouting (1 references)
pkts bytes target     prot opt in     out     source               destination
   35  2050 prerouting_lan_rule  all  --  any    any     anywhere             anywhere             /* user chain for prerouting */

Chain zone_wan_postrouting (3 references)
pkts bytes target     prot opt in     out     source               destination
   46  2734 postrouting_wan_rule  all  --  any    any     anywhere             anywhere             /* user chain for postrouting */
   46  2734 MASQUERADE  all  --  any    any     anywhere             anywhere   

Chain zone_wan_prerouting (3 references)
pkts bytes target     prot opt in     out     source               destination
   51 21612 prerouting_wan_rule  all  --  any    any     anywhere             anywhere             /* user chain for prerouting */