Hallo,
habe auf der 7390 mit 84.04.91freetz-1.2-stable nach der Anleitung aus Freetz die iptables-Musterkonfiguration versucht anzuwenden. Die Clients haben danach keinen Webzugriff mehr. Wenn ich das richtig verstehe, klappt forwarding nicht?
Hier die Konfiguration:
So wird es mir angezeigt:
Irgendwie finde ich da keinen Fehler. :gruebel:
Vielen Dank erstmal für Euere Hilfe.
habe auf der 7390 mit 84.04.91freetz-1.2-stable nach der Anleitung aus Freetz die iptables-Musterkonfiguration versucht anzuwenden. Die Clients haben danach keinen Webzugriff mehr. Wenn ich das richtig verstehe, klappt forwarding nicht?
Hier die Konfiguration:
Code:
iptables -F
iptables -N TRANS
# Outbound for surfing the Internet:
# 20 FTP data, 21 FTP, 22 SSH, 25 SMTP, 80 HTTP, 110 POP3, 443 HTTPS, 465 SSMTP, 995 POP3S, 5060 VoIP
# 53 DNS, 67/68 DHCP, 80 HTTP, 123 NTP, 5060 VoIP
iptables -A TRANS -p tcp -s 192.168.0.0/24 -m multiport --dport 20,21,22,25,80,110,443,465,995 -j ACCEPT
iptables -A TRANS -p udp -s 192.168.0.0/24 -m multiport --dport 53,67,68,80,123,5060 -j ACCEPT
iptables -A TRANS -p icmp -s 192.168.0.0/24 -j ACCEPT
# conntrack rules for returning data packages:
iptables -A TRANS -m state --state RELATED,ESTABLISHED -j ACCEPT
# ... Some rules for known hosts
# ...
iptables -A TRANS -j LOG --log-prefix "[IPT] DENY-LAN-ACCESS " # log all dropped packets
iptables -A TRANS -j DROP # PARANOIA LINK
# # # Rules for Fritz Device
iptables -P INPUT DROP..
iptables -A INPUT -p udp -s 0.0.0.0 -d 255.255.255.255 --sport 68 --dport 67 -j ACCEPT #DHCP
iptables -A INPUT -s 127.0.0.1 -d 127.0.0.1 -j ACCEPT # LOCALHOST
iptables -A INPUT -s 192.168.0.0/24 -j ACCEPT # LAN
iptables -A INPUT -s 169.254.0.0/16 -i lan -j ACCEPT # EMERGENCY LAN
iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A INPUT -j LOG --log-prefix "[IPT] DENY-FRITZ-ACCESS " # Log other traffic
iptables -A OUTPUT -d 192.168.0.0/24 -j ACCEPT # Allow LAN
iptables -A OUTPUT -d 224.0.0.1/24 -j ACCEPT # UPnP
iptables -A OUTPUT -d 239.255.255.250 -j ACCEPT
iptables -A OUTPUT -d 127.0.0.1 -j ACCEPT # Local Host
iptables -A OUTPUT -p udp -m multiport --dport 53,123,5060 -j ACCEPT # DNS, TIME, VoIP
iptables -A OUTPUT -p tcp --dport 5060 -j ACCEPT # VoIP
iptables -A OUTPUT -p tcp --dport 80 -d 63.208.196.0/24 -j ACCEPT # DynDNS
iptables -A OUTPUT -d secureimap.t-online.de -j ACCEPT # e-Mail OUT
iptables -A OUTPUT -d securesmtp.t-online.de -j ACCEPT # e-Mail OUT
iptables -A OUTPUT -m state --state RELATED,ESTABLISHED -j ACCEPT # stateful conntrack
iptables -A OUTPUT -d 212.42.244.73 -p tcp --dport 80 -j ACCEPT # Plugins Server AVM
iptables -A OUTPUT -j LOG --log-prefix "[IPT] WARNING-CALL-HOME " # Log forbidden outbound traffic
iptables -P OUTPUT DROP
# # # LAN WAN
iptables -P FORWARD DROP
iptables -A FORWARD -j TRANS
iptables -A FORWARD -j LOG --log-prefix "[IPT] DENY-FWD-ACCESS "
So wird es mir angezeigt:
Code:
root@fritz:/var/mod/root# iptables -L
Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT udp -- 0.0.0.0 255.255.255.255 udp spt:bootpc dpt:bootps
ACCEPT all -- localhost localhost
ACCEPT all -- 192.168.0.0/24 anywhere
ACCEPT all -- 169.254.0.0/16 anywhere
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
LOG all -- anywhere anywhere LOG level warning prefix `[IPT] DENY-FRITZ-ACCESS '
Chain FORWARD (policy DROP)
target prot opt source destination
TRANS all -- anywhere anywhere
LOG all -- anywhere anywhere LOG level warning prefix `[IPT] DENY-FWD-ACCESS '
Chain OUTPUT (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere 192.168.0.0/24
ACCEPT all -- anywhere base-address.mcast.net/24
ACCEPT all -- anywhere 239.255.255.250
ACCEPT all -- anywhere localhost
ACCEPT udp -- anywhere anywhere multiport dports domain,ntp
ACCEPT tcp -- anywhere anywhere tcp dpt:sip
ACCEPT tcp -- anywhere 63.208.196.0/24 tcp dpt:www
ACCEPT all -- anywhere email00.t-online.de
ACCEPT all -- anywhere email03.t-online.de
ACCEPT all -- anywhere email01.t-online.de
ACCEPT all -- anywhere email02.t-online.de
ACCEPT all -- anywhere sfwd00.sul.t-online.de
ACCEPT all -- anywhere sfwd01.sul.t-online.de
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT tcp -- anywhere update.avm.de tcp dpt:www
LOG all -- anywhere anywhere LOG level warning prefix `[IPT] WARNING-CALL-HOME '
Chain TRANS (1 references)
target prot opt source destination
ACCEPT tcp -- 192.168.0.0/24 anywhere multiport dports ftp-data,ftp,ssh,smtp,www,pop3,https,ssmtp,pop3s,6969
ACCEPT udp -- 192.168.0.0/24 anywhere multiport dports domain,bootps,bootpc,80,ntp,sip
ACCEPT icmp -- 192.168.0.0/24 anywhere
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
LOG all -- anywhere anywhere LOG level warning prefix `[IPT] DENY-LAN-ACCESS '
DROP all -- anywhere anywhere
Irgendwie finde ich da keinen Fehler. :gruebel:
Vielen Dank erstmal für Euere Hilfe.