Postaram się po krótko streścić moje działania.
za radą Cezarego doszedłem do wniosku iż oddam router na gwarancję. W tym celu po raz kolejny wgrałem oryginalny firmware, a potem nawet zaktualizowałem do najnowszej wersji. Po tym odłożyłem routerek na półkę.
Aby mieć net wyciągnąłem mój zapasowy router, tj: TP-Link tl-mr3420 v1 (używam go na dłuższych wyjazdach do LTE z Plusa). Na min też najnowsze Gargoyle od Cezarego. Odpalam WAN po DHCP i śmiga beż zarzutów. Puściłem ping na wp.pl i 1000 pakietów poszło i 1000 wróciło, 0% straty. Skoro ten sam producent i ten sam Gargoyle i chodzi na 3420 a na 1043 nie, to utwierdziło mnie to w przekonaniu iż 1043 na walnięty port WAN. Tak więc dokończyłem konfigurację 3420.
Patrzę a tu kolega Kolszak podpowiada coś nowego. Więc długo nie myśląc 1043 z powrotem w sieć, z powrotem najnowsze Gargoyle i beż wprowadzania jakichkolwiek zmian net śmiga. Puszczam ping na wp.pl 0% straconych pakietów.
Nie wiem tylko dlaczego, czyżby podpięcie 3420 spowodowało jakieś zmiany po stronie Toya.
i na koniec pytanie do kolegów o tą zmianę. Dokształciłem się już iż chodzi o iptables. Poniżej wynik iptables -L
root@Gargoyle:~# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
bw_ingress all -- anywhere anywhere
ACCEPT all -- anywhere anywhere ctstate RELATED,ESTABLISHED
ACCEPT all -- anywhere anywhere
syn_flood tcp -- anywhere anywhere tcp flags:FIN,SYN,RST,ACK/SYN
input_rule all -- anywhere anywhere
input all -- anywhere anywhere
Chain FORWARD (policy DROP)
target prot opt source destination
bw_ingress all -- anywhere anywhere
ingress_restrictions all -- anywhere anywhere
egress_restrictions all -- anywhere anywhere
ACCEPT all -- anywhere anywhere ctstate RELATED,ESTABLISHED
forwarding_rule all -- anywhere anywhere
forward all -- anywhere anywhere
reject all -- anywhere anywhere
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere ctstate RELATED,ESTABLISHED
ACCEPT all -- anywhere anywhere
output_rule all -- anywhere anywhere
output all -- anywhere anywhere
Chain bw_ingress (2 references)
target prot opt source destination
all -- anywhere anywhere bandwidth --id total1-download-2-449 --type combined --current_bandwidth 0 --reset_interval 2 --reset_time 2 --intervals_to_save 449
all -- anywhere anywhere match-set local_addr_set dst bandwidth --id bdist1-download-minute-15 --type individual_dst --reset_interval minute --intervals_to_save 15
all -- anywhere anywhere bandwidth --id total2-download-minute-359 --type combined --current_bandwidth 0 --reset_interval minute --intervals_to_save 359
all -- anywhere anywhere match-set local_addr_set dst bandwidth --id bdist2-download-900-24 --type individual_dst --reset_interval 900 --reset_time 900 --intervals_to_save 24
all -- anywhere anywhere bandwidth --id total3-download-180-479 --type combined --current_bandwidth 0 --reset_interval 180 --reset_time 180 --intervals_to_save 479
all -- anywhere anywhere match-set local_addr_set dst bandwidth --id bdist3-download-hour-24 --type individual_dst --reset_interval hour --intervals_to_save 24
all -- anywhere anywhere bandwidth --id total4-download-7200-359 --type combined --current_bandwidth 0 --reset_interval 7200 --reset_time 7200 --intervals_to_save 359
all -- anywhere anywhere match-set local_addr_set dst bandwidth --id bdist4-download-day-31 --type individual_dst --reset_interval day --intervals_to_save 31
all -- anywhere anywhere bandwidth --id total5-download-day-365 --type combined --current_bandwidth 0 --reset_interval day --intervals_to_save 365
all -- anywhere anywhere match-set local_addr_set dst bandwidth --id bdist5-download-month-12 --type individual_dst --reset_interval month --intervals_to_save 12
Chain egress_restrictions (1 references)
target prot opt source destination
egress_whitelist all -- anywhere anywhere
Chain egress_whitelist (1 references)
target prot opt source destination
Chain forward (1 references)
target prot opt source destination
zone_lan_forward all -- anywhere anywhere
zone_wan_forward all -- anywhere anywhere
Chain forwarding_lan (1 references)
target prot opt source destination
Chain forwarding_rule (1 references)
target prot opt source destination
Chain forwarding_wan (1 references)
target prot opt source destination
Chain ingress_restrictions (1 references)
target prot opt source destination
ingress_whitelist all -- anywhere anywhere
Chain ingress_whitelist (1 references)
target prot opt source destination
Chain input (1 references)
target prot opt source destination
zone_lan all -- anywhere anywhere
zone_wan all -- anywhere anywhere
Chain input_lan (1 references)
target prot opt source destination
Chain input_rule (1 references)
target prot opt source destination
Chain input_wan (1 references)
target prot opt source destination
Chain output (1 references)
target prot opt source destination
zone_lan_ACCEPT all -- anywhere anywhere
zone_wan_ACCEPT all -- anywhere anywhere
Chain output_rule (1 references)
target prot opt source destination
Chain pf_loopback_B (1 references)
target prot opt source destination
Chain reject (5 references)
target prot opt source destination
REJECT tcp -- anywhere anywhere reject-with tcp-reset
REJECT all -- anywhere anywhere reject-with icmp-port-unreachable
Chain syn_flood (1 references)
target prot opt source destination
RETURN tcp -- anywhere anywhere tcp flags:FIN,SYN,RST,ACK/SYN limit: avg 25/sec burst 50
DROP all -- anywhere anywhere
Chain zone_lan (1 references)
target prot opt source destination
input_lan all -- anywhere anywhere
zone_lan_ACCEPT all -- anywhere anywhere
Chain zone_lan_ACCEPT (2 references)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere
Chain zone_lan_DROP (0 references)
target prot opt source destination
DROP all -- anywhere anywhere
DROP all -- anywhere anywhere
Chain zone_lan_REJECT (1 references)
target prot opt source destination
reject all -- anywhere anywhere
reject all -- anywhere anywhere
Chain zone_lan_forward (1 references)
target prot opt source destination
pf_loopback_B all -- anywhere anywhere
ACCEPT all -- anywhere anywhere
zone_wan_ACCEPT all -- anywhere anywhere
forwarding_lan all -- anywhere anywhere
zone_lan_REJECT all -- anywhere anywhere
Chain zone_wan (1 references)
target prot opt source destination
ACCEPT udp -- anywhere anywhere udp dpt:bootpc
ACCEPT icmp -- anywhere anywhere icmp echo-request
input_wan all -- anywhere anywhere
zone_wan_REJECT all -- anywhere anywhere
Chain zone_wan_ACCEPT (2 references)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere
Chain zone_wan_DROP (0 references)
target prot opt source destination
DROP all -- anywhere anywhere
DROP all -- anywhere anywhere
Chain zone_wan_REJECT (2 references)
target prot opt source destination
reject all -- anywhere anywhere
reject all -- anywhere anywhere
Chain zone_wan_forward (1 references)
target prot opt source destination
forwarding_wan all -- anywhere anywhere
zone_wan_REJECT all -- anywhere anywhere
root@Gargoyle:~#
domyślam się że koledze chodzi konkretnie o ten fragment:
Chain FORWARD (policy DROP)
target prot opt source destination
bw_ingress all -- anywhere anywhere
ingress_restrictions all -- anywhere anywhere
egress_restrictions all -- anywhere anywhere
ACCEPT all -- anywhere anywhere ctstate RELATED,ESTABLISHED
forwarding_rule all -- anywhere anywhere
forward all -- anywhere anywhere
reject all -- anywhere anywhere
ostatnią linijkę, ma być drop zamiast reject?
Doczytałem właśnie kolejną podpowiedź kolegi, więć zmiana w:
Chain reject (5 references)
target prot opt source destination
REJECT tcp -- anywhere anywhere reject-with tcp-reset
REJECT all -- anywhere anywhere reject-with icmp-port-unreachable
target zamiast reject ma być drop?
Zajrzałem do core_init.sh. Zmiany w 126 - 128 linii będą miały wpływ na te dwie linijki wyżej? Czy zmieniając w 19 linii reject na drop osiągnę rezultat o którym pisałeś na początku? Czyli ta ostatnia linijka jeden cytat wyżej?
Sorki że tyle piszę i strasznie zarazem mieszam ale jestem zielony w kwestii linuxa i openwrt, a zarazem chciałbym zrozumieć to wszystko, nauczyć się. Powiedzcie, czy cokolwiek z tego co napisałem ma sens?
Dzięki za wyrozumiałość.