Hey my friend,
I have used various configuration, none of them are working!!
It's very normal that firewall can not block port 25 with this command.
iptables -A INPUT -p tcp --destination-port {PORT-NUMBER-HERE} -j DROP
It means attend this rule to a chain named INPUT and when the protocol is TCP and destination port is 25, drop the packet.
So, when an OpenVPN tunnel is established, the firewall can not drop the packets inside the tunnel, so we have to add an extra parameter like interface [-i] to our command.
There is 3 interface in the output of "ifconfig" command:
eth0: Ethernet adapter
as0t0: UNSPEC (it seems it's the openvpn adapter)
lo: Local loopback
I have even added iptables rules with interface as0t0 and lo, but no success!! :-(
Anyone can help me ?
regards,
Romedo