Public IP at Client End in tap mod on windows

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
natural
OpenVpn Newbie
Posts: 1
Joined: Fri Nov 12, 2010 7:10 pm

Public IP at Client End in tap mod on windows

Post by natural » Fri Nov 12, 2010 7:13 pm

I want to use openvpn with public ips at client end, below is the complete details with my conf files
for server and client.

MIND ONE THING I AM TRYING TO CONFIGURE IT REMOTELY

WINDOWS 2003 SERVER STANDARD (INSTALLED IN USA IN A DATA CENTRE)
WINDOWS XP CLIENT PC IN UAE (IN MY OFFICE)

NIC1 AS Local are connect: PRIMARY IP 74.86.124.146 (IT IS A PUBLIC IP)
EXTRA PUBLIC IPS (75.126.107.136 TO 75.126.107.158)

I WAS CREATED OPENVPN BELOW SERVER1.OVPN (CONFIGURATION FILE)

#+++++++++++++++SERVER1.OVPN
port 11940
proto udp
mssfix 1400
dev tap

ca ca.crt
cert server1.crt
key server1.key
dh dh1024.pem

server 75.126.107.136 255.255.255.248
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1"
keepalive 10 120
cipher BF-CBC
max-clients 2
persist-key
persist-tun
status openvpn-status.log
verb 4
#+++++++++END SERVER1.OVPN

When I Starts Ovpn then below tap connection was created
Local Area Connection 1: with IP (75.126.107.137) It is also publically accessible

Now at client end on windows xp
I was connected with a router as below

local are connection: with LAN IP (192.168.1.5)

I was created client1.ovpn on windows xp pc

#+++++++++++++++client1.ovpn
client
dev tap
proto udp
remote 74.86.124.146 11940
route 192.168.1.0 255.255.255.0 vpn_gateway 3
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client1.crt
key client1.key
ns-cert-type server
cipher BF-CBC
verb 4
#++++++++++End client1.ovpn


Now I starts openvpn and sucussefully connected with the windows 2003 server in USA
now on my xp pc a tap connection was created with below details

Local area connection 1: with IP (75.126.107.138) actually it was public ip but publically it is not
accessible

now both systems are successfully conected and data can also travel via vpn

Now i can access my server remotely via two IPs

1st is: 74.86.124.146
2nd is: 75.126.107.137

but my client having openvpn ip 75.126.107.138 is only accessible from server not publically, why?
I don't know, I was trying again and again but there is not any success. Is there any body who can
help me to use public ips in tap mode on client end. I will be very thankfull to you.

I am waiting for your kind reply.

Post Reply