* drop all out going SMTP connection bar two
@ 2006-08-01 22:50 Simon Loewen
2006-08-02 12:02 ` Gáspár Lajos
0 siblings, 1 reply; 2+ messages in thread
From: Simon Loewen @ 2006-08-01 22:50 UTC (permalink / raw)
To: netfilter
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Hi,
I would like to drop all out going SMTP connections through our router
except smtp1.internal and smtp2.internal on all of the outbound
interfaces. I would like to filter on the destination port 25.
Would this be easy to do?
Thanks for any advise,
S.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (GNU/Linux)
iD8DBQFEz9rCkcP1ZXUvpGURCrZ7AJ4haVmH4Hypjq6LjgBFRNFav6EQ1QCgkMkk
m4I4NLc3u12NXg2cOwdrCxE=
=kQ8+
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: drop all out going SMTP connection bar two
2006-08-01 22:50 drop all out going SMTP connection bar two Simon Loewen
@ 2006-08-02 12:02 ` Gáspár Lajos
0 siblings, 0 replies; 2+ messages in thread
From: Gáspár Lajos @ 2006-08-02 12:02 UTC (permalink / raw)
To: Netfilter IPtableMailinglist
Simon Loewen :
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
>
>
> Hi,
>
> I would like to drop all out going SMTP connections through our router
> except smtp1.internal and smtp2.internal on all of the outbound
> interfaces. I would like to filter on the destination port 25.
>
> Would this be easy to do?
>
> Thanks for any advise,
> S.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.4 (GNU/Linux)
>
> iD8DBQFEz9rCkcP1ZXUvpGURCrZ7AJ4haVmH4Hypjq6LjgBFRNFav6EQ1QCgkMkk
> m4I4NLc3u12NXg2cOwdrCxE=
> =kQ8+
> -----END PGP SIGNATURE-----
>
Try this:
iptables -t filter -A FORWARD -j ACCEPT -p tcp -d ip.of.smtp1 --dport 25
iptables -t filter -A FORWARD -j ACCEPT -p tcp -d ip.of.smtp2 --dport 25
iptables -t filter -A FORWARD -j DROP -p tcp --dport 25
In our network I have redirected all smtp traffic to our internal SMTP
server and then allowed that server to send e-mails... :)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-08-02 12:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-01 22:50 drop all out going SMTP connection bar two Simon Loewen
2006-08-02 12:02 ` Gáspár Lajos
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.