HOME
DOWNLOADS
SHOP
ACTIVATION CENTER
Professional
Support
Community
Contact
Imprint
Privacy Policy
Forum
Wiki
Donations
Bugtracker
Imprint
Privacy Policy
DD-WRT
Community
Contact
Donations
Forum
Wiki
Bugtracker
Imprint
Privacy Policy
Quick Links
Log in
Profile
View unanswered posts
Log in
Username:
Password:
Log me on automatically each visit
How can I assign OpenVPN clients static IPs
DD-WRT Forum Index
->
Advanced Networking
View previous topic
::
View next topic
Author
Message
CraftyClown
DD-WRT Novice
Joined: 26 Oct 2014
Posts: 42
Posted: Mon Jun 20, 2016 14:41
Post subject: How can I assign OpenVPN clients static IPs
Hi there,
I am trying to work out how to assign my various OpenVPN clients static IPs every time they connect.
I have found multiple posts explaining how to do it when OpenVPN is on a PC, but not when it is on a DD-WRT based router.
I understand it will involve adding information to my server config and also to my start up commands. I just don't know what I should be adding.
Any advice would be greatly received
Back to top
Sponsor
Mike42Smith
DD-WRT User
Joined: 14 Feb 2016
Posts: 146
Location: Germany
Posted: Sun Jun 26, 2016 12:00
Post subject:
I added the following to my VPN server additional config:
client-config-dir /tmp/openvpn/ccd
and these lines to the start-up script to generate the client specific config files:
echo 'ifconfig-push 192.168.1.100 255.255.255.0
iroute 192.168.1.100 255.255.255.255
push "route 192.168.0.0 255.255.255.0 192.168.1.1"' > /tmp/openvpn/ccd/clientABC
Please be aware that the config file has to named like the comman name of the certifiacte of the client.
_________________
Ongoing experiences with:
Linksys E3000 and WRT610N v2
TP-Link Archer C9
Raspberry Pi and TP-Link TL-WR710N with OpenWRT
Back to top
Display posts from previous:
All Posts
1 Day
7 Days
2 Weeks
1 Month
3 Months
6 Months
1 Year
Oldest First
Newest First
Page
1
of
1
DD-WRT Forum Index
->
Advanced Networking
All times are GMT
Navigation
Jump to:
Select a forum
Forum Rules and Guidelines
----------------
Forum Rules and Guidelines English
Forum Regeln and Anleitungen Deutsch
Правила форума и рекомендации: Russian
DD-WRT (English)
----------------
Announcements
Atheros WiSOC based Hardware
Broadcom SoC based Hardware
General Questions
ARM or PPC based Hardware
Marvell MVEBU based Hardware (WRT1900AC etc.)
Senao Devices
Ubiquiti Devices
Ralink SoC based Hardware
X86 based Hardware
Broadcom Customer Downloads & Updates
Advanced Networking
Search & Find, Sales & Offers
Hardware DIY / Hardware Mods
DD-WRT (Deutsch)
----------------
Ankündigungen
Atheros WiSOC basierende Hardware
Broadcom SoC basierende Hardware
Allgemeine Fragen
ARM oder PPC basierte Hardware
X86 basierende Hardware
Ralink SoC basierte Hardware
DD-WRT (Español)
----------------
Anuncios
Hardware basado en Atheros
Hardware basado en Broadcom
DD-WRT (Communauté francophone)
----------------
Annonces Officielles
Questions générales
Matériels à base de Broadcom
Matériels à base de Atheros
Matériels à base de Ralink
Le Bistrot
DD-WRT (Russian)
----------------
Объявления
Использование и установка DD-WRT
Оборудование на основе Atheros WiSOC
Оборудование на основе Broadcom
Оборудование на основе X86 / WRAP / Soekris
Личные покупки и продажи
Устройства Ubiquiti
Оборудование на основе Ralink
DD-WRT по-русски
Development
----------------
Generic Questions
Contributions Upload
You
cannot
post new topics in this forum
You
cannot
reply to topics in this forum
You
cannot
edit your posts in this forum
You
cannot
delete your posts in this forum
You
cannot
vote in polls in this forum
You
cannot
attach files in this forum
You
cannot
download files in this forum
Quick Links
Log in
Profile
View unanswered posts
Log in
Username:
Password:
Log me on automatically each visit