mein Squid Server läuft soweit. Jetzt wollte ich die Firewall schließen und die benötigten Ports öffnen.
An meinem Client ist hierfür lediglich der Port 3128 offen.
Code: Alles auswählen
table ip filter {
chain input {
type filter hook input priority 0; policy drop;
tcp dport 3128 ip saddr SquidServerIP accept comment "Squid Proxy"
}
chain output {
type filter hook output priority 0; policy drop;
tcp dport 3128 ip daddr SquidServerIP accept comment "Squid Proxy"
}
Wenn ich am Suid Server jetzt meine Regeln anlege, bekommt mein Client keine Webseite mehr angezeigt. Ich habe hier aktuell nur die Squid Regeln angegeben.
Code: Alles auswählen
table ip filter {
chain input {
type filter hook input priority 0; policy drop;
tcp dport 3128 ip saddr 192.168.1.0/24 accept comment "Squid Proxy"
}
chain forward {
type filter hook forward priority 0; policy drop;
}
chain output {
type filter hook output priority 0; policy drop;
tcp dport 3128 accept comment "Squid Proxy"
tcp dport 80 accept comment "HTTP"
tcp dport 443 accept comment "HTTPS"
}
table ip6 filter {
chain input {
type filter hook input priority 0; policy drop;
}
chain forward {
type filter hook forward priority 0; policy drop;
}
chain output {
type filter hook output priority 0; policy drop;
}
}
table ip nat {
chain prerouting {
type nat hook prerouting priority 0; policy drop;
redirect
}
chain postrouting {
type nat hook postrouting priority 100; policy drop;
masquerade
}
Hat jemand eine Idee wo ich etwas übersehen habe?