[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

iptables -t mangle -A OUTPUT -j TTL --ttl-set 126



Witam.
To moj furewall:
#! /bin/sh

case "$1" in
start)
echo "Firewall START"
# czyszczenie starych regul
iptables -F
iptables -X
# ustawienie polityki dzialania
iptables -P INPUT DROP
iptables -P OUTPUT ACCEPT
# Przepusc wszystko na loopbacku
iptables -A INPUT -i lo -j ACCEPT
iptables -A OUTPUT -o lo -j ACCEPT

# polaczenia nawiazane
#iptables -A OUTPUT -p tcp -j LOG --log-level debug --log-prefix O
iptables -A INPUT -p tcp -j ACCEPT -m state --state ESTABLISHED,RELATED
iptables -A OUTPUT -p tcp -j ACCEPT -m state --state ESTABLISHED,RELATED
iptables -A INPUT -p udp -j ACCEPT -m state --state ESTABLISHED,RELATED
iptables -A OUTPUT -p udp -j ACCEPT -m state --state ESTABLISHED,RELATED
iptables -A INPUT -p icmp -j ACCEPT -m state --state ESTABLISHED,RELATED
iptables -A OUTPUT -p icmp -j ACCEPT -m state --state ESTABLISHED,RELATED
iptables -A INPUT -p tcp -j LOG --log-level debug --log-prefix qqqqqqq
iptables -A INPUT -p icmp -j LOG --log-level debug --log-prefix PING
#iptables -t mangle -A OUTPUT -j TTL --ttl-set 126
;;
stop)
echo "Firewall STOP"
# czyszczenie starych regul
iptables -F
iptables -X
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
;;
restart)
echo "Firewall RESTART"
$0 stop
$0 start
;;
esac

Po odhaszowaniu iptables -t mangle -A OUTPUT -j TTL --ttl-set 126 wywala:
iptables: No chain/target/match by that name
Co jest grane?

Pozdrawiam



Reply to: