ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Egorov Alexey <egorov@strat.chtts.ru>
To: ALT Linux Community <community@altlinux.ru>
Subject: Re: [Comm] Помогите, kernel panic
Date: Wed, 21 Sep 2005 10:05:48 +0400
Message-ID: <4330F83C.8040707@strat.chtts.ru> (raw)
In-Reply-To: <20050921055118.GK3908@ldc.net>

Dmytro O. Redchuk wrote:
> On Wed, Sep 21, 2005 at 09:10:54AM +0400, Egorov Alexey wrote:
>   
> А что в iptables?
>
> (У меня были падения при разных играх с RELATED,ESTABLISHED для tftpd)
>
> А ядро какое?
>
> (Я переставил на alt12 -- и остановил эксперименты:)
>   
Ядро kernel-image-std-up-2.4.26-alt12.i586.rpm из updates
Вот iptables (сильно не ругайте если что):
$IPTABLES -F
$IPTABLES -X
$IPTABLES -t nat -F
$IPTABLES -t nat -X
$IPTABLES -P INPUT DROP
$IPTABLES -P OUTPUT DROP
$IPTABLES -P FORWARD DROP
#
$IPTABLES -N allowed
$IPTABLES -A allowed -j ULOG --ulog-nlgroup 1 --ulog-qthreshold 50 
--ulog-cprange 100 --ulog-prefix allow
$IPTABLES -A allowed -j ACCEPT
$IPTABLES -N rejected
$IPTABLES -A rejected -j ULOG --ulog-nlgroup 1 --ulog-qthreshold 50 
--ulog-cprange 100 --ulog-prefix drop
$IPTABLES -A rejected -j DROP
#
$IPTABLES -N bad_packets
$IPTABLES -N good_packets
$IPTABLES -N udp_packets
$IPTABLES -N icmp_packets
#
$IPTABLES -A bad_packets -p TCP --tcp-flags SYN,ACK SYN,ACK -m state 
--state NEW -j rejected
$IPTABLES -A bad_packets -p TCP ! --syn -m state --state NEW -j rejected
$IPTABLES -A bad_packets -m state --state INVALID -j rejected
#
$IPTABLES -A good_packets -m state --state ESTABLISHED,RELATED -j allowed
#
$IPTABLES -A udp_packets -p UDP -s 0/0 --dport 53 -j allowed
$IPTABLES -A udp_packets -p UDP -s 0/0 --dport 135:139 -j rejected
#
$IPTABLES -A icmp_packets -p ICMP -s 0/0 --icmp-type 8 -j rejected
$IPTABLES -A icmp_packets -p ICMP -s 0/0 --icmp-type 11 -j allowed
$IPTABLES -A icmp_packets -p ICMP --fragment -j rejected
#
$IPTABLES -A INPUT -i ! $INET_DEVICE -j allowed
$IPTABLES -A INPUT -i $INET_DEVICE -j bad_packets
$IPTABLES -A INPUT -i $INET_DEVICE -j good_packets
$IPTABLES -A INPUT -i $INET_DEVICE -p UDP -j udp_packets
$IPTABLES -A INPUT -i $INET_DEVICE -p ICMP -j icmp_packets
$IPTABLES -A INPUT -i $INET_DEVICE -j rejected
#
$IPTABLES -A FORWARD -i ! $INET_DEVICE -j allowed
$IPTABLES -A FORWARD -i $INET_DEVICE -j bad_packets
$IPTABLES -A FORWARD -i $INET_DEVICE -j good_packets
$IPTABLES -A FORWARD -i $INET_DEVICE -j rejected
#
$IPTABLES -A OUTPUT -j allowed
#
# NAT
$IPTABLES -t nat -A POSTROUTING -o $INET_DEVICE -s $LOCAL_IP -j SNAT 
--to $INET_ADDR





  reply	other threads:[~2005-09-21  6:05 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-21  5:10 Egorov Alexey
2005-09-21  5:51 ` Dmytro O. Redchuk
2005-09-21  6:05   ` Egorov Alexey [this message]
2005-09-21  6:38     ` Dmytro O. Redchuk
2005-09-21 13:07 ` [Comm] " Michael Shigorin
2005-09-21 13:36   ` Egorov Alexey
2005-09-22  6:11     ` Egorov Alexey
2005-09-22 20:18       ` "А. Куликовский"
2005-09-23  4:35         ` Alexey V. Novikov
2005-09-23  4:53           ` Egorov Alexey
2005-09-23  5:07             ` Alexey V. Novikov
2005-09-23  6:16               ` Egorov Alexey
2005-09-23  8:24                 ` Michael Shigorin
2005-11-02  9:04                   ` Roman Savochenko
2005-11-03  7:39                     ` Roman Savochenko
2005-11-03 21:31                       ` Michael Shigorin
2005-11-04  6:39                         ` Roman Savochenko
2005-11-04  6:36                       ` Roman Savochenko
2005-11-04  6:50                         ` Roman Savochenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4330F83C.8040707@strat.chtts.ru \
    --to=egorov@strat.chtts.ru \
    --cc=community@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git