Hi,
Ich verwende einen Router mit Tomato als firmware. Ich habe versucht ein Firewall script zu machen um, einmal testhalber, bestimmte externe IPs zu sperren.
Script
Am Router gibt mir iptables -vL das aus:
Code
Chain INPUT (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 ACCEPT 0 -- tun22 any anywhere anywhere
0 0 ACCEPT tcp -- any any anywhere anywhere tcp dpt:1194
0 0 logdrop 0 -- any any anywhere anywhere state INVALID
7 436 ACCEPT 0 -- any any anywhere anywhere state RELATED,ESTABLISHED
0 0 shlimit tcp -- any any anywhere anywhere tcp dpt:ssh state NEW
0 0 shlimit tcp -- any any anywhere anywhere tcp dpt:telnet state NEW
4 120 ACCEPT 0 -- br0 any anywhere anywhere
0 0 ACCEPT 0 -- lo any anywhere anywhere
0 0 ACCEPT icmp -- any any anywhere anywhere
1 32 ACCEPT igmp -- any any anywhere anywhere
2 658 logdrop 0 -- any any anywhere anywhere
0 0 DROP 0 -- any any x.x.x.x anywhere
0 0 DROP 0 -- any any y.y.y.y anywhere
Chain FORWARD (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 ACCEPT 0 -- tun22 any anywhere anywhere
0 0 ACCEPT 0 -- br0 br0 anywhere anywhere
0 0 DROP 0 -- any any anywhere anywhere state INVALID
0 0 TCPMSS tcp -- any any anywhere anywhere tcp flags:SYN,RST/SYN tcpmss match 1461:65535 TCPMSS set 1460
2 81 ACCEPT 0 -- any any anywhere anywhere state RELATED,ESTABLISHED
0 0 wanin 0 -- vlan1 any anywhere anywhere
0 0 wanout 0 -- any vlan1 anywhere anywhere
0 0 ACCEPT 0 -- br0 any anywhere anywhere
0 0 upnp 0 -- vlan1 any anywhere anywhere
Alles anzeigen
Geblockt wird jedoch nichts. Woran könnte das liegen?
LG