Re: Local SMTP Forwarding

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



iptables -A FORWARD -i eth0 -s ! 1.2.3.4 -o eth1 -p tcp --dport 25 -j DROP
where:
eth0: your internal interface
eth1: your external interface
1.2.3.4: your mail server





Hi All,

I have a IPTables, NAT gateway, and I want to stop local traffic, except
the mail server, from being able to connect to SMTP outside our network.

For instance, some boob with an infected laptop plugged into our network
and we ended up on the spamhuas list for having infected email going out.

Local network is 192.168.99.0/24 on eth0

Anyone know the iptables command I need to do this?

--
Scott
-
: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

-
: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Newbie]     [Audio]     [Hams]     [Kernel Newbies]     [Util Linux NG]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Device Drivers]     [Samba]     [Video 4 Linux]     [Git]     [Fedora Users]

  Powered by Linux