ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: "Vladimir V. Kamarzin" <vvk@vvk.pp.ru>
To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] etcnet & FW rules (human readable )
Date: Thu, 17 Jan 2008 11:28:22 +0500
Message-ID: <m3zlv5vud5.fsf@vvk.distance.ru> (raw)
In-Reply-To: <f041fbd00801090631s1f6313f4v8f3a3dc200ab7640@mail.gmail.com> (Maks Re's message of "Wed, 9 Jan 2008 17:31:03 +0300")

>>>>> On 09 Jan 2008 at 19:31 "MR" == Maks Re writes:

 MR> вапрос:
 MR> как должно выглядеть правило проброски порта для следующего примера в
 MR> режиме human readable?

 MR> iptables -A PREROUTING -d 1.2.3.4 -i eth1 -p tcp -m tcp --dport 80 -j
 MR> DNAT --to-destination 192.168.100.12:80

 MR> а то я что-то не осилил...

Кстати не обязательно использовать именно "human syntax". Можно просто писать
правила iptables. Например, вышеуказанное будет выглядеть как

/etc/net/ifaces/xxx/fw/iptables/nat/PREROUTING:
-d 1.2.3.4 -i eth1 -p tcp -m tcp --dport 80 -j DNAT --to-destination
192.168.100.12:80

При этом human syntax лучше отключить:
IPTABLES_HUMAN_SYNTAX=no
в /etc/net/ifaces/default/fw/options

-- 
vvk

Russian Postfix irc: irc.freenode.net #postfix-ru

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

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-09 14:31 Maks Re
2008-01-10  0:44 ` Andrew Kornilov
2008-01-10  0:48   ` Andrew Kornilov
2008-01-17  6:28 ` Vladimir V. Kamarzin [this message]
2008-01-18  8:29   ` Aleksey Avdeev
2008-01-18  8:57     ` Vladimir V. Kamarzin
2008-01-18  9:35       ` ua2fgb

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=m3zlv5vud5.fsf@vvk.distance.ru \
    --to=vvk@vvk.pp.ru \
    --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