Temat: 1043 ND + Gargoyle

Witam . Mam zainstalowana wersję Gargoyle'a 1.3.10 (by obsy). Walcze z Transmission i prZy tescie portu w Transmission Remote GUI wywala mi komunikat : Incoming port is closed. Check your firewall settings. Wcześniej wrzuciłem do firewalla akceptowanie portów 51413
i 9091.
Przy restartowaniu firewalla otrzymuje takie wpisy:
Loading defaults
Loading synflood protection
Adding custom chains
Loading zones
Loading forwarding
Loading redirects
Loading rules
Loading includes
sh: missing ]
Loading zone defaults

Prosze o jakiekolwiek wskazówki (poszukiwanie zaginionego nawiasu przeze mnie w plikach zamieszanych w firewalla skończyło się niepowodzeniem).

2

Odp: 1043 ND + Gargoyle

Pokaż uci show firewall oraz cat /etc/firewall.user

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

3

Odp: 1043 ND + Gargoyle

/root$ cat /etc/firewall.user
# This file is interpreted as shell script.
# Put your custom iptables rules here, they will
# be executed with each firewall (re-)start.

/etc/config$ 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=REJECT
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.@forwarding[0]=forwarding
firewall.@forwarding[0].src=lan
firewall.@forwarding[0].dest=wan
firewall.@rule[0]=rule
firewall.@rule[0].src=wan
firewall.@rule[0].proto=udp
firewall.@rule[0].dest_port=68
firewall.@rule[0].target=ACCEPT
firewall.@rule[1]=rule
firewall.@rule[1].src=wan
firewall.@rule[1].proto=icmp
firewall.@rule[1].icmp_type=echo-request
firewall.@rule[1].target=ACCEPT
firewall.@include[0]=include
firewall.@include[0].path=/etc/firewall.user
firewall.@include[1]=include
firewall.@include[1].path=/usr/lib/gargoyle_firewall_util/gargoyle_additions.firewall
firewall.ra_22_22=remote_accept
firewall.ra_22_22.local_port=22
firewall.ra_22_22.remote_port=22
firewall.ra_22_22.proto=tcp
firewall.ra_22_22.zone=wan
firewall.@rule[2]=rule
firewall.@rule[2]._name=transmission
firewall.@rule[2].src=wan
firewall.@rule[2].target=ACCEPT
firewall.@rule[2].proto=tcp
firewall.@rule[2].dest_port=51413
firewall.@rule[3]=rule
firewall.@rule[3]._name=transmissionwan
firewall.@rule[3].src=wan
firewall.@rule[3].target=ACCEPT
firewall.@rule[3].proto=tcp
firewall.@rule[3].dest_port=9091

4

Odp: 1043 ND + Gargoyle

Teoretycznie wszystko gra. Co do błędu - nie jestem w stanie tego sprawdzić, bo to było w poprzedniej wersji. Zrób jeszcze iptables -v -L i zobacz czy w input_wan masz faktycznie otworzone porty 9091 i 51413.

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

5

Odp: 1043 ND + Gargoyle

jedyny ciąg gdzie występuja te porty to:

Chain zone_wan (1 references)
pkts bytes target     prot opt in     out     source               destination         
    0     0 ACCEPT     udp  --  any    any     anywhere             anywhere            udp dpt:68
    0     0 ACCEPT     icmp --  any    any     anywhere             anywhere            icmp echo-request
    0     0 ACCEPT     tcp  --  any    any     anywhere             anywhere            tcp dpt:51413
    0     0 ACCEPT     tcp  --  any    any     anywhere             anywhere            tcp dpt:9091
    6   870 input_wan  all  --  any    any     anywhere             anywhere           
    6   870 zone_wan_REJECT  all  --  any    any     anywhere             anywhere

6

Odp: 1043 ND + Gargoyle

wiec od strony wan masz to otworzone. inna sprawa że liczniki są na zero, a to oznacza że żaden pakiet nie przyszedł. Dostawca nie blokuje tych portów?

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

7

Odp: 1043 ND + Gargoyle

dostawca przepuszcza cały ruch. spróbuję zupgrade'ować do wersjii 1.3.11

8

Odp: 1043 ND + Gargoyle

Zachcialo mi sie www servera i jesli dopisze rule dla Webserver w firewall:

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' 'REJECT'

config 'zone'
    option 'name' 'wan'
    option 'input' 'REJECT'
    option 'output' 'ACCEPT'
    option 'forward' 'REJECT'
    option 'masq' '1'
    option 'mtu_fix' '1'

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

config 'rule'
    option 'src' 'wan'
    option 'proto' 'icmp'
    option 'icmp_type' 'echo-request'
    option 'target' 'ACCEPT'

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

config 'include'
    option 'path' '/usr/lib/gargoyle_firewall_util/gargoyle_additions.firewall'

config 'remote_accept' 'ra_22_22'
    option 'local_port' '22'
    option 'remote_port' '22'
    option 'proto' 'tcp'
    option 'zone' 'wan'

config 'rule'
    option 'name' 'Webserver'
    option 'src' 'wan'
    option 'target' 'ACCEPT'
    option 'dest_port' '81'
    option 'proto' 'tcp'

przy czym plik firewall.user jest pusty - trace polaczenie z internetem.

Dlaczego?

MV411+ HP T5500 z R52 + AA + OWFS + TEMPLOGGERD + MP00202
A0ZP = Absolutnie Zerowa Znajomość Pingwina. Nie byliśmy sobie przedstawieni.