Koozali.org: home of the SME Server

[ANNOUNCE] smeserver-openvpn-bridge-fws-1.1-2.rpm

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
[ANNOUNCE] smeserver-openvpn-bridge-fws-1.1-2.rpm
« Reply #135 on: December 15, 2006, 03:08:23 PM »
OK cool. I don't think it was a file permission problem, more probably the address range.
C'est la fin du monde !!! :lol:

Offline AndrewR

  • ***
  • 53
  • +0/-0
[ANNOUNCE] smeserver-openvpn-bridge-fws-1.1-2.rpm
« Reply #136 on: December 15, 2006, 06:14:02 PM »
Quote from: "imcintyre"
Ok; I changed my addressing and the permissions on the files and now it works ok. I will find out which solved the problem and post the answer.

Ian


While the addressing isn't necessarily required, it's a good idea. Avoids potential DHCP headaches. As a rule, for ease of Administration, it's best to limit your scope of addresses to amount needed +25% (to allow for growth etc). Then, when you add things like VPN, you use addresses outside the scope, and no problems. Also, when assigning static addresses, assign them outside your scope.

Again, none of this is absolutely necessary..but it does prevent headaches arising from address conflicts.

The permissions probably played a factor.. but after reading VIP's post, I think he might be right. Might have to do with how the DHCP daemon works on that box... but I'm just guessing. I'd have to really look at the code for DHCP and Ovpn.. and frankly, I don't have that kind of time. Glad it's working now!

Offline imcintyre

  • *
  • 609
  • +0/-0
[ANNOUNCE] smeserver-openvpn-bridge-fws-1.1-2.rpm
« Reply #137 on: December 16, 2006, 10:38:16 PM »
I have tried it from a couple of locations and it is as sweet as Beta4. Well almost, it does seem a little slower but that might be my imagination.

The addressing thing is kind of funny. At work we have a device that does the vpn and the dhcp service and we don't set aside addresses and there is never a conflict.

Regarding the security issue, doesn't this mean somebody would have to log on to the server and find the files to overwrite. If it is not a trivial security detail I may just leave it. You know the old if it ain't broke don't F....ix it rule.

Anyway the reason I started the VPN is that I started a family tree wiki on my server and I wanted my widespread family to contribute stuff I don't know about. I already have my mom beavering away so to speak.

Thanks again Vip-ire for all your help. I will put a reference on the wiki referring to your help.

Ian

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
[ANNOUNCE] smeserver-openvpn-bridge-fws-1.1-2.rpm
« Reply #138 on: December 18, 2006, 01:00:25 PM »
Quote from: "imcintyre"
I have tried it from a couple of locations and it is as sweet as Beta4. Well almost, it does seem a little slower but that might be my imagination.

The hand-shake can be a bit slower because of TLS auth and certificate CN validation, but once the tunnel is established, it should have the same performances as previous beta. (if you've configured the same cipher)

Quote from: "imcintyre"
The addressing thing is kind of funny. At work we have a device that does the vpn and the dhcp service and we don't set aside addresses and there is never a conflict.

I don't know many VPN solution, I mainly worked with openvpn but I think there's always a address range to configure. This contrib uses bridge mode, that's why the address range must be in the same subnet, for routed mode you can choose another subnet.

Quote from: "imcintyre"

Regarding the security issue, doesn't this mean somebody would have to log on to the server and find the files to overwrite. If it is not a trivial security detail I may just leave it. You know the old if it ain't broke don't F....ix it rule.

If you're talking about the file permission in ccd-bridge, in fact, it's not a problem, there's no security issue, it was only on my own server and a simple expand-template /etc/openvpn/ccd-bridge/.config solved it. Sounds like I've changed the permission manually before.
C'est la fin du monde !!! :lol:

Offline del

  • *
  • 765
  • +0/-0
[ANNOUNCE] smeserver-openvpn-bridge-fws-1.1-2.rpm
« Reply #139 on: December 20, 2006, 03:22:44 AM »
Hi VIP-ere,

Today I did a fresh install of SME 7 at my office, did a yum update and then installed your openvpn contrib, generated the keys etc. and put them in the directory for windows as per your how-to. Now when I get back home I can connect, it gives me the IP I asked for and OpenVPN GUI says I am connected but when I go to network places I can only see my own PC :shock:  No matter what I do I can't browse any of the network or see any resources :cry:  Can you please tell me what I am missing here :?  Any help or suggestions welcome. There are no other contribs on the server.

Regards,
Del
If at first you don't succeed, then sky-diving is not for you!
"Life is like a coin. You can spend it anyway you wish, but you can only spend it once." --Author Unknown

Offline crazybob

  • *****
  • 894
  • +0/-0
    • Stalzer R&D
[ANNOUNCE] smeserver-openvpn-bridge-fws-1.1-2.rpm
« Reply #140 on: December 20, 2006, 03:52:35 AM »
try \\ip of the server from the run command.
If you think you know whats going on, you obviously have no idea whats going on!

Offline crazybob

  • *****
  • 894
  • +0/-0
    • Stalzer R&D
[ANNOUNCE] smeserver-openvpn-bridge-fws-1.1-2.rpm
« Reply #141 on: December 20, 2006, 03:52:54 AM »
Are you on the same workgroup as the remote server?
If you think you know whats going on, you obviously have no idea whats going on!

Offline del

  • *
  • 765
  • +0/-0
[ANNOUNCE] smeserver-openvpn-bridge-fws-1.1-2.rpm
« Reply #142 on: December 20, 2006, 04:46:36 AM »
Hi Crazybob,

Quote
Are you on the same workgroup as the remote server?
Yes :)
Quote
try \\ip of the server from the run command
Now this may have solved the puzzle :oops:  Although the workgroup in my office is the same as my laptop, the IP range and subnet are the same at the office and at home :oops:  so maybe this is the problem, I will try and change the IP and subnet mask at the office and start again :wink:  I realized this when I ran \\ip of the server from the run command I got all my home server ibays even though the workgroup is not the same :shock:  Thanks for the suggestions, I will report back tomorrow evening.

Regards,
Del
If at first you don't succeed, then sky-diving is not for you!
"Life is like a coin. You can spend it anyway you wish, but you can only spend it once." --Author Unknown

Offline imcintyre

  • *
  • 609
  • +0/-0
[ANNOUNCE] smeserver-openvpn-bridge-fws-1.1-2.rpm
« Reply #143 on: December 20, 2006, 05:44:14 AM »
Del wrote
Quote
Although the workgroup in my office is the same as my laptop, the IP range and subnet are the same at the office and at home  so maybe this is the problem, I will try and change the IP and subnet mask at the office and start again


Originally I VPN into the office with no problems.

I started to have problems similar to yours, after installing sme server . I could connect at office and at home, could vpn into home from office but had difficulty with connecting from home to work. I tried making the change to the addressing but that did not solve it. What I found was that the "Server Redirect"  function was implemented on the work vpn device. When I turned that off everything went back to normal.

Not sure the reason, but relatively certain of the effect. Try this first.

I also have not turned on the server redirect for the openvpn contrib from vip-ire.

Good luck.

Offline del

  • *
  • 765
  • +0/-0
[ANNOUNCE] smeserver-openvpn-bridge-fws-1.1-2.rpm
« Reply #144 on: December 20, 2006, 03:30:58 PM »
Hi imcintyre,

The server redirect is disabled in openvpn (if I am right in believing that this is the Redirect gateway: option) and it is still the same, is there somewhere else I should be looking to turn it off? :wink:  If so please enlighten me before I go to the office this afternoon and change all the IP settings :D

Regards.
Del
If at first you don't succeed, then sky-diving is not for you!
"Life is like a coin. You can spend it anyway you wish, but you can only spend it once." --Author Unknown

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
[ANNOUNCE] smeserver-openvpn-bridge-fws-1.1-2.rpm
« Reply #145 on: December 20, 2006, 04:00:58 PM »
Hi everyone. Del it cannot work if your home network and your office network have the same private subnet. You should set different one like for example

192.168.39.0/255.255.255.0 for your home network

192.168.42.0/255.255.255.0 for your office

if they have the same network address, there's a routing problem, your VPN client will try to locally reach your remote server without passing through the VPN.

It'll work then.

The redirect Gateway function doesn't work properly (I've just saw it yesterday). There's a stupid typo. I'll correct this in next release. for now, it's allways disabled even if the panel tells you it's enabled.
C'est la fin du monde !!! :lol:

Offline del

  • *
  • 765
  • +0/-0
[ANNOUNCE] smeserver-openvpn-bridge-fws-1.1-2.rpm
« Reply #146 on: December 20, 2006, 04:12:32 PM »
Hi VIP-ire,

I currently use 10.0.0.x/255.0.0.0 for both, can I use 10.0.0.x/255.255.255.0 for one of them? Or should I use 192.168.0.x/255.255.255.0 and make sure they are completely different networks? Thanks again.

Regards,
Del
If at first you don't succeed, then sky-diving is not for you!
"Life is like a coin. You can spend it anyway you wish, but you can only spend it once." --Author Unknown

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
[ANNOUNCE] smeserver-openvpn-bridge-fws-1.1-2.rpm
« Reply #147 on: December 20, 2006, 04:18:01 PM »
It'd be better if you have totally different network address, like this

10.1.x.x/255.255.0.0 for one of your network

10.2.x.x/255.255.0.0 for the other one

This way, the two networks cannot be confused
C'est la fin du monde !!! :lol:

Offline imcintyre

  • *
  • 609
  • +0/-0
[ANNOUNCE] smeserver-openvpn-bridge-fws-1.1-2.rpm
« Reply #148 on: December 20, 2006, 06:23:18 PM »
Del;

I would follow vip-ire's advice in this instance. I changed my home from 192.168.1.* which is same as works to 192.168.7.* and didn't see an end to my problems until after changing redirect. I guess if you still have issues, try my change.

My vpn device at work (not sme server 7 but a hardware firewall/vpn device) also has a redirect option that when enabled, caused connectivity and mail issues.

Ian

Offline imcintyre

  • *
  • 609
  • +0/-0
[ANNOUNCE] smeserver-openvpn-bridge-fws-1.1-2.rpm
« Reply #149 on: December 20, 2006, 06:26:33 PM »
Vip-ire;

A question about the keys and certificates. When I am giving a new person vpn access. I have been giving them user.key, user.crt, ca.crt, ta.key, and VPN.ovpn.

Do they need all of this? I had a paranoid moment that I may be creating a security issue.

Thx in advance for your help.

Ian