Astaro User Bulletin Board
Go Back   Astaro User Bulletin Board > Astaro Gateway Products > VPN: Site to Site and Remote Access

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.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-16-2010, 02:41 PM
Junior Member
 
Join Date: Mar 2010
Posts: 4
Default Site to Site Routing Issue

I've been stuck for two days trying to get a Site to Site IPsec VPN between two locations. The VPN connection appears to be working (see screenshot), however, it seems I'm having trouble routing through it. Here are the details:

Astaro Security Gateway (7.504) NETWORK A
Interfaces:
--------------------------
eth0 : (internal) 192.168.0.1 255.255.255.0
eth1 : (external) ***.***.***.***

VPN Connection settings:
Auto Packet filter is ON
Strict routing is OFF
Local Network: 192.168.0.0/24

VPN Remote Gateway Settings:
Gateway type:Initiate Connection (both sides are static)
Authentication type: PSK
Remote networks: 172.16.0.0/19

pfSense Firewall NETWORK B
--------------------------
eth0 : (internal) 172.16.0.1 - 255.255.224.0
eth1 : (external) ***.***.***.***


I have a mail server on network A that I need to access from network B. It is located at 192.168.0.75

I have a user pc on network B that needs access to resources on network A. It is located at 172.16.0.19

Here are the tests:

If I run a ping test from 172.16.0.19 --> 192.168.0.1, all pings return just fine. This leads me to believe that traffic is getting through the VPN.

If I run a ping test from 172.16.0.19 --> 192.168.0.75, all pings do NOT return.

If I run a traceroute from 172.16.0.19 --> 192.168.0.75, the first hop shows the astaro's local ip of 192.168.0.1. All hops after that timeout.

If I run a ping from the astaro (webmin>support>tools>ping check) 192.168.0.1 --> 192.168.0.75, all pings return just fine.

If I run a ping from the astaro, 192.168.0.1 --> 172.16.0.1, I get the following error (see screenshot):

Ping check did not deliver a result, because of a probably non-existing ip address / hostname

If I run a traceroute from 192.168.0.75 --> 172.16.0.1, the first hop shows the astaro's local ip of 192.168.0.1. All hops after that timeout.

Thinking it might be issues with ICMP packets (though global ICMP settings on astaro are enabled), I also tried TELNETTing from 172.16.0.19 --> 192.168.0.75 port 25 with no response.

There may be more than one issue here as pings from network B can get to at least the astaro on network A while it seems pings from network A can't get to network B at all. What am I missing? Any help would be greatly appreciated. Thanks!
Attached Images
File Type: jpg vpnstatus.jpg (42.3 KB, 8 views)
File Type: jpg pingtest1.jpg (33.7 KB, 5 views)
Reply With Quote
  #2 (permalink)  
Old 03-16-2010, 06:48 PM
BAlfson's Avatar
Moderator
 
Join Date: Mar 2007
Location: Oklahoma City
Posts: 6,624
Default

Quote:
If I run a traceroute from 192.168.0.75 --> 172.16.0.1, the first hop shows the astaro's local ip of 192.168.0.1. All hops after that timeout.
OK, that confirms that 192.168.0.1 is the default gateway for 192.168.0.75.

Try checking the box for 'Strict routing'.

Cheers - Bob
PS I'll delete the other thread for you.
__________________
ACE V7 - Astaro Preferred Partner since V3
Addicted to my iPhone!

Last edited by BAlfson; 03-16-2010 at 06:50 PM. Reason: PS
Reply With Quote
  #3 (permalink)  
Old 03-16-2010, 07:11 PM
Junior Member
 
Join Date: Mar 2010
Posts: 4
Default

Thanks for the reply. I had already tried it with strict routing turned on just for the heck of it, and I tried it again based on your recommendation. There were no changes in the above tests. Also, I tried setting up a DNAT rule for ping and suddenly I can ping from 172.16.0.19 --> 192.168.0.75. I then removed the the DNAT rule I just created, and I can still ping from network B to network A. Nothing else changed. However, network A to network B is still not working, nor can I ping from the ping tool on the astaro to network B. I'm still getting the following error:

Ping check did not deliver a result, because of a probably non-existing ip address / hostname

It's like it doesn't know what to do with it.
Reply With Quote
  #4 (permalink)  
Old 03-16-2010, 09:34 PM
BAlfson's Avatar
Moderator
 
Join Date: Mar 2007
Location: Oklahoma City
Posts: 6,624
Default

Quote:
If I run a traceroute from 172.16.0.19 --> 192.168.0.75, the first hop shows the astaro's local ip of 192.168.0.1. All hops after that timeout.
You meant the first hop was 172.16.0.1, right?

Quote:
Thanks for the reply. I had already tried it with strict routing turned on just for the heck of it, and I tried it again based on your recommendation. There were no changes in the above tests.
Did you give it a minute or two to digest the changes before you tested?

Quote:
Also, I tried setting up a DNAT rule for ping and suddenly I can ping from 172.16.0.19 --> 192.168.0.75. I then removed the the DNAT rule I just created, and I can still ping from network B to network A.
I can't imagine that creating then deleting a DNAT would fix this in one direction, but seeeing the DNAT might be a clue...

Cheers - Bob
__________________
ACE V7 - Astaro Preferred Partner since V3
Addicted to my iPhone!
Reply With Quote
  #5 (permalink)  
Old 03-17-2010, 11:51 AM
Junior Member
 
Join Date: Mar 2010
Posts: 4
Default

Sorry, yes you are right, the first hop from network B is 172.16.0.1 followed by 192.168.0.1 and then it stopped. However, that is old news. Here is an update: (I honestly don't know what changed. Perhaps, it was the strict routing, and I didn't give it enough time to "digest" the change when testing.)

I now can access services on network A from network B with no problems. This includes web, telnet, and file sharing. For example, 172.16.0.19 is a windows machine on network B. 192.168.0.75 is a windows server on network A. In the address bar on 172.16.0.19 I can type "\\192.168.0.75" and all shares appear. However if I reverse that, (typing "\\172.16.0.19" in the address bar on 192.168.0.75) I get "Windows cannot access... there may be a problem with your network".

Traceroutes to network B from network A still stop at 192.168.0.1 and I still can't ping anything on network B directly from the Astaro itself. I'm at a loss.

There are no NAT rules in place. And strict routing is now turned on.
Reply With Quote
  #6 (permalink)  
Old 03-17-2010, 01:53 PM
BAlfson's Avatar
Moderator
 
Join Date: Mar 2007
Location: Oklahoma City
Posts: 6,624
Default

Do you see anything in the packet filter log or the Intrusions Prevention log that might give us a hint? Can you ping 172.16.0.19 from the Astaro? It just feels to me that the problem is in the pfSense.
__________________
ACE V7 - Astaro Preferred Partner since V3
Addicted to my iPhone!
Reply With Quote
  #7 (permalink)  
Old 03-17-2010, 02:26 PM
Junior Member
 
Join Date: Mar 2010
Posts: 4
Default

You were right once again. I double checked the rules on the pfSense box. Apparently, the pfSense firewall does not allow incoming traffic over the IPSEC VPN by default. I created a new rule and, go figure, traceroutes and pings are getting through. It's still not allowing all traffic at this point, but I think I just need to tweak the firewall rules a bit. Thanks so much for your help.
Reply With Quote
Reply

Tags
ipsec, pfsense, site to site

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:23 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.