Ich habe alle Ports geblockt, danach habe ich bestimmte Ports freigeschaltet.
So schaut die iptables -L -v aus.
sudo journalctl -k | grep "iptables"❯ sudo iptables -L -v
Chain INPUT (policy DROP 3925 packets, 236K bytes)
pkts bytes target prot opt in out source destination
0 0 ACCEPT tcp -- any any anywhere anywhere tcp dpt:imap2
0 0 ACCEPT tcp -- any any anywhere anywhere tcp dpt:smtp
0 0 ACCEPT tcp -- any any anywhere anywhere tcp dpt:http
0 0 ACCEPT tcp -- any any anywhere anywhere tcp dpt:https
0 0 ACCEPT tcp -- any any anywhere anywhere tcp dpt:http-alt
1388 83591 LOG all -- any any anywhere anywhere LOG level debug prefix "iptables:INPUT-DROP "
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy DROP 1517 packets, 116K bytes)
pkts bytes target prot opt in out source destination
146 8760 ACCEPT tcp -- any any anywhere anywhere tcp dpt:http
2425 146K ACCEPT tcp -- any any anywhere anywhere tcp dpt:https
0 0 ACCEPT tcp -- any any anywhere anywhere tcp dpt:imap2
0 0 ACCEPT tcp -- any any anywhere anywhere tcp dpt:smtp
0 0 ACCEPT tcp -- any any anywhere anywhere tcp dpt:http-alt
516 36217 LOG all -- any any anywhere anywhere LOG level debug prefix "iptables:OUTPUT-DROP "
Problem ist da alle Webseiten werden nicht aufgerufen, außer zb. wie Google oder Amazon.Mai 05 12:54:15 debian kernel: iptables:OUTPUT-DROP IN= OUT=wlxf0a7314ab340 SRC=192.168.129.5 DST=212.227.17.170 LEN=60 TOS=0x00 PREC=0x00 TTL=64 ID=48659 DF PROTO=TCP SPT=42328 DPT=993 WINDOW=64240 RES=0x00 SYN URGP=0
Mai 05 12:54:15 debian kernel: iptables:OUTPUT-DROP IN= OUT=wlxf0a7314ab340 SRC=192.168.129.5 DST=212.227.17.170 LEN=60 TOS=0x00 PREC=0x00 TTL=64 ID=24128 DF PROTO=TCP SPT=42318 DPT=993 WINDOW=64240 RES=0x00 SYN URGP=0
Mai 05 12:54:21 debian kernel: iptables:INPUT-DROP IN=wlxf0a7314ab340 OUT= MAC=f0:a7:31:4a:b3:40:42:65:5a:09:14:9f:08:00 SRC=44.196.22.110 DST=192.168.129.5 LEN=60 TOS=0x00 PREC=0x00 TTL=243 ID=0 DF PROTO=TCP SPT=443 DPT=49112 WINDOW=26847 RES=0x00 ACK SYN URGP=0
Mai 05 12:54:21 debian kernel: iptables:INPUT-DROP IN=wlxf0a7314ab340 OUT= MAC=f0:a7:31:4a:b3:40:42:65:5a:09:14:9f:08:00 SRC=44.196.22.110 DST=192.168.129.5 LEN=60 TOS=0x00 PREC=0x00 TTL=243 ID=0 DF PROTO=TCP SPT=443 DPT=49144 WINDOW=26847 RES=0x00 ACK SYN URGP=0
Mai 05 12:54:21 debian kernel: iptables:INPUT-DROP IN=wlxf0a7314ab340 OUT= MAC=f0:a7:31:4a:b3:40:42:65:5a:09:14:9f:08:00 SRC=44.196.22.110 DST=192.168.129.5 LEN=60 TOS=0x00 PREC=0x00 TTL=241 ID=0 DF PROTO=TCP SPT=443 DPT=49106 WINDOW=26847 RES=0x00 ACK SYN URGP=0
Mai 05 12:54:21 debian kernel: iptables:INPUT-DROP IN=wlxf0a7314ab340 OUT= MAC=f0:a7:31:4a:b3:40:42:65:5a:09:14:9f:08:00 SRC=44.196.22.110 DST=192.168.129.5 LEN=60 TOS=0x00 PREC=0x00 TTL=243 ID=0 DF PROTO=TCP SPT=443 DPT=49160 WINDOW=26847 RES=0x00 ACK SYN URGP=0
Mai 05 12:54:21 debian kernel: iptables:INPUT-DROP IN=wlxf0a7314ab340 OUT= MAC=f0:a7:31:4a:b3:40:42:65:5a:09:14:9f:08:00 SRC=44.196.22.110 DST=192.168.129.5 LEN=60 TOS=0x00 PREC=0x00 TTL=243 ID=0 DF PROTO=TCP SPT=443 DPT=49124 WINDOW=26847 RES=0x00 ACK SYN URGP=0
Mai 05 12:54:21 debian kernel: iptables:INPUT-DROP IN=wlxf0a7314ab340 OUT= MAC=f0:a7:31:4a:b3:40:42:65:5a:09:14:9f:08:00 SRC=44.196.22.110 DST=192.168.129.5 LEN=60 TOS=0x00 PREC=0x00 TTL=243 ID=0 DF PROTO=TCP SPT=443 DPT=49128 WINDOW=26847 RES=0x00 ACK SYN URGP=0
LG