How to allow/block SMTP traffic for a particular SolusVM 2 VPS?

Have more questions? Submit a request

Applicable to:

  • SolusVM 2

Question

How to allow/block SMTP traffic for a particular SolusVM 2 VPS?

Answer

This functionality is yet to be implemented in SolusVM 2. There is a feature request for such functionality with ID #SIO-4345 which is under consideration for implementation.

As a workaround:

  1. Login to SolusVM 2 admin panel
  2. Browse to SolusVM 2 > Virtual Servers and note the Hypervisor ID(UUID) and ID of the corresponding VPS:
    ______.JPG
  3. Connect to the corresponding Compute Resource via SSH
  4. Open the file /usr/local/solus/ovs/UUID/rules in text editor.
    Where UUID is the UUID of the corresponding VPS from step 2
  5. Add the following rules to disable SMTP traffic or Remove them to enable SMTP traffic:

    CONFIG_TEXT: ovs-ofctl add-flow br-int "in_port=sol-ID priority=37000 tcp tcp_dst=25 action=drop"
    ovs-ofctl add-flow br-int "in_port=sol-ID priority=37000 tcp tcp_dst=465 action=drop"
    ovs-ofctl add-flow br-int "in_port=sol-ID priority=37000 tcp tcp_dst=587 action=drop"
    ovs-ofctl add-flow br-int "in_port=sol-ID priority=37000 tcp6 tcp_dst=25 action=drop"
    ovs-ofctl add-flow br-int "in_port=sol-ID priority=37000 tcp6 tcp_dst=465 action=drop"
    ovs-ofctl add-flow br-int "in_port=sol-ID priority=37000 tcp6 tcp_dst=587 action=drop"

    Replace ID with the ID of the VPS from step 2.

  6. Restart VPS at SolusVM 2 > Virtual Servers > VPS

Articles in this section

Was this article helpful?
0 out of 0 found this helpful
Share

Comments

0 comments

Please sign in to leave a comment.