Hi,
I posted this message before in the wrong forum.
Mods, please delete:
https://forums.openvpn.net/topic13896.html
NETWORK CONFIGURATION:
I have a mobile computer (Windows 7 Pro) which uses two network interfaces (Ethernet and Mobile Broadband (3G Modem)). The ethernet adapter is wired to a router which sets the ip/subnet/gateway with DHCP. This router, however, is NOT connected to the Internet. The mobile broadband adapter connects to the ISP and a special service which allows mobile devices to be accessed from the internet (mobile 2 mobile communication. Provider is mdex, if somebody cares). To be able to communicate with other mobile devices, I have to establish an openVPN (using OpenVPN Client) connection with an mdex-server.
PROBLEM DESCRIPTION:
Everything works fine, as long as the ethernet cable is disconnected. OpenVPN uses the mobile broadband interface and connects to the server.
When an ethernet connection exists, OpenVPN can't connect anymore.
WHAT I TRIED:
I configured the ethernet with static IP and Netmask and WITHOUT any gateway. With this configuration OpenVPN is also able to connect to the server over mobile broadband.
With DHCP enabled, I tried to change the metric of the interfaces - without any luck. I also tried to remove the gateway with netsh but that only works with static ip's.
- Is there some kind of configuration switch to select a specific network adapter to use in OpenVPN?
Config:
dev tun
client
cipher BF-CBC
remote fixedip.mdex.de
rport 9300
proto udp
tun-mtu 1500
fragment 1300
mssfix
float
reneg-sec 86400
nobind
route-method exe
route-delay 6 6
ca IC3S-CA.crt
ns-cert-type server
auth-user-pass
auth-user-pass xxxxxxxx
comp-lzo
verb 3
explicit-exit-notify 2
Log:
Thu Sep 26 17:57:15 2013 OpenVPN 2.2.2 Win32-MSVC++ [SSL] [LZO2] [PKCS11] built on Dec 15 2011
Thu Sep 26 17:57:15 2013 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Thu Sep 26 17:57:15 2013 LZO compression initialized
Thu Sep 26 17:57:15 2013 Control Channel MTU parms [ L:1546 D:138 EF:38 EB:0 ET:0 EL:0 ]
Thu Sep 26 17:57:15 2013 Socket Buffers: R=[8192->8192] S=[8192->8192]
Thu Sep 26 17:57:15 2013 Data Channel MTU parms [ L:1546 D:1300 EF:46 EB:135 ET:0 EL:0 AF:3/1 ]
Thu Sep 26 17:57:15 2013 Fragmentation MTU parms [ L:1546 D:1300 EF:45 EB:135 ET:1 EL:0 AF:3/1 ]
Thu Sep 26 17:57:15 2013 Local Options hash (VER=V4): 'c086e1aa'
Thu Sep 26 17:57:15 2013 Expected Remote Options hash (VER=V4): '8e7959c7'
Thu Sep 26 17:57:15 2013 UDPv4 link local: [undef]
Thu Sep 26 17:57:15 2013 UDPv4 link remote: 192.168.178.1:9300
Thu Sep 26 17:57:15 2013 read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054)
Thu Sep 26 17:57:18 2013 read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054)
Thu Sep 26 17:57:22 2013 read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054)
Thu Sep 26 17:57:30 2013 read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054)
Thu Sep 26 17:57:46 2013 read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054)
Thu Sep 26 17:58:10 2013 SIGTERM received, sending exit notification to peer
Thu Sep 26 17:58:12 2013 TCP/UDP: Closing socket
Thu Sep 26 17:58:12 2013 SIGTERM[soft,exit-with-notification] received, process exiting
You can see the failed attempts ("Connection reset by peer"). After that I shutdown the service.
I'm kind of new to VPN and mobile connections. It would be awesome, if somebody could point me in the right direction.
Thanks in advance