ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] почта и iptables??
@ 2003-12-19 11:52 Valery Glukhov
  2003-12-19 12:08 ` Mike Lykov
  0 siblings, 1 reply; 11+ messages in thread
From: Valery Glukhov @ 2003-12-19 11:52 UTC (permalink / raw)
  To: community

Добрый день!
Не получается настроить 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



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2003-12-26  8:40 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-19 11:52 [Comm] почта и iptables?? Valery Glukhov
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

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