Skip to content
Discussion options

You must be logged in to vote

I redirect traffic with iptables like so

iptables -t nat -A PREROUTING -p tcp -m tcp --dport 587 -j REDIRECT --to-port 25
iptables -t nat -A OUTPUT -p tcp -m tcp --dport 587 -j REDIRECT --to-port 25

Now both port 25 and 587 works.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@willpower232
Comment options

Answer selected by willpower232
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #3539 on March 05, 2026 09:37.