Ich suche schon wieder ne weile im www und hab auch schon das frorum erfolglos durchsucht...
ein Freund hat mir folgende Firewall gegeben. Wie kann ich hier ports freischalten?
danke...
Code: Alles auswählen
!/bin/sh
case "$1" in
start | restart )
if [ "$1" = "restart" ]; then
####### kill all input rules
iptables -F INPUT
fi
####### disallow Adobe Reader to "phone home"
iptables -A OUTPUT -p tcp -m owner --cmd-owner acroread -j REJECT --rej\
ect-with tcp-re
set
####### disallow RealPlayer to "phone home"
iptables -A OUTPUT -p tcp -m owner --cmd-owner realplay -j REJECT --rej\
ect-with tcp-re
set
####### allow all local communication
iptables -A INPUT -i lo -j ACCEPT
####### keep all already established communication
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
####### open ssh port
iptables -A INPUT -m state --state NEW -m tcp -p tcp --destination-port\
ssh -j ACCEPT
####### log all communication
# iptables -A INPUT -j LOG
####### reject the rest
iptables -A INPUT -j REJECT
;;
stop)
####### kill all input rules
iptables -F INPUT
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1