ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: "Eugene Prokopiev" <enp@altlinux.org>
To: Sysadmins@lists.altlinux.org
Subject: [Sysadmins] "Макроязык" для firewall
Date: Mon, 28 Jan 2008 09:34:30 +0300
Message-ID: <f7a739430801272234x77cc2edw4a5d073a5f9fd395@mail.gmail.com> (raw)

Здравствуйте!

А есть ли у нас или может кто использует самопальные средства (набор
скриптов, а не GUI) для упрощения написания правил iptables? Я знаю
пока только о поддержке firewall в etcnet, но какое-то оно слишком
низкоуровневое, что ли. Я написал себе простой shell-скрипт с набором
функций, используя которые я могу писать такие правила:

. /opt/scripts/firewall/fw-functions.sh

fw_clear
fw_policy DROP

fw_define_allowed
fw_define_rejected

fw_allow_interface lo

fw_validate_tcp

fw_allow_icmp

fw_allow_client_udp

fw_allow_client_tcp

fw_allow_tcp +   0.0.0.0/0      22
fw_allow_tcp lan 192.168.12.10  222  10.0.101.103   22

fw_forward_to_interface wan 192.168.12.0/24 $WAN_ADDRESS

fw_drop

Можно бы и еще проще (оставить только allow* и forward*), то так для
меня сохраняется максимальная читабельность, хотя сейчас я уже думаю,
что это и не нужно ...

Делает ли кто что-то подобное, и нужны ли (а может есть) такие
средства в Сизифе, т.е. стоит ли опакетить?

-- 
С уважением,
Прокопьев Евгений

             reply	other threads:[~2008-01-28  6:34 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-28  6:34 Eugene Prokopiev [this message]
2008-01-28  8:41 ` [Sysadmins] " Макроязык " " Led
2008-01-28  8:57 ` [Sysadmins] "Макроязык" " Andrew Kornilov
2008-01-28  9:02 ` Anton Kvashin
2008-01-28 10:11 ` Nikolay A. Fetisov
2008-01-28 13:35 ` Евгений Терешков
2008-01-29  6:07   ` Eugene Prokopiev
2008-01-31 16:11 ` Maxim Tyurin
2008-01-31 22:13 ` [Sysadmins] " Макроязык " " Peter V. Saveliev

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=f7a739430801272234x77cc2edw4a5d073a5f9fd395@mail.gmail.com \
    --to=enp@altlinux.org \
    --cc=Sysadmins@lists.altlinux.org \
    /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 sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/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 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

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


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