Community discussions

MikroTik App
 
michianawireless
just joined
Topic Author
Posts: 8
Joined: Fri Mar 21, 2008 11:08 am

DST NAT Redirect NOT working?

Sun Apr 22, 2012 9:11 am

I have 5.7 installed.

I have a mangle rules to mangle a given domain to mark the packet destined to test.com with the packet-mark=proxy

0 chain=forward action=mark-packet new-packet-mark=proxy passthrough=yes content=test.com

this is working fine counters are incrementing.

Now I have a rule to redirect traffic marked with packet-mark=proxy to the local proxy server but its not working:

0 chain=dstnat action=redirect to-ports=8080 protocol=tcp src-address=10.3.1.18 packet-mark=proxy

The mangle rules marking packets but the nat is not redirecting? I also tried connection-mark same results mangle works but redirect rule doesnt.

Any ideas?
 
User avatar
cbrown
Trainer
Trainer
Posts: 1839
Joined: Thu Oct 14, 2010 8:57 pm
Contact:

Re: DST NAT Redirect NOT working?

Mon Apr 23, 2012 4:20 pm

Look at this. This will help. Your dst-nat is happening before you mark your packet.

http://wiki.mikrotik.com/wiki/Manual:Packet_Flow
 
michianawireless
just joined
Topic Author
Posts: 8
Joined: Fri Mar 21, 2008 11:08 am

Re: DST NAT Redirect NOT working?

Tue Apr 24, 2012 1:26 am

Look at this. This will help. Your dst-nat is happening before you mark your packet.

http://wiki.mikrotik.com/wiki/Manual:Packet_Flow
Thanks for the link. I do see that what you are saying ... So how do I get around this?

Who is online

Users browsing this forum: No registered users and 153 guests