Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am setting up a Vyatta router to replace my pfSense box that died. As I setting up the NAT rules I am not sure how they are processed.

Are Vyatta's NAT rules processed in the order of the list until the first match?

I have several rules that are destination rules for things like Zimbra and OpenVPN.

But at the bottom of my NAT rules I have a source NAT rule that defines anything coming from my subnet 10.0.0.0/24 should be NAT'd to my second usable public IP address.

So if I needed a specific NAT rule like one for my Zimbra server which sits on the third usable public IP would that need to BEFORE the general NAT rule?

share|improve this question
add comment

1 Answer

Rules are processed in accept numerical order. If Rule 1 processes and agrees with statement, then statement is applied. If Rule 1 is false, then rule is not applied and moves on to Rule 2.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.