Incoming / outgoing traffic

georgy.goshin

Member
Sep 27, 2021
23
0
6
48
Hello

Would like to ask for the advice for probably typical use scenario. Need to setup the gateway for both incoming and outgoing traffic for whole network. Both traffic should income via tcp/25, is it possible to divide the traffic by different IP addresses, not ports? Or, otherwise, divide the traffic based on src ip?

Thanks,
Dmitri.
 
Both traffic should income via tcp/25, is it possible to divide the traffic by different IP addresses, not ports? Or, otherwise, divide the traffic based on src ip?
yes - although not via the GUI - The following options are available:
* do a redirect from port 25 to port 26 if the mail comes from an internal IP in your firewall (should also be possible with iptable rules on PMG itself IIRC)
* adapt the master.cf.in template using the templateing system:
https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html#pmgconfig_template_engine
and let the smtpd service configured to listen on [% pmg.mail.int_port %] [/code] to listen to one particular ip - and the other smtpd listener (postscreen) to listen to the other one. I hope this helps!