I'm using a simple VPN to connect client with server.
server.conf
server config file - public ip names and addresses removed
# OpenVPN Server Config
port 1194 # Port
proto udp # Protocol
dev tun # Interface
sndbuf 0 # TCP/UDP socket send buffer size
rcvbuf 0 # TCP/UDP socket receive buffer size
ca ca.crt # ca certificate
cert server.crt # server certificate
key server.key # server key
dh dh.pem # diffie hellman's certificate
tls-auth ta.key 0 # tls key
crl-verify crl.pem # certificate revogation list
auth SHA512
topology subnet
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
keepalive 10 120
cipher AES-256-CBC
comp-lzo
user nobody
group nobody
persist-key
persist-tun
client-config-dir ccd
status /var/log/openvpn-status.log
log /var/log/openvpn.log
log-append /var/log/openvpn.log
verb 3
By default is looks that the tun interface get the first IP address. But I would like to change to 10.8.0.254 instead 10.8.0.1.
Is it possible? How?
ifconfig
tun0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST> mtu 1500
inet 10.8.0.1 netmask 255.255.255.0 destination 10.8.0.1
unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 100 (UNSPEC)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0