LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   [solved]Redirect TCP port 25 to port 2525 (https://www.linuxquestions.org/questions/linux-security-4/%5Bsolved%5Dredirect-tcp-port-25-to-port-2525-a-4175493183/)

sandilovely24 01-30-2014 04:22 PM

[solved]Redirect TCP port 25 to port 2525
 
...................

MensaWater 01-31-2014 03:04 PM

Rather than removing your question and changing it to just resolved you should post your question AND your solution. That way someone having same issue in the future can find the solution.

sandilovely24 02-03-2014 08:20 AM

I redirect TCP port 25 to port 2525

Code:

$ sudo iptables -t nat -A PREROUTING -i enp2s0 -p tcp --dport 25 -j REDIRECT --to-port 2525
to view nat rules

Code:

$ sudo iptables -t nat -L -n -v
Save rules

Code:

$ sudo iptables-save


All times are GMT -5. The time now is 11:19 PM.