← Back to team overview

desktop-packages team mailing list archive

[Bug 916062] [NEW] network-manager should ad route to external ip when using vpn (w. solution)

 

Public bug reported:

Ubuntu: oineric 11.10
network-manager: 0.9.1.90-0ubuntu5.1

The problem is when using any VPN client from network-manager and
consists of not being able to connect from the external net through port
forwarding.

Internal IP->local computer (works)
VPN IP->local computer (works)
Local computer->internal network (works)
Local computer->vpn->internet (works)
Ext IP->[port forwarding]->local computer (does not work)


When using openvpn I get the following routing table (VPN adresses hidden):

$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         X.X.X.X         0.0.0.0         UG    0      0        0 tap0
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 eth1
X.X.X.X         0.0.0.0         255.255.255.0   U     0      0        0 tap0
X.X.X.X         192.168.0.1     255.255.255.255 UGH   0      0        0 eth1
192.168.0.0     0.0.0.0         255.255.255.0   U     1      0        0 eth1

Solution (External IP Y.Y.Y.Y):

$ route add -host Y.Y.Y.Y gw 192.168.0.1 dev eth1


Now we can reach the computer on both Y.Y.Y.Y and the vpn ip.

** Affects: network-manager (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/916062

Title:
  network-manager should ad route to external ip when using vpn (w.
  solution)

Status in “network-manager” package in Ubuntu:
  New

Bug description:
  Ubuntu: oineric 11.10
  network-manager: 0.9.1.90-0ubuntu5.1

  The problem is when using any VPN client from network-manager and
  consists of not being able to connect from the external net through
  port forwarding.

  Internal IP->local computer (works)
  VPN IP->local computer (works)
  Local computer->internal network (works)
  Local computer->vpn->internet (works)
  Ext IP->[port forwarding]->local computer (does not work)

  
  When using openvpn I get the following routing table (VPN adresses hidden):

  $ route -n
  Kernel IP routing table
  Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
  0.0.0.0         X.X.X.X         0.0.0.0         UG    0      0        0 tap0
  169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 eth1
  X.X.X.X         0.0.0.0         255.255.255.0   U     0      0        0 tap0
  X.X.X.X         192.168.0.1     255.255.255.255 UGH   0      0        0 eth1
  192.168.0.0     0.0.0.0         255.255.255.0   U     1      0        0 eth1

  Solution (External IP Y.Y.Y.Y):

  $ route add -host Y.Y.Y.Y gw 192.168.0.1 dev eth1

  
  Now we can reach the computer on both Y.Y.Y.Y and the vpn ip.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/916062/+subscriptions


Follow ups

References