Community mailing list archives

Re: Restrict access base IP address

Skillteam, Houssine BAKKALI
- 07/15/2015 07:23:00
no module do that AFAIK.

You will need to do this and to find a way to get the ip in the authenticate function... and it seems that the user_agent_env dictionnary give such info reference by the key remote_addr... here is what i get for this variable when authenticating on my local instance 'REMOTE_ADDR': ''

didn't found the module network_audit that kumar was talking about

2015-07-15 12:27 GMT+02:00 kwaye kant <>:

Thanks Houssine,
That's the right summary. Exactly what I'm looking for.

On Jul 15, 2015 11:10 AM, "Houssine BAKKALI" <> wrote:

I also first though to a reverse proxy customization... but Kwaye need it at the user level... So he'll probably need to override the login method to add the ip location perspective. and also to define one or more ip address per user

2015-07-15 11:27 GMT+02:00 Rafael Blasco <>:

You would like to check:

Odoo - Reverse Proxy HowTo

Presentation about how to install and configure an reverse proxy with Apache2.4/Nginx to serve Odoo v8 applications

Install Nginx 1.4 as reverse proxy
Install Apache 2.4 as reverse proxy
ReverseProxy to Odoo with

workers = 1
workers > 1

SSL setting up

Redirect HTTP to HTTPS
Creating a PKI using XCA

Access restriction

via source IP ranges
via client certificate

See the presentation online

From Antiun - >


On Wed, Jul 15, 2015 at 10:27 AM, kwaye kant <> wrote:
Dear all,

My company has many offices in the town. All the offices are connected to the head office through  a VPN. And each office has a public IP address. Odoo is installed on the central server at the Head office.

I need the users to connect on Odoo ONLY from their office.
If I send one user to Office1 that user should connect only at that office with the IP address not at the Office2.

So what I need to set the connection process in Odoo. All the office should have an IP address set the database.
On each connection Odoo must get the IP address of the current user and check if that IP address is the one associated to this Office.

So on Odoo,
1. How can I get the user IP address ?
2. How is the login process works ? 

Were should I start to handle this ?

I need a guide

Kwaye Kant

Skype: g.kwaye
(00) 237 677315145
Douala - Cameroon

Post to:

Post to:

Post to:

Post to: