How to modify ip address from server

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
wanderlei.huttel
OpenVpn Newbie
Posts: 2
Joined: Tue Jul 10, 2018 12:11 am

How to modify ip address from server

Post by wanderlei.huttel » Mon Jul 16, 2018 2:41 pm

Hello

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

Post Reply