IP's on OpenWRT
Posted: Tue Jun 25, 2013 5:47 pm
Hello to all,
i've a very strange situation, configuring last OpenVpn on last OpenWRT (12.09)
got information at most from http://openvpn.net/index.php/open-sourc ... tml#server and http://wiki.openwrt.org/inbox/vpn.howto
and it works! but in very strange way:
i'm trying to give fixed ip to one client, and from some moment server gets NOT *.1 ip but *.5! and client gets ip neither i gave nor from dhcp range!
Here is server config (UCI), i'm using not bridged config:
i've a very strange situation, configuring last OpenVpn on last OpenWRT (12.09)
got information at most from http://openvpn.net/index.php/open-sourc ... tml#server and http://wiki.openwrt.org/inbox/vpn.howto
and it works! but in very strange way:
i'm trying to give fixed ip to one client, and from some moment server gets NOT *.1 ip but *.5! and client gets ip neither i gave nor from dhcp range!
Here is server config (UCI), i'm using not bridged config:
Code: Select all
config openvpn 'lan'
option 'enabled' '1'
option 'port' '10536'
option 'proto' 'udp'
option 'dev' 'tun'
option 'ca' '/etc/openvpn/ca.crt'
option 'cert' '/etc/openvpn/server.crt'
option 'key' '/etc/openvpn/server.key'
option 'dh' '/etc/openvpn/dh1024.pem'
option 'server' '10.0.0.0 255.255.255.0'
#option 'mode' 'server'
#option 'ifconfig' '10.0.0.1 255.255.255.0'
#option 'ifconfig-pool' '10.0.0.2 10.0.0.5'
option 'ifconfig-pool-persist' '/etc/config/ovpn_cl/ipp.txt'
list 'push' 'route 192.168.1.0 255.255.255.240'
list 'push' 'redirect-gateway'
list 'push' 'dhcp-option DNS 10.0.0.1'
option 'client_to_client' '1'
option 'keepalive' '10 120'
option 'max_clients' '3'
option 'persist_key' '1'
option 'persist_tun' '1'
option 'status' '/tmp/openvpn-status.log'
option 'verb' '6'
#option 'client-config-dir' '/etc/config/ovpn_cl'