Welcome to the IPFire Wiki

This wiki is a community-maintained resource about everything there is to know about IPFire. Join us and help us improving it!

Looking for something?

Use the search and find answers to everything about IPFire. If you cannot find what you are looking for, join our community and talk to fellow IPFire users, developers and everybody else involved in the project.

IPFire Community

Differences in Revisions: OpenVPN and WLAN

Older Revision
August 23 at 7:50 pm
»
Newer Revision
Wednesday at 2:50 pm
fixed Title (removed extra hash)
## OpenVPN and WLAN
# OpenVPN and WLAN
 
[Back to OpenVPN main page](/configuration/services/openvpn)
 
**[Next configuraion section](/configuration/services/openvpn/config/additionals)**
 
To use a W-LAN connection over an OpenVPN connection, OpenVPN must be enabled on **<span style="color:blue">blue</span>** in the "**global settings**". This ensures that IPFires blue network address will be printed into the client configuration file via the directive "remote".
 
Over the assertion "**Status and client control**" a new connection will be created by clicking the "**Add**" button. As "**connection typ**" the "**Host-to-Net Virtual Private Network**" should be selected. The name of the connection must not already exist, also the usage of special characters or spaces should be avoided, the rest of the entries (as above) should be self explanatory.
 
In this example, only LAN IP`s are used, so it may looks different to your .ovpn file:
 
```
;remote 192.168.10.1 1194
#Coment the above line and uncoment the next line, if you want to connect on the Blue interface
remote 192.168.20.1 1194
#Coment the above line and uncoment the next line, if you want to connect on the Orange interface
;remote 192.168.30.1 1194
```
 
To comment out the analogue lines, the semicolon ";" will be used.
 
filename = WLAN-TO-IPFire.ovpn
 
```text
#OpenVPN Server conf
tls-client
client
dev tun
proto tcp
tun-mtu 1500
;remote 192.168.10.1 1194
#Coment the above line and uncoment the next line, if you want to connect on the Blue interface
remote 192.168.20.1 1194
#Coment the above line and uncoment the next line, if you want to connect on the Orange interface
;remote 192.168.30.1 1194
pkcs12 WLAN.p12
cipher AES-256-CBC
comp-lzo
verb 3
ns-cert-type server
tls-remote 192.168.10.1
```
 
So in that case the IP address "192.168.20.1" are the IPFires WLAN address, which should be activated by deleting the semikolon. The other "remote" addresses should be outcommented with the semikolon.
 
**[Next configuraion section](/configuration/services/openvpn/config/additionals)**
 
[Back to OpenVPN main page](/configuration/services/openvpn)