Astaro User Bulletin Board
Go Back   Astaro User Bulletin Board > Closed Forums (read only) > ASG V7 Betas > ASG V7.000 BETA (closed)

Welcome to the Astaro User Bulletin Board.
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-31-2006, 04:36 AM
grgcombs's Avatar
Member
 
Join Date: Nov 2006
Location: Dallas, TX
Posts: 67
Default Odd dnat/snat behavior

I'm seeing some odd behavior again in 6.908, that I was able to fix in 5.x regarding dnat/snat.

I've got all my internal network masquerading to [ex.ter.nal.1]

I've got a server in my internal network [192.168.0.5] snat'ed for any service to any destination as [ex.ter.nal.22]

I've got that same server in my internal network dnat'ed such that any traffic on any port coming in to [ex.ter.nal.22] has the destination changed to [192.168.0.5]

[ex.ter.nal.22] should equal [192.168.0.5] in every respect. This works fine when looking at that external address from outside the firewall. From inside the internal network (say 192.168.0.7) I can successfully ping [ex.ter.nal.22], but any attempts to connect to services from inside the network to that external address fail with timeouts. Nothing shows up in the packet filter during this time, so that's not it (I've always made allowances for the services in question).

This was previously remedied with a dnat translation in 5.x to point anything from the internal network going to that external address over to the internal address 192.168.0.5 ... even though this is technically covered in the dnat above, I've added it anyway in an attempt to fix this problem, to no avail. I've also previously employed multiple dns servers, inside and outside the network and I definitely don't want to go this route again.

Any suggestions?

Aside from this, this beta is working really well for me. I love the new webadmin interface. VPN PPTP is flawless for me. I look forward to instructions in implementing VPN SSL.

Greg
__________________
ASL 7, Jetway Hybrid C7 1Ghz, 512MB, PicoLCD, Mini-box M200LCD.
  #2 (permalink)  
Old 12-31-2006, 05:40 AM
RFCat_vk's Avatar
Wizard
 
Join Date: Aug 2005
Location: Victoria, Australia
Posts: 2,945
Default

I don't really understand what you are trying to do, it looks overly complicated to me?

Do you have 2 external interfaces?

Why don't you route the internal traffic to your server within the firewall?

Ian M
__________________
Home User licence - v8.0xx - AMD X2 5050e (45w CPU) with 4gb (idles at 37w),1 intel NIC, the onboard NIC and netgear gs108t with vlans and Astaro AP 30.
essentials licence - v8.0xx - intel D with 1.5gb.
  #3 (permalink)  
Old 12-31-2006, 06:14 AM
grgcombs's Avatar
Member
 
Join Date: Nov 2006
Location: Dallas, TX
Posts: 67
Default

I do, but I'll give you an example of why this is a hassle (and how I fixed it in a moment):

We've got laptops that at times exist inside and outside of the network, as folks take them home or bring them back to work. In setting up their email, we need to have a consistent setting so that the email server's domain name doesn't have to change whenever they take their laptop home. Or the company's website is available both inside and outside the firewall at the same domain name. We want to avoid having to set up two dns servers where one routes the same domain name to both the proper external ip address and the other to the server's internal ip address ... www.xyz.com should work for wherever you're hitting it from, whether it's inside the firewall or outside. This problem always seems to manifest itself whenver you've got a publicly accessible server behind a firewall with nat'ing. The external ip address isn't accessible from inside the firewall, and therefore the real domain name doesn't work from inside the firewall either.

Maybe I'm being too obtuse in my explanations. In any case, I've found the solution for V7.

Create a Full Nat:

Traffic Source = Firewall's Internal Network (192.168.0.0/24)
Traffic Service = Any
Traffic Destination = Server's External (WAN) IP Address

Change Destination to = Server's Internal (LAN) IP Address
Change Source to = Firewall's Internal Address (192.168.0.1/32)

The key that I was missing was the difference between the LAN's internal network and the firwall's internal address.
__________________
ASL 7, Jetway Hybrid C7 1Ghz, 512MB, PicoLCD, Mini-box M200LCD.
  #4 (permalink)  
Old 12-31-2006, 09:32 PM
Member
 
Join Date: Mar 2006
Posts: 98
Default hmmm

somehow, I think there has to be a more efficient way to do what you want. but I am not a pro, so I couldnt tell ya. one way may be to intercept internal requests which point to the external domain and route accordingly... but again, I am no pro.
  #5 (permalink)  
Old 01-04-2007, 07:46 PM
Member
 
Join Date: Oct 2006
Posts: 52
Default

In v7 you shouldn't need that full nat rule at all. I just tested it, and I can connect to my internal web server, even on a public alias address, using only a standard dnat rule like:

Source: Any
Service: HTTP
Destination: External[Alias](Address) or External(Address)
Change Destination: InternalIPDefinition

In v6 you needed to add an SNAT rule, because local clients connecting to an external address on the Astaro from an internal client, but the replies would come directly from the internal webserver. By snatting those connection attempts, the reply traffic would go back through the Astaro, and the client would be able to connect. V7 appears to do this automatically.

Also, you can use static DNS entries in v7 in place of installing an entire DNS server. It would be better to setup a static dns entry, and direct clients to connect directly to the internal server, than it would to 'bounce' traffic off the astaro unnecessarily.
 

Thread Tools
Display Modes

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. The time now is 03:06 AM.

 

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.


These pages are specifically maintained for the discussion of firewall issues within the Open Source community, and might already reflect new alpha/beta releases under development. Please refer to our product specifications for the functionality of the actual release. Discussions of new/enhanced functionality does not constitute a commitment of Astaro, to integrate this functionality into future releases. issues within the Open Source community, and might already reflect new alpha/beta releases under development. Please refer to our product specifications for the functionality of the actual release. Discussions of new/enhanced functionality does not constitute a commitment of Astaro, to integrate this functionality into future releases.