Hi I run a small public VPN.
I received an Abuse report today from a company claiming someone was sending phishing mails from one of my VPN Servers. I have about 100 users and the all use a shared IP so there is no way for me to tell which user is causing these issues.
My question is, is there a way to block sending mails all together while connected to the VPN.
This is the bash script that does the IPtables for me at the moment.
#!/bin/sh
ipaddr='SERVERIPADDRESSHERE'
echo "Stopping firewall and allowing everyone..."
iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X
iptables -t mangle -F
iptables -t mangle -X
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -j SNAT --to-source $ipaddr
iptables -t nat -A POSTROUTING -s 10.8.1.0/24 -j SNAT --to-source $ipaddr
iptables -t nat -A POSTROUTING -o venet0 -j SNAT --to-source $ipaddr
service iptables save
service openvpn restart