Project

General

Profile

Actions

Bug #3968

closed

Incorrect gateway is assumed when using tun + topology subnet

Added by Dmitriy K about 10 years ago. Updated almost 10 years ago.

Status:
Resolved
Priority:
Normal
Category:
OpenVPN
Target version:
Start date:
10/30/2014
Due date:
10/30/2014
% Done:

100%

Estimated time:
0.10 h
Plus Target Version:
Release Notes:
Affected Version:
All
Affected Architecture:
All

Description

The script /usr/local/sbin/ovpn-linkup has en error where network mask is returned as a gateway when no gateway provided by the server:

if [ "${dev_type}" = "tun" ]; then
    if [ "" != "$route_vpn_gateway" ]; then
        /bin/echo $route_vpn_gateway > /tmp/$1_router
    else
        /bin/echo $5 > /tmp/$1_router
    fi
fi

See "ovpn log.txt" attachment. 5th argument passed to the script is a network mask. The script should use interface IP (the 4th argument) as it's gateway ... like in GRE tunnel configuration.


Files

ifconfig_ovpnc1.txt (375 Bytes) ifconfig_ovpnc1.txt Dmitriy K, 10/30/2014 07:23 AM
ovpn log.txt (634 Bytes) ovpn log.txt Dmitriy K, 10/30/2014 07:27 AM
Untitled.png (62 KB) Untitled.png Dmitriy K, 10/30/2014 01:10 PM
invalid_gw_4_tun_srv.png (40.8 KB) invalid_gw_4_tun_srv.png Invalid IP for TUN server Dmitriy K, 11/25/2014 04:13 AM
Actions

Also available in: Atom PDF