Community discussions

MikroTik App
 
WisperISP
just joined
Topic Author
Posts: 20
Joined: Wed Jun 02, 2004 8:05 pm
Location: St Louis
Contact:

Multiple Masquerading rules?

Wed Jul 28, 2004 7:03 pm

Our Public interface has 15 of our /27 sub net address on it. As per the documentation it said I should set the preferred source in the static default route.

S 0.0.0.0/0 r 66.128.120.1 1 Backbone

This does not show it, but the preferred source is 66.128.120.2

I have the following masquerade rules setup.

;;; 192.168.200.0/24
src-address=192.168.200.0/24 action=masquerade to-src-address=66.128.120.3

;;; Everyone Else
action=masquerade to-src-address=66.128.120.2

Even with the last masquerade rule disabled I still only get traffic coming out from our .2 address. Even when I remove the preferred source I still only get traffic from the .2 address. The 192.168.200.0/24 masquerade queue shows traffic. If I move it below the Everyone Else rule it shows no traffic.

Any ideas?

Thanks
 
Dave
just joined
Posts: 24
Joined: Mon May 31, 2004 2:59 pm
Location: Hungary

Thu Jul 29, 2004 12:30 am

if you want to use the network 192.168.200.0/24 with a public IP 66.128.120.3, try this rule:

/ip firewall src-nat add action=nat src-address=192.168.200.0/24 to-src-address=66.128.120.3 out-interface=Public
 
WisperISP
just joined
Topic Author
Posts: 20
Joined: Wed Jun 02, 2004 8:05 pm
Location: St Louis
Contact:

Thu Jul 29, 2004 3:38 am

Thanks that works, however I can not get to any other 66.128.120.0/27 devices on my network except the ones that are assigned to the NOC router. This is not a big deal, I can at least surf, but I was wondering why? I have done some testing and reading with no results.

Thanks again.