i am new here and I have a problem. when I connect
from my house (client) to my work (server) does not change my ip.
I will try to explain it a little better.
In my office I have installed openvpn server with this configuration.
### SERVER CONFIG FILE ###
# lines starting with # or ; will not be read by OpenVPN
;local 192.168.1.150 #### CHANGE. This is the IP address of the real (not tun/tap) network interface of the server. Find it using 'run > cmd > ipconfig'.
port 1327 #### CHANGE. This is the port the service will listen on. See 'Configure your Router' section for recommendation.
proto udp
mssfix 1400
push "dhcp-option DNS 8.8.8.8" #### CHANGE. Replace the Xs with the IP address of the DNS for your home network (usually your ISP's DNS).
push "dhcp-option DNS 8.8.4.4" #### CHANGE (OPTIONAL). A second DNS server. If you have one, remove the #.
dev tap
#dev-node MyTAP #### CHECK. If you renamed your TAP interface or have more than one TAP interface, remove the # and change "MyTAP" to its name.
ca "C:\\Program Files\\OpenVPN\\config\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\config\\server.crt"
key " C:\\Program Files\\OpenVPN\\config\\server.key" # Never take this file off the server.
dh " C:\\Program Files\\OpenVPN\\config\\dh2048.pem"
tls-auth ta.key 0 # 'ta.key' must be in the config folder.
server 192.168.10.0 255.255.255.128 #### CHECK. Assigns the virtual IP address and subent to the VPN. Make sure you add this to your Router (section 4i).
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1" # This will force the clients to use the home network's internet connection
keepalive 10 120
cipher AES-128-CBC # Connection will be encrypted with AES 128-bit.
comp-lzo
max-clients 10 #### CHECK. Assigns the maximum number of clients here, change according to your setup.
persist-key
persist-tun
status openvpn-status.log
verb 1 # This sets how detailed the log file will be. 0 causes problems and higher numbers can give you more detail for troubleshooting.
and at home I have set up a openvpn client with this configuration.
### CLIENT1 CONFIG FILE ###
# lines starting with # or ; will not be read by OpenVPN
client
dev tap
#dev-node MyTAP # If you renamed your TAP interface or have more than one TAP interface then remove the # at the beginning and change "MyTAP" to its name.
proto udp
remote my server static ip 1327 #### CHANGE. Replace with DynDNS or IP address. Number after is the port you will have to forward with your router.
route 192.168.10.0 255.255.255.0 vpn_gateway 3 #### CHECK. This it the IP address scheme and subnet of the normal network your server is on.
resolv-retry infinite
nobind
persist-key
persist-tun
ca "C:\\Program Files\\OpenVPN\\config\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\config\\client1.crt" #### CHECK. Must match client name.
key "C:\\Program Files\\OpenVPN\\config\\client1.key" #### CHECK. Must match client name.
tls-auth ta.key 1 # 'ta.key' must be in the config folder.
ns-cert-type server
cipher AES-128-CBC # AES encrytion for the connection.
comp-lzo
verb 1 # This sets how detailed the log file will be. 0 causes problems and higher numbers can give you more detail for troubleshooting.
the connection is successful but at home I still have the same IP
had before connect and what I want is to have the ip of my work.
what's wrong, what I can change in my house to connect with
work from my home ip is the ip of my work.
thx