Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

change dns server for vpn connection

 function set_nextdns_for_vpn {
	vpn_id=`nmcli con show --active | grep -i vpn | grep -v 'dummy' | awk '{print $3}'`
	if [ ! -z "$vpn_id" ]
	then
		nmcli connection modify "$vpn_id" ipv4.ignore-auto-dns true
		nmcli connection modify "$vpn_id" ipv4.dns 45.90.28.28,45.90.30.28
	fi
}
Comment

PREVIOUS NEXT
Code Example
Shell :: brew help 
Shell :: ubuntu add git 
Shell :: Git Precommit not working on windows 
Shell :: override dh_dwz 
Shell :: awk or 
Shell :: List linux ubuntu binaries folders 
Shell :: visual basic code syntax 
Shell :: git the .git folder (to manage your local repo cloned many remote repos) 
Shell :: remove memcached ubuntu 
Shell :: curl-tomcat 
Shell :: install gui apps using homebrew 
Shell :: shell command operator and seperator control characters 
Shell :: set dynamic values with kubernetes yaml file 
Shell :: Initializing a repo on local machine 
Shell :: start automount daemon aix 
Shell :: This command will base the newly created branch on the existing branch specified in the command 
Shell :: This script uses variables to make a backup of my home directory. 
Shell :: linux check defragnmentation of disk 
Shell :: print all installed program with scoop 
Shell :: host directory i ubuntu 
Shell :: rem command 
Shell :: source code not available.. 
Shell :: linux preserve alias 
Shell :: comand moves or renames the old file to the new name 
Shell :: reuse branch name 
Shell :: create theme visual studio code 
Shell :: not a git repository after clone 
Shell :: grep search match 
Shell :: how can I use eog command in windows subsystem linux? 
Shell :: bash change and make directory 
ADD CONTENT
Topic
Content
Source link
Name
8+2 =