1. Store
  2. Apps
  3. Hardware
  4. Support
  5. Solutions

ClearFoundation

Forums
Welcome, Guest
IPSec ClearOS 6; tunnel up, but can't use devices
(1 viewing) 1 Guest
Go to bottomPage: 12
TOPIC: IPSec ClearOS 6; tunnel up, but can't use devices
#43252
IPSec ClearOS 6; tunnel up, but can't use devices 11 Months, 2 Weeks ago  
I have OpenSwan running on a ClearOS 6 box for a couple site to site VPNs. They were working flawlessly until this morning, and as far as I know nothing has changed. The tunnel still appears to be up and I can ping clients on the other network, but when I try to access a printer, file server, or web server on the remote network I can't seem to connect. However when I am on a computer on the remote network I have no trouble connecting to the same types of devices on the local network. Any ideas?
Sean Conlin
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#43278
Re: IPSec ClearOS 6; tunnel up, but can't use devices 11 Months, 2 Weeks ago  
I think I've seen this when a tunnel drops and re-establishes itself automatically. Something in the routing gets lost, but I've no idea how to troubleshoot it. I wrote a small script to do occasional pings and restart the tunnel if necessary. Do you see anything in /var/log/secure to indicate a tunnel restart?
Nick Howitt
Platinum Boarder
Posts: 4232
graphgraph
User Online Now Click here to see the profile of this user
The administrator has disabled public write access.
 
#43337
Re:IPSec ClearOS 6; tunnel up, but can't use devices 11 Months, 2 Weeks ago  
Its doesn't appear to be resetting. I never have problems pinging. But this message comes up every few seconds:
Code:

initial Main Mode message received on xxx.xxx.xxx.xxx:500 but no connection has been authorized with policy=PSK

Sean Conlin
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2012/07/05 12:24 By SeanyC.
The administrator has disabled public write access.
 
#43343
Re:IPSec ClearOS 6; tunnel up, but can't use devices 11 Months, 2 Weeks ago  
Can I suggest you restart ipsec at one or both ends? Check the IP address from your message is the remote IP address in your set up.
Nick Howitt
Platinum Boarder
Posts: 4232
graphgraph
User Online Now Click here to see the profile of this user
The administrator has disabled public write access.
 
#43345
Re:IPSec ClearOS 6; tunnel up, but can't use devices 11 Months, 2 Weeks ago  
I've restarted ipsec numerous times on the box having issues.
I've even reinstalled ipsec and still have the same issue.

I think that message i posted is actually just a response to other remote boxes where I have a connection set up on the remote box, but not the local box, so i don't think it is relevant.

The really bizarre thing is that ping always works when the tunnel is up, but real connections from the remote boxes do not.
The tunnel lets traffic go in only one direction, but you can ping in either direction.
If I can't fix it before this afternoon I'm going to reinstall clearos and see if that fixes the problem.
Sean Conlin
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2012/07/05 13:21 By SeanyC.
The administrator has disabled public write access.
 
#43349
Re:IPSec ClearOS 6; tunnel up, but can't use devices 11 Months, 2 Weeks ago  
The problem could be the IP address being used at the remote end and what is configured at the local end. When you say pinging works, is that pinging a remote LAN IP?
Nick Howitt
Platinum Boarder
Posts: 4232
graphgraph
User Online Now Click here to see the profile of this user
The administrator has disabled public write access.
 
#43350
Re:IPSec ClearOS 6; tunnel up, but can't use devices 11 Months, 2 Weeks ago  
Yes.
Local subnet is 10.0.0.0
remote is 10.10.50.0
and I can ping either end using those ip trunks.

I think it must be something with the routes or the firewall, but I can't find the problem.
Sean Conlin
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#43386
Re:IPSec ClearOS 6; tunnel up, but can't use devices 11 Months, 2 Weeks ago  
Well I reinstalled ClearOS and that solved the problem.
I would like to figure out how to solve this problem in the future if it happens again, but it can't be anything with ipsec, because I used the exact same configuration after the reinstall.

The only thing I can think is that somehow the firewall was blocking incoming connections from the remote lan ips, but I can't figure out why the sudden change.

I suppose it could have something to do with routes, but I don't know enough about that.
Sean Conlin
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#43860
Re:IPSec ClearOS 6; tunnel up, but can't use devices 11 Months ago  
This issue has surfaced again.(To reiterate, I can ping from either end using the local ip addresses, and I can connect to different devices using a range of protocols in the direction of local -> remote, but not remote -> local.)

Here are the things I can track down that happened between when the tunnel was functioning normally and when the tunnel became ping only for the remote end:

Added this line to the custom firewall:
iptables -t nat -I PREROUTING -s 10.0.0.222 -j ACCEPT

Enabled the Web Proxy, Content Filter, and Protocol Filter.
The protocol filter is blocking (boxes checked) everything in the p2p and virus categories.

I've tried deleting and re-adding the connections, with the hope the the route would be wiped and redrawn, but it had no affect.
I even tried to use the ipsec auto --unroute command after deleting the connection.

Help me Nick Howitt, you're my only hope.
Sean Conlin
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#43865
Re:IPSec ClearOS 6; tunnel up, but can't use devices 11 Months ago  
Can you give the output to:
Code:

iptables -t mangle -L PREROUTING -n -v
iptables -t nat -L -n -v
iptables -L -n -v
route -n
ip xfrm state


Please also post the your config files - /etc/ipsec.conf and /etc/ipsec.d/*.conf.
Do you know if your WAN has dropped at some time? Have a look in /var/log/syswatch.

When posting, to make it easier to read, please put the results between [ code ] and [ /code ] tags, removing the spaces between the [ and ].

Lastly, can you try adding the rule:
Code:

iptables -t nat -I POSTROUTING -s 192.168.2.0/24 -d 192.168.10.0/24 -j RETURN

Nick Howitt
Platinum Boarder
Posts: 4232
graphgraph
User Online Now Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 12
  get the latest posts directly to your desktop