Yes Paul, I was referring to the link indicated, however I have managed to resolve the problem. Senility figures into this. [:)] My port redirect was actually working okay. It helps though if the port one is redirecting to is opened to accept the connections. [:D] I opened 2525 in ufw and connects are now getting through to Mercury.
Through all of this though I came across something of interest. The highly recommended procedure for adding rules like this in Debian-based system is to utilize /etc/init.d/local rather than an /etc/rc.local. Here's a link:
https://help.ubuntu.com/community/RcLocalHowto
That's the routine I am using .
I also did alterations to the redirect sample line to fit my needs. Because I have several ethernet connections I specified the one I wanted it on. Also, I guess
REDIRECT --to 2525 works but I "think" it actually should be REDIRECT --to-port 2525
Here's what I came up with for myself:
iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 25 -j REDIRECT --to-port 2525
<p>Yes Paul, I was referring to the link indicated, however I have managed to resolve the problem. Senility figures into this.&nbsp;[:)] My port redirect was actually working okay. It helps though if the port one is redirecting to is opened to accept the connections.&nbsp;[:D] I opened 2525 in ufw and connects are now getting through to Mercury.</p><p>Through all of this though I came across something of interest. The highly recommended procedure for adding rules like this in Debian-based system is to utilize&nbsp; /etc/init.d/local rather than an /etc/rc.local. Here's a link:</p><p>&nbsp;<a href="https://help.ubuntu.com/community/RcLocalHowto" title="https://help.ubuntu.com/community/RcLocalHowto" target="_blank" mce_href="https://help.ubuntu.com/community/RcLocalHowto">https://help.ubuntu.com/community/RcLocalHowto</a></p><p>That's the routine I am using .</p><p> I also did alterations to the redirect sample line to fit my needs. Because I have several ethernet connections I specified the one I wanted it on. Also, I guess</p><p>REDIRECT --to 2525 works but I "think" it actually should be REDIRECT --to-port 2525
</p><p>Here's what I came up with for myself:
</p><p>iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 25 -j REDIRECT --to-port 2525</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p>