Feathur / Feathur

VPS Control Panel
http://feathur.com
GNU Affero General Public License v3.0
75 stars 56 forks source link

SMTP connections bug #74

Open Feathur opened 10 years ago

Feathur commented 10 years ago

There is a bug in the SMTP connections counter which allows a vps to be suspended for 'SPAM' even if the connections are coming into the VPS instead of just out of the vps.

Ideally I'd also like to have a mode for this system which blocks port 25 on that server instead of suspending the user at the admin's descression

MrHamel commented 9 years ago

How to block port 25 outbound for a specific source IP address. Tested from inside a Xen PV VPS only.

ip6tables -A OUTPUT -s (ipv6 ip) -p tcp --dport 25 -j DROP iptables -A OUTPUT -s (ipv4 ip) -p tcp --dport 25 -j DROP

ip6tables -D OUTPUT -s (ipv6 ip) -p tcp --dport 25 -j DROP iptables -D OUTPUT -s (ipv4 ip) -p tcp --dport 25 -j DROP