How best to force all traffic which comes in one port to exit a specific port regardless of routing table? Some traffic coming in on port A is routed to a directly connected subnet on port B, but I want all that traffic coming in on Port A to go out port C. Thanks.
you can use mangle rule, action route. then specify the destination gateway to forward to. I have not tested to see what if it has a conflict with existing routing table though. Worth a try.
Poorly worded requirement which supposed a routing solution vice explaining the functionality desired. Why do you need to frig with ports and why.
For example.
I wish to provide my server for friends which hosts on port 666 but my ISP blocks 666.
I cannot change the host port (fixed port) of my satan server.
I have a limited number of users and I have their public WANIPs if required.
They will use dyndns to access my server dydnsname is “lucifer”
However, without the context of a good requirement, (what we wish to accomplish in plain words and not in not router programming terms, and why) trying to understand or answer contortions on ports and subnets is not fruitful.
@anavds: It sounds like different kind of ports.
Ahh yes silly me he is talking about physical ports and possibly vlans…