Open Feathur opened 10 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
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