ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Starodumoff Ilya <ripper.mail@gmail.com>
To: sysadmins@lists.altlinux.org
Subject: Re: [Sysadmins] NAT+squid
Date: Sat, 25 Apr 2009 21:09:20 +0600
Message-ID: <200904252109.20419.ripper.mail@gmail.com> (raw)
In-Reply-To: <49F326EF.8050308@gmail.com>

В сообщении от 25 апреля 2009 andriy написал(a):
> Afanasov Dmitry написав(ла):
> > 23.04.09, andriy<l.andriy@gmail.com> написал(а):
> >> Afanasov Dmitry написав(ла):
> >>  А как правильно, чтоб ходил только 25 и 110?
> >
> > программа минимум:
> > 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

-- 
С уважением,
Стародумов Илья

  reply	other threads:[~2009-04-25 15:09 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 [this message]
2009-04-25 16:12           ` Alexey I. Froloff
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=200904252109.20419.ripper.mail@gmail.com \
    --to=ripper.mail@gmail.com \
    --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