Can REDIRECT be realized in FORWARD?!
Hi!
Can REDIRECT be realized in FORWARD?!
I'm writting a target that mainly used in the FORWARD! In this target ,I want to REDIRECT all the packet! so I used the function redirect_target() function that is in the ipt_REDIRECT! But it worked correctly with the packet that has been DNAT, and not to the packet that will be SNAT! But why! Is that I'm wrong?! Is there any method to realize it!
Quoted 1 line
Can REDIRECT be realized in FORWARD?!
No.
What do you want to accomplish, that you cannot accomplish with the way things are meant to be?
"I'm in the habit of putting everything into FORWARD" does NOT count.
I doubt that there is any easy, painless way to move REDIRECT into the filter table. It is designed to be used in the NAT table.
best regards
Patrick