ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Valery Glukhov <belpak@mail.ru>
To: community@altlinux.ru
Subject: [Comm] почта и iptables??
Date: Fri, 19 Dec 2003 13:52:44 +0200
Message-ID: <20031219135244.5336ad70.belpak@mail.ru> (raw)

Добрый день!
Не получается настроить iptables, чтобы получить и отправить почту с почтового сервера на компе в одной конторе (адрес 193.193.193.193). Сеть 192.168.2.0 - это диалапщики на модемах. Не работает ни на 193.193.193.193, ни на 192.168.2.0. Подскажите, плз, где и какое правило неправильно написал (или недописал что-то). 


С уважением,
Валерий

# Generated by iptables-save v1.2.6a on Wed Dec 17 10:11:15 2003
*mangle
:PREROUTING ACCEPT [20609:4819093]
:INPUT ACCEPT [4863:1162093]
:FORWARD ACCEPT [13789:3508638]
:OUTPUT ACCEPT [2687:279138]
:POSTROUTING ACCEPT [16462:3786700]
COMMIT
# Completed on Wed Dec 17 10:11:15 2003
# Generated by iptables-save v1.2.6a on Wed Dec 17 10:11:15 2003
*filter
:INPUT DROP [62:4602]
:FORWARD DROP [3:144]
:OUTPUT DROP [11:932]
-A INPUT -p tcp -m tcp --tcp-flags FIN,SYN,ACK SYN -m state --state NEW -j DROP
-A INPUT -p tcp -m tcp ! --tcp-flags SYN,RST,ACK SYN -m state --state NEW -j LOG --log-prefix "New not SYN:"
-A INPUT -p tcp -m tcp ! --tcp-flags SYN,RST,ACK SYN -m state --state NEW -j DROP
-A INPUT -s 192.168.2.0/255.255.255.240 -i 192.168.2.1 -j ACCEPT
-A INPUT -s 127.0.0.1 -i lo -j ACCEPT
-A INPUT -s 193.193.193.193 -i lo -j ACCEPT # примерный адрес
-A INPUT -i eth0 -p udp -m udp --sport 68 --dport 67 -j ACCEPT
-A INPUT -i eth0 -p tcp -m tcp --sport 68 --dport 67 -j ACCEPT
-A INPUT -i eth0 -p udp -m udp --sport 67 --dport 68 -j ACCEPT
-A INPUT -i eth0 -p tcp -m tcp --sport 67 --dport 68 -j ACCEPT
-A INPUT -d 193.193.193.193 -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -s 192.168.2.0/255.255.255.240 -d 192.168.2.1 -i ppp+ -p tcp -m tcp --dport 22 -j ACCEPT
-A INPUT -i eth0 -p icmp -m icmp --icmp-type 8 -j ACCEPT
-A INPUT -i eth0 -p icmp -m icmp --icmp-type 11 -j ACCEPT
-A INPUT -i eth0 -p udp -m udp --dport 53 -j ACCEPT
-A INPUT -i eth0 -p tcp -m tcp --dport 53 -j ACCEPT
-A INPUT -s 193.193.193.193 -p tcp -m tcp --dport 25 -j ACCEPT
-A INPUT -s 193.193.193.193 -p tcp -m tcp --dport 110 -j ACCEPT
-A FORWARD -s 192.168.2.0/255.255.255.240 -j ACCEPT
-A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
-A OUTPUT -s 127.0.0.1 -j ACCEPT
-A OUTPUT -s 192.168.2.1 -j ACCEPT
-A OUTPUT -s 193.193.193.193 -j ACCEPT
COMMIT
# Completed on Wed Dec 17 10:11:15 2003
# Generated by iptables-save v1.2.6a on Wed Dec 17 10:11:15 2003
*nat
:PREROUTING ACCEPT [1029:85156]
:POSTROUTING ACCEPT [69:4005]
:OUTPUT ACCEPT [77:4661]
-A POSTROUTING -s 192.168.2.0/255.255.255.240 -j MASQUERADE
COMMIT
# Completed on Wed Dec 17 10:11:15 2003



             reply	other threads:[~2003-12-19 11:52 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-19 11:52 Valery Glukhov [this message]
2003-12-19 12:08 ` Mike Lykov
2003-12-19 12:24   ` Valery Glukhov
2003-12-19 12:28     ` Mike Lykov
2003-12-19 13:15       ` Valery Glukhov
2003-12-19 13:45         ` [Comm] " Michael Shigorin
2003-12-19 20:59         ` [Comm] почта и iptables?? [JT] Vitaly Lipatov
2003-12-23  9:37           ` Antonio
2003-12-23 11:32             ` Pavel N. Solovyov
2003-12-23 12:02               ` Antonio
2003-12-26  8:40               ` Valery Glukhov

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=20031219135244.5336ad70.belpak@mail.ru \
    --to=belpak@mail.ru \
    --cc=community@altlinux.ru \
    /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 Community general discussions

This inbox may be cloned and mirrored by anyone:

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

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


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