From: Maxim Tyurin <mrkooll@tdr.pibhe.com> To: community@altlinux.ru Subject: Re: [Comm] iptables russian how-to or .... Date: Fri, 14 Nov 2003 16:36:32 +0200 Message-ID: <20031114143632.GC11334@mrkooll.tdr.pibhe.com> (raw) In-Reply-To: <200311141605.16226.cka3o4nuk@mksat.net> [-- Attachment #1: Type: text/plain, Size: 1880 bytes --] On Fri, Nov 14, 2003 at 04:05:16PM +0300, cka3o4nuk wrote: > вообщем прочитал я этот 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" Можно так не извращаться, а резать по интерфейсу (он у вас всегда ppp0 будет) > > если я правильно понял > > а дальше ничего практически понять не могу > > ну разве что > > IPTABLES="/usr/sbin/iptables" > > это точно есть далее интересно в альтовсом ядре > kernel-2.4.22-std-up-alt6 модули уже вкомпилены > или нет? а глянуть самому ls /lib/modules/версия_ядра/kernel/net/ipv4/netfilter Ядро в ALTLinux модульное (все что можно вынесено в модули) Зачем нужен конкретный модуль в iptables-tutorial написано. <scip> > > а делее просьба напишите кто нибудь пожалуйста > 4 примера > > первый > > входящий пакет через интерфейс xxx через порт > xxxx ACCEPT iptables -A INPUT -i xxx -p TCP --dport xxxx -j ACCEPT > > второй > > все остальные пакеты которые идут не через порты > которые указаны в вышестоящих правилах DROP iptables -P INPUT DROP > > третий > > исходящий пакет через интерфейс xxx через порт > xxxx ACCEPT iptables -A OUTPUT -o xxx --sport xxxx -j ACCEPT > > четвертый > > все остальные пакеты которые уходят не через порты > которые указаны в вышестоящих правилах DROP iptables -P OUTPUT DROP > > буду благодарен за помощь Это все в iptables-tutorial есть читайте внимательнее P.S. Совет: не разобравшись в iptables не рекомендую пользоваться генераторами правил - наворотите чудес -- With Best Regards, Maxim Tyurin JID: MrKooll@jabber.pibhe.com [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2003-11-14 14:36 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 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 [this message] 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=20031114143632.GC11334@mrkooll.tdr.pibhe.com \ --to=mrkooll@tdr.pibhe.com \ --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