ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Ivan Fedorov <ns_alt_sysadmins@neural.ru>
To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] синтаксис правил firewall в etcet
Date: Sat, 03 Mar 2007 19:34:10 +0800
Message-ID: <45E95D32.6000802@neural.ru> (raw)
In-Reply-To: <200703031025.52593.skompan@kspu.kr.ua>

[-- Attachment #1: Type: text/plain, Size: 499 bytes --]

Serge wrote:
> 1 ) Вот пытаюсь прописать dnat. Взял пример из документации и переделал под 
> свои нужды
> pwd
> /etc/net/ifaces/default/fw/iptables/nat
> cat PREROUTING
> dnat-to 192.168.1.1 if proto tcp from any to 195.2.15.24

dnat-to 192.168.1.1 if proto TCP from any to 195.2.15.24
или
dnat-to 192.168.1.1 if tcp from any to 195.2.15.24


В первом варианте TCP написано большими буквами, а во втором без "proto".

PS: Вы внимательно прочтите сгенерированную команду iptables.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]

  parent reply	other threads:[~2007-03-03 11:34 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-01 10:08 Serge
2007-03-01 10:19 ` Alexey Sidorov
2007-03-01 10:25   ` Serge
2007-03-01 10:58     ` Alexey Sidorov
2007-03-01 13:17       ` Alexey Shabalin
2007-03-03 20:31         ` Konstantin A. Lepikhov
2007-03-03 21:03           ` Alexey Shabalin
2007-03-03  8:25       ` Serge
2007-03-03  8:59         ` Алексей Сидоров
2007-03-03 11:34         ` Ivan Fedorov [this message]
2007-03-01 16:26     ` Andrew Kornilov

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=45E95D32.6000802@neural.ru \
    --to=ns_alt_sysadmins@neural.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