Open VPN Static IP on client side

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
Andreas
OpenVpn Newbie
Posts: 1
Joined: Thu Oct 06, 2011 7:49 am

Open VPN Static IP on client side

Post by Andreas » Thu Oct 06, 2011 8:29 am

The configuration outlined in below sketch actually works for "client 1" as long as it is configured with dynamic IP like the other clients in the setup. As soon as I try to assign a static IP to "client 1" though, it stops working properly. I can see the server from 'client 1' but I won't see the remaining clients as I would if 'client 1' was connected with a dynamic setup.

https://docs.google.com/viewer?a=v&pid= ... 4&hl=en_US

Configuration for "client 1"
client
dev tap
proto udp
remote 119.75.15.212 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client22.crt
key client22.key
tls-auth ta.key 1
comp-lzo
verb 3

Configuration for server:
port 1194
proto udp
dev tap
ca ca.crt
cert server.crt
key server.key # This file should be kept secret
dh dh1024.pem
ifconfig-pool-persist ipp.txt
server-bridge 192.168.112.5 255.255.255.0 192.168.112.8 192.168.112.100
client-config-dir ccd
client-to-client
keepalive 10 120
tls-auth ta.key 0 # This file is secret
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3

User avatar
Mimiko
Forum Team
Posts: 1564
Joined: Wed Sep 22, 2010 3:18 am

Re: Open VPN Static IP on client side

Post by Mimiko » Thu Oct 06, 2011 9:32 am

Use ccd files to send specific IP to that client keeping dhcp mode, or use in client config option "ifconfig-noexec" and set static IP.

Post Reply