Community discussions

 
ik3umt
Member Candidate
Member Candidate
Topic Author
Posts: 248
Joined: Tue Jul 08, 2014 3:58 pm

Change destination port

Tue Sep 20, 2016 11:50 am

A lan machine behind MT nat tries to connect an internet address in a particular port (let's say 8000)

Can MT change the outgoing packet destination port from 8000 to i.e. 9000 with lan machine being unaware of ???

Thanks
 
User avatar
docmarius
Forum Guru
Forum Guru
Posts: 1219
Joined: Sat Nov 06, 2010 12:04 pm
Location: Timisoara, Romania
Contact:

Re: Change destination port

Tue Sep 20, 2016 12:37 pm

Yes.
Dst-nat can change the destination port for udp and tcp:
add action=dst-nat chain=dstnat dst-port=8000 protocol=udp to-ports=9000
Torturing CCR1009-7G-1C-1S+, RB450G, RB750GL, RB951G-2HnD, RB960PGS, RB260GSP, OmniTIK 5HnD and NetMetal 922UAGS-5HPacD + R11e-5HnD in my home network.
 
ik3umt
Member Candidate
Member Candidate
Topic Author
Posts: 248
Joined: Tue Jul 08, 2014 3:58 pm

Re: Change destination port

Tue Sep 20, 2016 1:11 pm

Thank you

I usually do it in wan to lan port forwarding
I need to do it for outgoing packets ( lan to wan) and the translation has to be valid for only a single machine on lan
What should be the right syntax and interfaces involved/ applied to ??

Who is online

Users browsing this forum: PeakyBlinders and 10 guests