Community discussions

MikroTik App
 
medobond
newbie
Topic Author
Posts: 28
Joined: Wed Aug 31, 2011 3:12 am

X-Forwarded support

Tue Aug 16, 2016 10:31 am

Experts,
Does MikroTik support X-Forward, i use destnat to purplish my E-mail server, but the connections in logs show coming from the MikroTik IP, i need to log the original source IP.
 
pe1chl
Forum Guru
Forum Guru
Posts: 10183
Joined: Mon Jun 08, 2015 12:09 pm

Re: X-Forwarded support

Tue Aug 16, 2016 1:31 pm

With destination NAT the original source IP is not translated!
That is source NAT. Probably you have both of them. Remove the source NAT.
 
User avatar
Cha0s
Forum Guru
Forum Guru
Posts: 1135
Joined: Tue Oct 11, 2005 4:53 pm

Re: X-Forwarded support

Tue Aug 16, 2016 1:46 pm

Experts,
Does MikroTik support X-Forward, i use destnat to purplish my E-mail server, but the connections in logs show coming from the MikroTik IP, i need to log the original source IP.
No, Mikrotik does not support X-Forwarded since dstnat is NAT not Proxying.

That said, dstnat does not change the source IP of the connections.

So most likely you have some error in your configuration that srcnat/masquerade everything (even connections TO your network, instead of connection FROM your network only).
 
medobond
newbie
Topic Author
Posts: 28
Joined: Wed Aug 31, 2011 3:12 am

Re: X-Forwarded support

Tue Aug 16, 2016 6:17 pm

Experts,
Does MikroTik support X-Forward, i use destnat to purplish my E-mail server, but the connections in logs show coming from the MikroTik IP, i need to log the original source IP.
No, Mikrotik does not support X-Forwarded since dstnat is NAT not Proxying.

That said, dstnat does not change the source IP of the connections.

So most likely you have some error in your configuration that srcnat/masquerade everything (even connections TO your network, instead of connection FROM your network only).


Thx Cha0s, problem solved after modifying scnat rule,
 
ntahmed
just joined
Posts: 1
Joined: Sat Jul 18, 2020 10:10 pm

Re: X-Forwarded support

Sat Jul 18, 2020 10:11 pm

hi Medobond,

What modifications you did. I am facing same issue.

Who is online

Users browsing this forum: No registered users and 14 guests