ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: cka3o4nuk <cka3o4nuk@mksat.net>
To: community@altlinux.ru
Subject: Re: [Comm] iptables russian how-to or ....
Date: Fri, 14 Nov 2003 16:05:16 +0300
Message-ID: <200311141605.16226.cka3o4nuk@mksat.net> (raw)
In-Reply-To: <200311140927.17973.dima@academy.cap.ru>

вообщем прочитал я этот ip-tables-how-to
и понял что понял недостаточно поэтому просьбочка

кто нибудь помогите 
поскольку я хочу использовать ip-tables как 
файрвол на домашней машине доступ к интернету 
через модем ip adress выделяется автоматически
поэтому в rc.firewall.txt следует написать

INET_IP=`ifconfig $INET_IFACE | grep inet | cut -d :
 -f 2 | \ cut -d ' ' -f 1` 
INET_IFACE="ppp0"

если я правильно понял

а дальше ничего практически понять не могу

ну разве что 

IPTABLES="/usr/sbin/iptables"

это точно есть далее интересно в альтовсом ядре 
kernel-2.4.22-std-up-alt6 модули уже вкомпилены
или нет?

/sbin/depmod -a

/sbin/modprobe ip_tables
/sbin/modprobe ip_conntrack
/sbin/modprobe iptable_filter
/sbin/modprobe iptable_mangle
/sbin/modprobe iptable_nat
/sbin/modprobe ipt_LOG
/sbin/modprobe ipt_limit
/sbin/modprobe ipt_state


#/sbin/modprobe ipt_owner
#/sbin/modprobe ipt_REJECT
#/sbin/modprobe ipt_MASQUERADE
#/sbin/modprobe ip_conntrack_ftp
#/sbin/modprobe ip_conntrack_irc
#/sbin/modprobe ip_nat_ftp
#/sbin/modprobe ip_nat_irc

что собственно из этого нужно


а делее просьба напишите кто нибудь пожалуйста
4 примера

первый 

входящий пакет через  интерфейс xxx через порт
 xxxx ACCEPT

второй

все остальные пакеты которые идут не через порты
которые указаны в вышестоящих правилах DROP

третий

исходящий пакет через  интерфейс xxx через порт
 xxxx ACCEPT

четвертый 

все остальные пакеты которые уходят не через порты
которые указаны в вышестоящих правилах DROP

буду благодарен за помощь
   

  reply	other threads:[~2003-11-14 13:05 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-12 13:43 cka3o4nuk
2003-11-13  0:06 ` "Алексей Авдеев"
2003-11-13 14:17   ` Andrey Rahmatullin
2003-11-13 15:18     ` Aleksey Avdeev
2003-11-13 16:47       ` Andrey Rahmatullin
2003-11-13 17:05         ` Valery V. Inozemtsev
2003-11-13 17:23           ` Aleksey Avdeev
2003-11-13 17:26             ` Andrey Rahmatullin
2003-11-14  6:27               ` Dmitry Nechaev
2003-11-14 13:05                 ` cka3o4nuk [this message]
2003-11-14 13:12                   ` Данилов Леонид
2003-11-14 14:15                   ` Valery V. Inozemtsev
2003-11-14 15:09                     ` Sergey S. Skulachenko
2003-11-14 15:46                       ` Valery V. Inozemtsev
2003-11-14 14:36                   ` Maxim Tyurin
2003-11-14 14:57                     ` Valery V. Inozemtsev

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=200311141605.16226.cka3o4nuk@mksat.net \
    --to=cka3o4nuk@mksat.net \
    --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