How: VPN separate
Tofloor
poster avatar
najkon
deepin
2017-10-13 13:33
Author
Hi,

I would like to ask how to do a separate VPN connection between network gets from VPN and the rest of the internet
In other Network panel this called " Use this connection only for resources on its network "

I mean, if I got a route from the VPN to 10.0.0.1/16 and I want to connect to 10.0.100.24, then it leads me through the VPN tunnel.
And if I want to go to google.com then leads me bypassing the VPN tunnel by normal connection.


Now I have so that all traffic goes through the VPN tunnel.
Is this somewhere in control panel to click for set up this? because I can't find it.








Reply Favorite View the author
All Replies
yanbowen
deepin
2017-10-13 17:28
#1
The option has been added, but not sync, please wait for update.
Reply View the author
yanbowen
deepin
2017-10-13 17:31
#2
And can you paste your 'dde-daemon' version?
Reply View the author
najkon
deepin
2017-10-14 04:43
#3
Edited by najkon at 2017-10-13 20:45

dde-daemon - 3.1.17-2

which version of deepin that option was added?

Reply View the author
ih******[email protected]
deepin
2017-10-14 05:08
#4
  1. sudo apt-get install network-manager-gnome
Copy the Code


for first time(if you don't reboot)

  1. nm-connection-editor
  2. nm-applet
Copy the Code


the next time click the nm-applet in try area





Reply View the author
najkon
deepin
2017-10-14 07:10
#5
Thanks for advice, but I think the solution is weak to install additional network manager for this purpose. This should be a deepin network manager!
Reply View the author
ih******[email protected]
deepin
2017-10-14 07:51
#6
https://bbs.deepin.org/post/146612
Thanks for advice, but I think the solution is weak to install additional network manager for this p ...

They have said that there are too many options for network-manager
They will only write UI for some of them in to ControlCenter, which is needed by mostly newbie of enduser (Which I don't agree :))
Reply View the author
ih******[email protected]
deepin
2017-10-14 07:54
#7
https://bbs.deepin.org/post/146612
Thanks for advice, but I think the solution is weak to install additional network manager for this p ...

and this is not to  install additional network manager
DDE Control Center control he network via network manager,so is the  network-manager-gnome
They have the same backend
Reply View the author
najkon
deepin
2017-10-14 11:59
#8
OK, i find other solution without install anything else and it's work!
since deepin uses NetworkManager it's also in package a CLI for command line support, so lets disable default route

  1. nmcli connection modify "YOUR NAME OF VPN" ipv4.never-default yes
Copy the Code


You do not remember the name of the connection? it's not a problem, use:

  1. nmcli connection show
Copy the Code


There you go
Reply View the author
melodyzou
deepin
2017-10-20 19:02
#9
The function will be involved in deepin 15.5.
Reply View the author