Author Topic: [SOLVED] VPN clients > internet  (Read 2607 times)

minos

  • Zen Apprentice
  • *
  • Posts: 37
  • Karma: +0/-0
    • View Profile
[SOLVED] VPN clients > internet
« on: November 30, 2010, 04:06:06 pm »
Hello,

Is there an easy way to give internet to VPN clients ?

The goal is to use Zentyal's internet for VPN clients, 'cause clients can be behind proxies or something else restricting their web surf.

I think of a routing rule...?

Thx!!
« Last Edit: May 17, 2011, 01:31:21 pm by minos »

Javier Amor Garcia

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1225
  • Karma: +12/-0
    • View Profile
Re: VPN clients > internet
« Reply #1 on: December 01, 2010, 11:59:41 am »
You could advertise the address of a gateway connected to Zentyal. However after that the clients should add manually the default route.

Another way is to use the redirect-gateway feature of openvpn. However this option is not implemented in Zentyal so you will need to change the vpn server configuration file template.

I

minos

  • Zen Apprentice
  • *
  • Posts: 37
  • Karma: +0/-0
    • View Profile
Re: VPN clients > internet
« Reply #2 on: December 09, 2010, 12:16:52 am »
Thx for answer Javier Amor Garcia

I'll try it soon ;)
Your 1st answer is the easiest way for me for test :)

Quote
You could advertise the address of a gateway connected to Zentyal
The gateway (LAN ip of my FAI router inside my Zentyal's LAN) is configured by default in the Zentyal's Network > Gateway, and Activated button is selected.
I think it's ok, nothing more to do ?

Quote
However after that the clients should add manually the default route
I'll try to configure the network config on the client's openvpn network card without dhcp.
Humm, I think openvpn client needs a DNS server... I'll test with Zentyal's IP... why not, I think Zentyal will automatically redirect to the FAI dns server configured in Network > DNS

Will be back soon ;)

minos

  • Zen Apprentice
  • *
  • Posts: 37
  • Karma: +0/-0
    • View Profile
Re: VPN clients > internet
« Reply #3 on: May 11, 2011, 03:28:59 pm »
I'm ok now !
So, to give a "web access" to our vpn clients, you can do it by editing :

/usr/share/ebox/stubs/openvpn/openvpn.conf.mas

and uncomment this line :
;push "redirect-gateway"
will become :
push "redirect-gateway"

then restart openvpn service.

Thx for help!