Old 12-20-2011, 12:01 AM   #1 (permalink)
Master Untangler
 
Join Date: Apr 2008
Location: New Orleans, La
Posts: 103
johndball is on a distinguished road
Default "Destination Address" rule causes traffic to be blocked

When adding "Destination Address" in a firewall rule the traffic to that port is blocked. Once "Destination Address" is removed the traffic is successfully passed to the host.

Ideas for 9.1? I made a clone of the 7.4 hard drive and am putting that on our new hardware but what should I do whenever we upgrade back to 9.1? This current setup is causing issues.
johndball is offline  
Old 12-20-2011, 03:07 AM   #2 (permalink)
Master Untangler
 
f1assistance's Avatar
 
Join Date: Apr 2009
Location: Holly Springs, NC
URLs submitted: 154
Posts: 218
f1assistance is on a distinguished road
Default

Quote:
Originally Posted by johndball View Post
When adding "Destination Address" in a firewall rule the traffic to that port is blocked. Once "Destination Address" is removed the traffic is successfully passed to the host.
What are you attempting to do...what is the rule and where in the order of other rules does it exist?
__________________
Untangle...because nothing is worse than doing nothing!
-------
2, Pentium (R) Dual-Core CPU E5300 @ 2.60GHz 2599.968, 2089.96MB RAM
f1assistance is offline  
Old 12-20-2011, 03:55 AM   #3 (permalink)
Master Untangler
 
Join Date: Apr 2008
Location: New Orleans, La
Posts: 103
johndball is on a distinguished road
Default

I apologize, I mentioned in "Firewall" when it is in networking --> Port Forwards. It has been a long day.

Source interface : Any WAN
Protocol : TCP
Destination Port : 33390
Destination Address : 192.168.2.2

Rule is set to enable.

The rule doesn't work.

Upon removing "destination address" the rule works fine.

I'm also unable to determine what particular build revision I am running. Maybe this can help:
Build: 9.1.0~svn20111209r30408release9.1-1lenny

Last edited by johndball; 12-20-2011 at 03:58 AM..
johndball is offline  
Old 12-20-2011, 04:54 AM   #4 (permalink)
Untangle Ninja
 
dwasserman's Avatar
 
Join Date: Jun 2008
Location: Argentina
URLs submitted: 57
Posts: 3,634
dwasserman is on a distinguished road
Default

Dont understand, if you remove dest address where go the packets with dest port 33390? somewhere you have a rule 1:1 nat?
__________________
The world is divided into 10 kinds of people, who know binary and those not
dwasserman is offline  
Old 12-20-2011, 06:23 AM   #5 (permalink)
Untangle Ninja
 
sky-knight's Avatar
 
Join Date: Apr 2008
Location: Phoenix, AZ
URLs submitted: 8
Posts: 15,454
sky-knight is on a distinguished road
Default

Port forward rules happen pre-NAT, the destination address flag is supposed to use the public address. The private address goes in the new destination field.

The firewall module happens post-NAT, so the destination address flag there will use the private address.

Also you cannot upgrade from 7.4 to current. Not unless you get under the hood and play with apt.
__________________
Rob Sandling, BS:SWE, MCP
Intouch Technology
Phone: 480-272-9889
rob@intouchtechllc.com

UntangleAppliances.com
Phone: 866-794-8879
sky-knight is offline  
Old 12-20-2011, 08:16 AM   #6 (permalink)
Untangle Junkie
 
dmorris's Avatar
 
Join Date: Nov 2006
Location: San Mateo, CA
URLs submitted: 10
Posts: 10,611
dmorris is on a distinguished road
Default

Quote:
Originally Posted by johndball View Post
Destination Address : 192.168.2.2

Upon removing "destination address" the rule works fine.
So if you remove the matcher that specifies that the traffic should only match traffic to 192.168.2.2 then the traffic matches. This suggests to me that the traffic isn't destined to 192.168.2.2.
Where was the traffic destined to?

Also, where are you forwarding it to?
__________________
Attention: Support and help on the Untangle Forums is provided by
volunteers and community members like yourself.
If you need Untangle support please call or email support@untangle.com
dmorris is offline  
Old 12-20-2011, 08:03 PM   #7 (permalink)
Master Untangler
 
Join Date: Apr 2008
Location: New Orleans, La
Posts: 103
johndball is on a distinguished road
Default

The forwarding rule I created in 9.1 matched exactly the forwarding rule I had in 7.4 before I moved up to 9.1. It worked in 7.4, it didn't work in 9.1.

The exact forwarding rule is as follows:
Source interface : Any WAN
Protocol : TCP
Destination Port : 33390
Destination Address : 192.168.2.2

Using SuperScan I port scanned my firewall. 33390 is closed. Upon removing "destination address" and port scanning 33390 is open AND I can RDP into that port (that is a custom RDP port).

Same thing with our DRAC. I cannot access the Dell Remote Access Card on ANY port unless destination address is removed from the forwarding rule.

These rules were created EXACTLY from 7.4 rules. I even pulled the hard drive that still had 7.4 on it out, plugged it into the old firewall, booted the damn thing, had two monitors side-by-side and compared my work. It is THE SAME in 7.4 and 9.1 but does not work in 9.1.
johndball is offline  
Old 12-20-2011, 08:26 PM   #8 (permalink)
Untangle Ninja
 
sky-knight's Avatar
 
Join Date: Apr 2008
Location: Phoenix, AZ
URLs submitted: 8
Posts: 15,454
sky-knight is on a distinguished road
Default

And? 7.4 allowed things that were broken. The rule you just listed as a port forward should have NEVER worked. The matching in the NAT engine must take place before NAT is performed.

The firewall module is different, as is the packet filter.

Please simply change destination address to reflect the public address you want translated, and use the new destination field to specify the correct internal address.
__________________
Rob Sandling, BS:SWE, MCP
Intouch Technology
Phone: 480-272-9889
rob@intouchtechllc.com

UntangleAppliances.com
Phone: 866-794-8879
sky-knight is offline  
Old 12-20-2011, 08:51 PM   #9 (permalink)
Master Untangler
 
Join Date: Apr 2008
Location: New Orleans, La
Posts: 103
johndball is on a distinguished road
Default

Hard to believe that since version 6 when I started using Untangle that this has been "broken" and it has suddenly caught up to me when I deployed version 9.1. Why does it work in 9.1 if I remove the destination field?

Can you post an example fowarding rule using this data:
I want to foward extenal (WAN) traffic coming in on TCP port 65123 to internal (LAN) host 192.168.1.1.

Last edited by johndball; 12-20-2011 at 08:55 PM..
johndball is offline  
Old 12-20-2011, 09:08 PM   #10 (permalink)
Untangle Ninja
 
sky-knight's Avatar
 
Join Date: Apr 2008
Location: Phoenix, AZ
URLs submitted: 8
Posts: 15,454
sky-knight is on a distinguished road
Default

I just did

With port forward rules in advanced mode you want the following flags:

Destination Local or Destination Address (these define a prenat destination to match packets)
Protocol
Destination port

Those are the big three that I use on any forward rule, and always have, and they always work. A fourth is source interface, but that isn't always wanted or needed.

And I can pull out the ages old button too, I started with UT 5.1.

I'll say it once again, port forward rules must happen on pre-nat network sessions. The stuff in the drop downs that you're matching are the network session before the NAT engine changes anything. After all, you're configuring the NAT engine to CHANGE a specific bit of traffic, that traffic isn't bound for the internal address until AFTER that forward rule gets done with it so how can you match on it?

Now the FIREWALL rule that goes with that NAT entry will use destination address: internal IP. Because the rack sees traffic after NAT is done with it, so at that point the network session is actually destined for the internal address.
__________________
Rob Sandling, BS:SWE, MCP
Intouch Technology
Phone: 480-272-9889
rob@intouchtechllc.com

UntangleAppliances.com
Phone: 866-794-8879
sky-knight is offline  
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 06:33 AM.


© 2010 Untangle, Inc. All Rights Reserved.   SEO by vBSEO 3.6.0 PL2