bind or lport not working. windows 7 64bit

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
majortom1981
OpenVpn Newbie
Posts: 3
Joined: Wed Apr 06, 2011 7:22 pm

bind or lport not working. windows 7 64bit

Post by majortom1981 » Wed Apr 06, 2011 7:38 pm

The problem i am having is that when i try lport 1194,bind or any other commands like that the log shows openvnp client trying to connect going out on port 1194 but windows 7 still uses a randomly assigned port.

This is with nobind taken out of the config file. my client config is

client
proto udp
lport 1194
resolv-retry 20
keepalive 10 120
mute-replay-warnings
ns-cert-type server
cipher AES-128-CBC
comp-lzo
verb 2
persist-key
persist-tun
verb 1
tls-exit
dev tun0
cert untangle-vpn/xx-public-library-tom.crt
key untangle-vpn/xx-public-library-tom.key
ca untangle-vpn/xx-public-library-ca.crt

remote xx.xx.xx.xx 1194

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: bind or lport not working. windows 7 64bit

Post by maikcat » Thu Apr 07, 2011 6:33 am

hi there,

noticed that you are using untangle..

did you install the openvpn installer from openvpn.net or
you used the one that untangle gives?

which version of untangle you are using?

michael.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

majortom1981
OpenVpn Newbie
Posts: 3
Joined: Wed Apr 06, 2011 7:22 pm

Re: bind or lport not working. windows 7 64bit

Post by majortom1981 » Fri Apr 08, 2011 11:29 am

We used the installer for the client BUT i have upgraded the client on the windows 7 64bit machine to the latest openvpn client which is the release canidate. My pfsense firewall that is at the other end reports the openvpn client connecting with the random port and not the port i am assigning the openvpnclient.

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: bind or lport not working. windows 7 64bit

Post by maikcat » Fri Apr 08, 2011 12:02 pm

hi there,


do you have a router perfoming NAT in front of your client?

Michael.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: bind or lport not working. windows 7 64bit

Post by janjust » Fri Apr 08, 2011 10:29 pm

I just checked on my win7 64bit box that if I use 'lport 12000' and connect to a VPN server that the source port is indeed 12000. Use wireshark to view the traffic from the win7 box to the server.
If there's another router in between the source port will get altered by that router.

majortom1981
OpenVpn Newbie
Posts: 3
Joined: Wed Apr 06, 2011 7:22 pm

Re: bind or lport not working. windows 7 64bit

Post by majortom1981 » Mon Apr 11, 2011 4:39 pm

janjust wrote:I just checked on my win7 64bit box that if I use 'lport 12000' and connect to a VPN server that the source port is indeed 12000. Use wireshark to view the traffic from the win7 box to the server.
If there's another router in between the source port will get altered by that router.
Oh ok that explains it. Thanks

Post Reply