ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: "Alexey I. Froloff" <raorn@altlinux.org>
To: sysadmins@lists.altlinux.org
Subject: Re: [Sysadmins] NAT+squid
Date: Sat, 25 Apr 2009 20:12:01 +0400
Message-ID: <20090425161201.GA13284@altlinux.org> (raw)
In-Reply-To: <200904252109.20419.ripper.mail@gmail.com>

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

* Starodumoff Ilya <ripper.mail@> [090425 19:11]:
> > > программа минимум:
> > > iptables -P FORWARD DROP
> > > iptables -A FORWARD -p tcp -i eth0 -o eth1 --dport 25 -j ACCEPT
> > > iptables -A FORWARD -p tcp -i eth0 -o eth1 --dport 110 -j ACCEPT
> > > iptables -t nat -A POSTROUTING -o eth1 -j SNAT --to-source
> > > xxx.xxx.xxx.xxx
> > не работает
> и не должно, потому что забыто:
> iptables -I INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
Только в FORWARD.  Хотя и в INPUT тоже не помешает.

-- 
Regards,
Sir Raorn.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

  reply	other threads:[~2009-04-25 16:12 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-23  5:13 andriy
2009-04-23 14:26 ` Denis Nazarov
2009-04-23 17:11 ` Afanasov Dmitry
2009-04-23 18:20   ` andriy
2009-04-24  5:16     ` Afanasov Dmitry
2009-04-25 15:06       ` andriy
2009-04-25 15:09         ` Starodumoff Ilya
2009-04-25 16:12           ` Alexey I. Froloff [this message]
2009-04-25 16:15             ` Starodumoff Ilya
2009-04-26 17:33             ` Vyatcheslav Perevalov
2009-04-26 18:57               ` Afanasov Dmitry

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=20090425161201.GA13284@altlinux.org \
    --to=raorn@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