Project

General

Profile

Actions

Bug #3106

closed

NAT forward rule error

Added by Jevgenijus S over 10 years ago. Updated over 10 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Rules / NAT
Target version:
Start date:
07/25/2013
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.0.x
Affected Architecture:
All

Description

I need to create internal port forwarding for SMTP with some exclutiosn, all SMTP goes to 192.168.0.15 except some IP address/alias (213.xx.xx.xx)

Firewall: NAT: Port Forward rule
LAN2 TCP 192.167.0.0/16 * ! 213.xx.xx.xx 25 (SMTP) 192.168.0.15 25 (SMTP) SMTP transparent2

So, if in rule exist !(not) - Firewall filter shows an error:
php: : There were error(s) loading the rules: /tmp/rules.debug:415: syntax error pfctl: Syntax error in config file: pf rules not loaded - The line in question reads [415]: rdr on { em1 pptp } proto tcp from 192.167.0.0/16 to ! port 25 tag PFREFLECT -> 127.0.0.1 port 19095

Actions

Also available in: Atom PDF