Community discussions

MikroTik App
用户头像
sadeghrafie
Long time Member
Long time Member
Topic Author
Posts: 514
加入: Sat Nov 14, 2009 11:28 am
Location:Bushehr, IRAN

src-nat & masquerade

Wed Nov 09, 2011 4:37 pm

Hi,

Do these two code do the same?
What difference?
Code:Select all
add action=masquerade chain=srcnat disabled=no src-address=192.168.99.0/24
Code:Select all
add action=src-nat chain=srcnat disabled=no dst-address=0.0.0.0/0 src-address=192.168.99.0/24 to-addresses="my public IP"
Top
fewi
Forum Guru
Forum Guru
Posts: 7717
加入: Tue Aug 11, 2009 3:19 am

Re: src-nat & masquerade

Wed Nov 09, 2011 6:15 pm

'src-nat' always translates to the specified address. 'masquerade' dynamically translates to the preferred IP address configured on the out-interface.

对静态IP接口的best practice to use 'src-nat'. For dynamic IP interfaces it's necessary to use 'masquerade'.
Top

Who is online

Users browsing this forum:Ahrefs [Bot],Bing [Bot]and 23 guests